Forum Replies Created
-
AuthorPosts
-
Peter KahrelParticipantYou can use chapter numbers for the level-1 section numbers (or the chapter numbers). Then in the paragraph style(s) for the headings, set the chapter number as the first number.
Peter
Peter KahrelParticipantPlug-ins are version-specific. You should contact the plug-in’s author for an update to CC2017.
Peter KahrelParticipantThat’s what InDesign does by default.
Peter
November 5, 2016 at 4:25 am in reply to: Overall page numbering and section-specific page numbering #89606
Peter KahrelParticipantÉtienne — Ah, I see. I should have read your post better. So you want this kind of numbering:
APP1-1 1
APP1-2 2
APP1-3 3
APP2-1 4
APP2-2 5
APP2-3 6where the number following APP1 and APP-2 are section-level page numbers, so to speak, and the last numbers (1 to 6) the accumulated page numbers. If that’s correct, you can use either of the tricks described by David Blatner (https://creativepro.com/use-numbered-lists-instead-of-auto-page-numbering.php or https://creativepro.com/sequential-numbering-inside-paragraphs.php) or a script. I would use a script to do the numbering because it can override the master items, which, as David mentioned, is a hassle when you use a non-scripted method.
Peter
Peter KahrelParticipant> but if they add in a new section later the old ones dont update
Put each section in a separate document, then add all documents to an InDesign book. Use the Chapter variable for the section numbers.
But the challenge is the first page number: InDesign can’t start numbering at 0, it has to be at least 1. You could start numbering at 1 and do the page number in a character style so that a script can later find it and replace the auto page number with a static value (minus 1). Though that’s a problem if you use cross-references.
Peter
November 3, 2016 at 1:31 am in reply to: Overall page numbering and section-specific page numbering #89558
Peter KahrelParticipantIn the Pages panel, when you add a section, you can set it to restart page numbering. Did you see that option?
Peter
Peter KahrelParticipantHi Matt,
Thank you for your kind words.
> What is the best way to do A? (I have DTP tools – is cross references pro the best tool for that?)
Yes, especially if you work with InDesign books, DTPtools’s cross-references are superior to InDesign’s. They work in a similar way, so if you’ve ever used InDesign’s cross-references, DTPtools’s xrefs will look familiar. Not only are DTPtools’s cross-refs quicker and more robust, they also let you do cross-references to footnote numbers, something that InDesign sorely lacks.
> What’s the benefit of cross refs vs. page hyperlinks?
In the PDF, page hyperlinks always show the whole page. With cross-refs you can target text anchors in InDesign, which means that in the PDF you can zoom in on the text where the cross-ref is.
> find endnote text that begins with a tab and a number (^\d+ in GREP).
Actually, the script (update now posted) looks for ^*\d+, i.e. including zero tabs.
Peter
October 7, 2016 at 12:31 pm in reply to: Copy GREP styles from one Paragraph Style to another #88927
Peter KahrelParticipantWhat exactly do you mean by ‘parent paragraph style’? The based-on style or the parentstyle group?
September 26, 2016 at 1:25 pm in reply to: GREP Tricks: Using LookBehind and LookAhead expressions to convert a SPACE into a NON-BREAK SPACE #88663
Peter KahrelParticipant(Posted in the wrong place.)
No, that space shouldn’t be there. Sorry.
P.September 26, 2016 at 1:22 pm in reply to: GREP Tricks: Using LookBehind and LookAhead expressions to convert a SPACE into a NON-BREAK SPACE #88662
Peter KahrelParticipantNo, there shouldn’t be. Sorry, don’t know how that got there.
P.
September 26, 2016 at 1:01 pm in reply to: GREP Tricks: Using LookBehind and LookAhead expressions to convert a SPACE into a NON-BREAK SPACE #88660
Peter KahrelParticipantYou can’t use variable-length lookbehinds — not with the classic (?<= ). But you don't need to check if what precedes the % is a number: a digit will do. So
(?<=\d)%would serve your purpose. For interest’s sake, if you really wanted a variable-length lookbehind, use \K:\d+\K%.Peter
Peter KahrelParticipantThis would do it:
pstyles = app.documents[0].allParagraphStyles; for (i = pstyles.length-1; i > 1; i--) { pstyles[i].name = pstyles[i].name.replace(/\./g,'_'); }Peter
Peter KahrelParticipant> What is the best way for me to import a Word document into In Design without stripping the local formatting?
When you place a Word document (File > Place), tick the ‘Show import options’ checkbox. Then in the ‘Microsoft Word Import Options’ dialog, make sure that the radio button ‘Preserve styles and formatting in . . .’ is sected.
> And the how can I apply a paragraph style sheet in In Design without stripping away the local formatting?
1. Apply the paragraph style to one or more paragraphs.
2. Use Find/Change: set your find string and enter the paragraph style to be applied in the ‘Change format’ panel. DO NOT click ‘Change all’, that’ll remove all the local formatting. Click ‘Change’, then ‘Change/Find’.Peter
Peter KahrelParticipantI didn’t have many illusions about those bonus points :)
try { app.documents[0].layers.item('Layer 1').name = 'art'; app.documents[0].layers.add ({name: 'die line', layerColor: UIColors.RED}).move(LocationOptions.AT_BEGINNING); app.documents[0].pages[0].rectangles.add ( app.documents[0].layers.item('die line'), { name: 'die line', geometricBounds: app.documents[0].pages[0].bounds, strokeWeight: '1 pt', strokeColor: 'die line', fillColor: 'Paper' } ); } catch (e) { alert (e); }P.
Peter KahrelParticipantHere you go:
try { app.documents[0].layers.item('Layer 1').name = 'art'; app.documents[0].layers.add ({name: 'die line', layerColor: UIColors.RED}).move(LocationOptions.AT_BEGINNING); app.documents[0].pages[0].rectangles.add ( app.documents[0].layers.item('die line'), { name: 'die line', // More bonus points! (The box is easy to identify in the layers panel) geometricBounds: app.documents[0].pages[0].bounds, strokeWeight: '1 pt', fillColor: 'die line' } ); } catch (e) { alert (e); }Now, what would all those bonus points give me. . .
Peter
-
AuthorPosts
