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.
Thank you all so much for all your help.
Today I learned a little more. It was a productive day.
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:
Didn't work - try again…
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?
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.
Copy link to clipboard
Copied
If you have any more ideas, please let me know.
Thanks
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! 🙂
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)
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.
(^/)
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 😛
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). 😉
(^/)
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.
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!
(^/)
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.
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.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Excellent solution! 😉
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.
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:
Did you do the experiment exactly as you told me and did it work?
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).
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
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:
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?
Copy link to clipboard
Copied
It's a script!
let's continue this discussion in private. In 30 min. Not at my office now.
(^/)
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Peter,
I tried to do exactly as requested, but it doesn't work on the master page.
Copy link to clipboard
Copied
That's what we could call something truly funny!
[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!
It's the Magic of Christmas! =D
(^/)