Back

If your email is not recognized and you believe it should be, please contact us.

Forum Replies Created

Viewing 15 posts - 211 through 225 (of 340 total)
  • Author
    Posts
  • in reply to: Multi level numbered list across documents #89627
    Peter Kahrel
    Participant

    You 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

    in reply to: Plugin removed in new update CC2017 #89608
    Peter Kahrel
    Participant

    Plug-ins are version-specific. You should contact the plug-in’s author for an update to CC2017.

    in reply to: Indexing multiple entries #89607
    Peter Kahrel
    Participant

    That’s what InDesign does by default.

    Peter

    in reply to: Overall page numbering and section-specific page numbering #89606
    Peter Kahrel
    Participant

    É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 6

    where 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

    in reply to: Numbering pages – nonstandard #89559
    Peter Kahrel
    Participant

    > 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

    in reply to: Overall page numbering and section-specific page numbering #89558
    Peter Kahrel
    Participant

    In the Pages panel, when you add a section, you can set it to restart page numbering. Did you see that option?

    Peter

    in reply to: Convert Endnotes to Cross References? #89503
    Peter Kahrel
    Participant

    Hi 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

    in reply to: Copy GREP styles from one Paragraph Style to another #88927
    Peter Kahrel
    Participant

    What exactly do you mean by ‘parent paragraph style’? The based-on style or the parentstyle group?

    Peter Kahrel
    Participant

    (Posted in the wrong place.)
    No, that space shouldn’t be there. Sorry.
    P.

    Peter Kahrel
    Participant

    No, there shouldn’t be. Sorry, don’t know how that got there.

    P.

    Peter Kahrel
    Participant

    You 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

    in reply to: Script to rename all Paragraph styles #88622
    Peter Kahrel
    Participant

    This 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

    in reply to: Importing Word text and keeping local formatting? #88280
    Peter Kahrel
    Participant

    > 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

    in reply to: Layer Naming & Add Layer with box script wish #88250
    Peter Kahrel
    Participant

    I 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.

    in reply to: Layer Naming & Add Layer with box script wish #88240
    Peter Kahrel
    Participant

    Here 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

Viewing 15 posts - 211 through 225 (of 340 total)