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

Number of pages vertically

Explorer ,
Dec 15, 2022 Dec 15, 2022

Copy link to clipboard

Copied

Hi friends,

I need help, does anyone know how to get the number of pages vertically on the master pages?

I tried to make the text box smaller, but the numbers are on top of each other…

Example below.

Thank you for your help.

 

Screenshot 2022-12-15 at 17.56.22.png

 

Thank you all so much for all your help.

Today I learned a little more. It was a productive day.

TOPICS
How to

Views

1.1K

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 2 Correct answers

Guide , Dec 16, 2022 Dec 16, 2022

Hi Peter!

 

It's simplistic to play:

On each parent page:

• Rotate -90 the text frame containing the page number variable.

• Select its text (the variable) and play this single-line code:

 

app.selection[0].properties = { characterRotation: 90, tracking: 400 };
 
Done!
 
Capture d’écran 2022-12-16 à 12.17.06.pngCapture d’écran 2022-12-16 à 12.17.23.png
 
Best,
(^/)  The Jedi

 

Votes

Translate

Translate
Participant , Dec 16, 2022 Dec 16, 2022

Didn't work - try again…

Votes

Translate

Translate
Community Expert ,
Dec 15, 2022 Dec 15, 2022

Copy link to clipboard

Copied

It's unclear to me what you want to happen. Is that page number 222, and you want it to be arrange sideways like one of these arrangements?

 

Screenshot 2022-12-15 at 10.51.32 AM.png

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
Explorer ,
Dec 16, 2022 Dec 16, 2022

Copy link to clipboard

Copied

Hi Steve, 

No, I want the page numbers to be exactly in this position:

1

2

3

 

222 was just a 3 digit page example.

Thanks for the reply.

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
Explorer ,
Dec 16, 2022 Dec 16, 2022

Copy link to clipboard

Copied

If you have any more ideas, please let me know.

Thanks

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
Participant ,
Dec 16, 2022 Dec 16, 2022

Copy link to clipboard

Copied

Try putting type on a path…

 

Draw a vertical path and add your text (ie: Page number marker on your master page). Choose the 'Stairstep' option. Then in paragraph style choose 'full justify'.

 

Once you have a point size you are happy with, you can alter the vertical 'spacing' between character by making the path longer or short. 

 

Hope that helps! 🙂 

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 ,
Dec 16, 2022 Dec 16, 2022

Copy link to clipboard

Copied

Ah -- very clever! (But indeed works only for page numbers that have the same number of digits, as Michel tries to point out)

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
Guide ,
Dec 16, 2022 Dec 16, 2022

Copy link to clipboard

Copied

… But it doesn't work!

That's why I showed pages 99, 100 & 101.

And if you want to vertically align the page numbers with 1, 2 or 3 numbers, you can't.

 

Capture d’écran 2022-12-16 à 15.02.15.png

(^/)

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
Participant ,
Dec 16, 2022 Dec 16, 2022

Copy link to clipboard

Copied

Notwithstanding that you aren't going to see p99 with p100… 😉 

 

It's not perfect on first applciation, but you would only need to have 3 master pages for 1x / 2x / 3x digit numbers if you were worried about alignment. This is why I mentioned adjusting the length of the path to adjust vertical position. 

 

You might be able to fine-tune with kerning / spacing / leading / tracking / justification / etc. to get the deisred result - but I just haven't got the time to experiment 😛 

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
Guide ,
Dec 16, 2022 Dec 16, 2022

Copy link to clipboard

Copied

It will work without taking in account the length of the path (just enough big to accept 3 numbers) if you "center" the text (and not "full-justify" it).  😉

 

(^/)

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 ,
Dec 16, 2022 Dec 16, 2022

Copy link to clipboard

Copied

Michel is right that setting rotating the frame with the page number variable and setting the character rotation and tracking is much easier.

 

But that script is needed only to set the character rotation in the paragraph style used for the page numbers.

 

So, @Paula.Vinagre , create a paragraph style for the page numbers, call it, say, folio, then use this one-line script to set the rotation and the tracking:

app.activeDocument.paragraphStyles.item('folio').properties = {
  characterRotation: 90,
  tracking: 400
}

The tracking can be changed in the paragraph style window, but because character rotation is a property present only in the CJK (Chinese-Japanese-Korean) versions of InDesign it's not exposed to other versions of InDesign, but it is exposed to scripting.

 

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
Guide ,
Dec 16, 2022 Dec 16, 2022

Copy link to clipboard

Copied

Peter,

 

The way given by denbykev nicely works if you use a "center" para style and just play, like me, with Tracking!  =D

The op just needs a path enough big to can contain 3 numbers!

 

(^/)

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
Explorer ,
Dec 16, 2022 Dec 16, 2022

Copy link to clipboard

Copied

Hi denbykev,

 

I tried to do exactly as you said, it doesn't work on master page.

 

