Highlighted

Cross References to previus page

Community Beginner ,
Sep 30, 2020

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 />

TOPICS
Scripting

Views

52

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Cross References to previus page

Community Beginner ,
Sep 30, 2020

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 />

TOPICS
Scripting

Views

53

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Sep 30, 2020 0
Adobe Community Professional ,
Oct 01, 2020

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 )

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 01, 2020 1
Adobe Community Professional ,
Oct 01, 2020

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 )

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 01, 2020 1