Copy link to clipboard
Copied
I am woundering if it possible to Cross References to previus page insted of the page? I have a catalog of tools and in the begining I have a index were lets say saw blades is from page 33-45. I can use the cross reference to point to the startingpage because I have a special page for all new chapters but I dont have a ending page and is woundering if it is possible to use the next starting page but tell -1 page?
If the page number is used the code is: <pageNum />
Is it possible to change the code to previus page: (maby) <prevNum /> or <nextNum />
Ah. I see that you tagged your entry with "Scripting". So I will give you the code to insert special character Previous Page to an insertion point in your text. Let's assume you have some text selected and want to address the first insertion point in that selected text to add that special character:
app.selection[0].insertionPoints[0].contents =
SpecialCharacters.PREVIOUS_PAGE_NUMBER;
You can look up all available special characters in DOM documentation compiled by Gregor Fellenz:
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#SpecialCharacters.html
...Copy link to clipboard
Copied
Hi FMF_Assistans,
there is a Previous Page special character, but it would only work if the text frame you use this character with has another text frame threaded before on the page you want to address. The same principle applies to the Next Page special character. You always get the name of the page of the previous or the next text frame in the same story of threaded text frames.
Hope, that helps.
Regards,
Uwe Laubender
( ACP )
Copy link to clipboard
Copied
Ah. I see that you tagged your entry with "Scripting". So I will give you the code to insert special character Previous Page to an insertion point in your text. Let's assume you have some text selected and want to address the first insertion point in that selected text to add that special character:
app.selection[0].insertionPoints[0].contents =
SpecialCharacters.PREVIOUS_PAGE_NUMBER;
You can look up all available special characters in DOM documentation compiled by Gregor Fellenz:
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#SpecialCharacters.html
Regards,
Uwe Laubender
( ACP )