Thank you for your answer.

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
Participant ,
Dec 16, 2022 Dec 16, 2022

Copy link to clipboard

Copied

No worries - I might not have explained it well enough 😉 

 

If it's allowed on the forum, I have attached the InD file I made, as an .idml file, so you can see my method. Thanks. 

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
Participant ,
Dec 16, 2022 Dec 16, 2022

Copy link to clipboard

Copied

Didn't work - try again…

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
Explorer ,
Dec 16, 2022 Dec 16, 2022

Copy link to clipboard

Copied

Excellent solution! 😉

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 ,
Dec 15, 2022 Dec 15, 2022

Copy link to clipboard

Copied

It looks as if the text box and/or the style associated with the page numbers has indent spacing preventing it from filling the box from the left edge.

 

Set a style for the page numbers if you don't already have one, and delete (zero out) all spacing. Then adjust the text box to comfortably fit at least 3 digits, and continue adjusting your layout from there.

 


┋┊ InDesign to Kindle (& EPUB): A Professional Guide, v3.1 ┊ (Amazon) ┊┋

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
Explorer ,
Dec 16, 2022 Dec 16, 2022

Copy link to clipboard

Copied

Hi James,
Thank you for your answer.
I did exactly what you advised me.

 

I defined a paragraph style. Left alignment.
I adjusted the text box with enough space.
This was the result:

Screenshot 2022-12-16 at 09.56.07.png

Did you do the experiment exactly as you told me and did it work?

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 ,
Dec 16, 2022 Dec 16, 2022

Copy link to clipboard

Copied

The page number is an InDesign variable, which in effect is a single character. Those variable don't break into multiple lines as you'd expect and/or want, which is why you see the digits printed on top of each other.

 

The only way probably is not to use InDesign's automatic page numbers, but use a script to insert the page numbers as plain text. That way they show up correctly. It's a pretty simple script, but must be run again when you add apages (or you could do it manually if you add just a couple of pages).

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
Explorer ,
Dec 16, 2022 Dec 16, 2022

Copy link to clipboard

Copied

Hi Peter,
Thank you for your answer.

 

I work in a book publisher and normally the number of pages is usually more than 100 pages, whether general editions or school manuals. It is not feasible to put manual page numbering, only in books with few pages, as Peter suggested (I had already thought about that).

The company asked to solve this problem. I'm trying…

Is there any Grep Style that adapts to solve this question?

If you have any more ideas, please let me know.

Thanks

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
Guide ,
Dec 16, 2022 Dec 16, 2022

Copy link to clipboard

Copied

Hi Peter!

 

It's simplistic to play:

On each parent page:

• Rotate -90 the text frame containing the page number variable.

• Select its text (the variable) and play this single-line code:

 

app.selection[0].properties = { characterRotation: 90, tracking: 400 };
 
Done!
 
Capture d’écran 2022-12-16 à 12.17.06.pngCapture d’écran 2022-12-16 à 12.17.23.png
 
Best,
(^/)  The Jedi

 

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
Explorer ,
Dec 16, 2022 Dec 16, 2022

Copy link to clipboard

Copied

Hi FRIdNGE,

Thank you for your answer.

 

It seems simple, but honestly I didn't realize it... I tried different ways, but I couldn't, I'm not an expert in InDesign, but I work every day in the program and I usually solve all the problems that appear.

 

This code:

app.selection[0].properties = { characterRotation: 90, tracking: 400 };

Is it to put exactly how it is where?

 

I put it in paragraph style — grep style (exactly as it is) and it didn't work.

What am I missing?

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
Guide ,
Dec 16, 2022 Dec 16, 2022

Copy link to clipboard

Copied

It's a script!

 

let's continue this discussion in private. In 30 min. Not at my office now.

 

(^/)

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 ,
Dec 16, 2022 Dec 16, 2022

Copy link to clipboard

Copied

@Paula.Vinagre 

Paula -- I don't think you saw @denbykev's solution. It's somewhere above: text on a path with the StairStep option enabled. Works fine with the page-number variable. No script required.

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
Explorer ,
Dec 16, 2022 Dec 16, 2022

Copy link to clipboard

Copied

Peter, 

I tried to do exactly as requested, but it doesn't work on the master page.

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
Guide ,
Dec 17, 2022 Dec 17, 2022

Copy link to clipboard

Copied

That's what we could call something truly funny!

 

Capture d’écran 2022-12-17 à 14.14.47.png

 

[TextFrame 1]  I create a simple text frame where I type "Funny" applying a "N.º pagina" para style.

 

[TextFrame 2]  I rotate this text frame at -90°.

 

[TextFrame 3]  I apply, for vertical-reading, my "N.º pagina 2" para style.

 

… So, sure, no need Script, just a "vertical-reading" para style!

 

Capture d’écran 2022-12-17 à 14.26.57.png

 

It's the Magic of Christmas!  =D

 

(^/)

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