Back

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

Forum Replies Created

Viewing 15 posts - 181 through 195 (of 340 total)
  • Author
    Posts
  • in reply to: Index from Character Style #94293
    Peter Kahrel
    Participant

    Here’s an outline of InDesign’s index feature:

    https://helpx.adobe.com/indesign/using/creating-index.html

    It has a section ‘Generate an index’, you can look for that, but reading the whole article is probably useful.

    > The scripts menu does contain a line-item called index_from_charstyles.txt

    It’s a small text file written by the script to store the settings of the script’s dialog. Next time you run the script those data are placed in the dialog.

    P.

    in reply to: Index from Character Style #94235
    Peter Kahrel
    Participant

    This page explains where to place a script and how to run it: https://www.kahrel.plus.com/indesign/script-info.html

    These two sections are relevant for you:

    The Script folder
    Running a script

    P.

    in reply to: Index from Character Style #94181
    Peter Kahrel
    Participant

    Michel — So all that Jack Cane said was that he found the results of the discussion in the other thread ‘less than satisfying’. You may find that expression less than tactful, or maybe a bit ungrateful, or just clumsily expressed. I still think that your responses to him and to Masood Ahmad were out of line. But let’s not bore the forum any longer with this disagreement.

    Peter

    in reply to: Index from Character Style #94139
    Peter Kahrel
    Participant

    Michel — You’re way out of line here. You have no cause to abuse Jack Cane and Masood Ahmad the way you did. I think you owe them an apology.

    Your rant about people trying to have other people do their work for free is misguided and hypocritical. Misguided because Jack was just looking for some guidance — he wasn’t asking anyone to do work for him; and hypocritical because you asked for and received a lot of support in Adobe’s scripting forum when you asked the forum regulars to evaluate your scripts without offering anything in return.

    Peter

    in reply to: Indesign "Grep" #94055
    Peter Kahrel
    Participant

    Michel — In the last example volander uses a character style, not a paragraph rule. And his image shows he just wants to add space at the start and the end of the paragraph (not before and after the paragraph).

    P.

    in reply to: Index from Character Style #94051
    Peter Kahrel
    Participant

    Jack,

    There’s a script that you can use to add the content of character styles to the index:
    https://www.kahrel.plus.com/indesign/index_charstyles.html

    > I assume that my separate documents will therefore need to be combined into an inDesign, multi-volume ‘document’

    Correct. It’s called a book file. You can add individual InDesign documents to a book file, then add a separate document for the index, and have the index generated into that.

    Peter

    in reply to: Indesign "Grep" #94049
    Peter Kahrel
    Participant

    In that case you can replace ^.+$ with \x20$0\x20 (\x20 is the space character). If you have just text there then that works. A safer method would be to replace ^(.) with \x20$1 and (.)$ with $1\x20.

    P.

    in reply to: Apply color to all tracked changes in Story Editor #93883
    Peter Kahrel
    Participant

    > if the condition is applied to visible text and you use “ConditionIndicatorMode.SHOW_AND_PRINT_INDICATORS”, I can see here the hightlighting in a PDF.

    Ok.

    in reply to: Apply color to all tracked changes in Story Editor #93878
    Peter Kahrel
    Participant

    Condition highlights don’t show in a PDF.

    If you want to apply a colour you can use this one-liner:

    app.documents[0].stories.everyItem().changes.everyItem().characters.everyItem().fillColor = app.documents[0].swatches.item(‘C=0 M=100 Y=0 K=0’);

    This uses the default colour ‘C=0 M=100 Y=0 K=0’ — make sure it’s there, or use any other colour.

    Peter

    in reply to: Apply color to all tracked changes in Story Editor #93872
    Peter Kahrel
    Participant

    Doesn’t have to be complex (or even a script). You can apply some form of highlighting as a local override, e.g. underline.

    in reply to: Apply color to all tracked changes in Story Editor #93861
    Peter Kahrel
    Participant

    Track changes isn’t exposed in the Find/Change window, but you can add a character style to additions with the following one-liner (first create a character style called change and set any formatting):

    app.documents[0].stories.everyItem().changes.everyItem().characters.everyItem().appliedCharacterStyle = app.documents[0].characterStyles.item(‘change’);

    Peter

    in reply to: GREP style after double line break #93860
    Peter Kahrel
    Participant

    GREP styles are defined inside a paragraph (or paragraph style). Which means that you’d first have to apply a paragraph style to those titles — in which case you don’t need a GREP style, you simply make the formatting part of the paragraph style. Also, Anne-Marie correctly wrote that you can look for , but that’s a forced line break. If those line breaks are paragraph breaks then you can’t use a GREP style.

    Why don’t you apply a paragraph style with a GREP find/change? Look for (?<=\r\r).+ and apply a paragraph style. And if you set space before in the paragraph style, you can remove those two line breaks (which you really should do): Find what: \r\r(.) Change to: $1 Change Format: </p> <p>Peter

    in reply to: Custom Excel Number Formats for linked table in InDesign #93748
    Peter Kahrel
    Participant

    Yes.

    in reply to: Script for copying one IND page to another document #93672
    Peter Kahrel
    Participant

    Only now do I see that the original question was posted eight years ago. Duh!, as they say.

    in reply to: Script for copying one IND page to another document #93671
    Peter Kahrel
    Participant

    There is no need to export the page and place it elsewhere, you can simply duplicate a page to another document. Open the ESTK (ExtendScript ToolKit), Adobe’s script editor. If you don’t know how this works, see Help > JavaScript Tools Guide CC for an overview. Browsing InDesign’s object model, check whether the Page object has what you’re looking for
    : select your InDesign version under ‘Browser’, in the Classes’ panel, select Page. Then in the Properties and Methods panel, browse through the list. eventually you’ll find ‘move (to, reference, binding): Page’.

    This is how you use that function: assume that you want to duplicate the first page of the active document after the third page of a document named ‘immigration.indd’ (which must be open). This one-line script does that:

    app.activeDocument.pages[0].duplicate (LocationOptions.AFTER, app.documents.item(‘immigration.indd’).pages[2]);

    Concretely, you’d do this. You mentioned labelling your page. You can do that by placing a tiny text frame (or a rectangle, graphic line, any page item) on the page and name it on the Layers panel. Call it e.g. ’emigrate’. That makes it very easy to find. Then duplicate the page on which the frame sits to the other document. This two-line script does that:

    myPage = app.activeDocument.pageItems.item(’emigrate’).parentPage;
    myPage.duplicate (LocationOptions.AFTER, app.documents.item(‘immigration.indd’).pages[2]);

    This is a working script. You should add some error checking, but this is all you need.

    Well, it could be. Is there any special reason why you want to export to PDF and place that PDF in the target document?

    P.

Viewing 15 posts - 181 through 195 (of 340 total)