• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Cross References to previus page

Community Beginner ,
Sep 30, 2020 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

206

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
community guidelines

correct answers 1 Correct answer

Community Expert , Oct 01, 2020 Oct 01, 2020

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

...

Votes

Translate

Translate
Community Expert ,
Oct 01, 2020 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 )

Votes

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
community guidelines
Community Expert ,
Oct 01, 2020 Oct 01, 2020

Copy link to clipboard

Copied

LATEST

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 )

Votes

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
community guidelines