Back

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

Forum Replies Created

Viewing 14 posts - 196 through 210 (of 339 total)
  • Author
    Posts
  • in reply to: Custom Excel Number Formats for linked table in InDesign #93670
    Peter Kahrel
    Participant

    I don’t know about number formats in Excel, but if they turn out to be lost in translation, you can always import the numbers as they are and do one or more replacements in InDesign. For example, to change your numbers, use this GREP find/replace:

    Find what: \d{1,3}\.[1-9]\K00
    Change to: k

    The GREP expression reads ‘Match two zeros when they’re preceded by (\K) 1-3 digits followed by a dot followed by 1-9’.

    P.

    in reply to: TOC Not Playing Nicely with Anchored Objects #93668
    Peter Kahrel
    Participant

    An alternative to your approach is the following. Create a character style that hides the text to which it is applied: type size 0.1 points, horizontal scale 1%, fill colour Paper. Add the text that should appear in the toc at the headings in the text and apply the character style. Add a separator character so you know in the generated toc where the real toc entry starts. Generate the toc. Fix the toc, e.g. by changing the character style (if it’s in a separate document) or removing it, or replace it with a different character style — whatever is appropriate in your set-up.

    By the way, is it because of the anchors that the entries appear in the wrong order? That’s something you should find out first.

    P.

    in reply to: Difference between "page columns" and text frame columns? #91472
    Peter Kahrel
    Participant

    That’s correct. If you place an overset story on a page with two columns set in the Margind and Columns window, you get two text frames. That’s different from setting columns in a frame’s text frame options window.

    in reply to: Footnotes to Endnotes #91079
    Peter Kahrel
    Participant

    Vic,

    > the endnote numbers will not accept my style, but text does

    The endnotes are numbered using InDesign’s paragraph numbering, that’s why you can’t format the numbers manually. Use a character style in the paragraph style’s set-up. If you haven’t changed anything to the styles as they’re set up by the script, the numbers should appear. Don’t understand what that doesn’t happen. If you post your document somewhere I’ll investigate.

    Peter

    in reply to: FindChangeList grep and period #90541
    Peter Kahrel
    Participant

    What about this:

    “(?<=M.)s" For some reason InDesign gets confused by \> in the place where you had it. No idea why.

    Peter

    in reply to: Scripting Font Subset #90513
    Peter Kahrel
    Participant

    Unfortunately, you can’t by using an InDesign script. The only way is to open the font in a font editor and export a glyph list.

    Peter

    in reply to: Hot key or script control of Find/Change Panel? #90407
    Peter Kahrel
    Participant

    Here’s a script that you can use to run any number of GREP queries:
    https://www.kahrel.plus.com/indesign/grep_query_runner.html

    It’s very basic, all you can do is to run a number of queries.

    Peter

    in reply to: Position new text boxes #90218
    Peter Kahrel
    Participant

    You can use the bounds property of the page. It compares with a frame’s geometricBounds. To place a box (200 wide, 75 high) at the bottom-right of the first page of a document, do this:

    width = 200;
    height = 75;
    pageBounds = app.documents[0].pages[0].bounds;
    app.documents[0].textFrames.add ({geometricBounds: [pageBounds[2]-height, pageBounds[3]-width, pageBounds[2], pageBounds[3]]});

    Peter

    in reply to: Remove White space around MathType eps #90030
    Peter Kahrel
    Participant

    Where is the thumbs-up button?!

    in reply to: Remove White space around MathType eps #90026
    Peter Kahrel
    Participant

    Bala — The only way to remove that space is to crop manually all the EPSs in InDesign. MathType rounds the EPSs bounding box up to whole points and adds (at least) 1 to make sure that no part of an equation is clipped. There is no way (in MathType or in InDesign) to crop the frames automatically.

    Peter

    in reply to: Script for identifying blank pages with Master Page applied #89896
    Peter Kahrel
    Participant

    Not sure what uou mean by

    > so that I can remove the applied master page immediately leaving them completely blank

    Maybe ‘apply [None] to them’? In that case:

    (function () {
      var list = [];
      var pages = app.documents[0].pages.everyItem().getElements();
      for (var i = 0; i < pages.length; i++) {
        if (pages[i].pageItems.length === 0 && pages[i].appliedMaster !== null) {
          list.push (pages[i].name);
          pages[i].appliedMaster = null
        }
      }
      alert ('Blank pages with a master applied: \r\r' + list.join('\r'));
    }());

    The script lists the page numbers as well so you can check.

    Peter

    in reply to: Find/Change only on Master Page? #89892
    Peter Kahrel
    Participant

    > We’ve tried doing a find/replace on that whole header with the idea being that I can just change the ## and the 2016 and leave everything else the same

    Do two GREP replacements:

    Find what: (?<=##:\x{0018}~=\x{0018}, )2016
    Change to: 2017 (or whichever year)
    
    Find what: ##(?=:\x{0018})
    Change to: whatever you want in place of ##

    By specifying the page variables (\x{0018}) in a lookbehind (the first replacemend) and a lookahead (the second one) you use them to find text, but the variables are not involved in the change.

    Peter

    in reply to: Multi level numbered list across documents #89630
    Peter Kahrel
    Participant

    I meant Indesign’s automatic chapter number. You set the first chapter number in the ‘Numbering & Section options’ of the first chapter. The rest of the chpaters you set to ‘Automatic Chapter Numbering’. Then in the paragraph styles you use the ‘Chapter Number’ placeholder as the first number of the automatic section numbers. The only manual process is setting thing up, from then all everything is automatic.

    in reply to: Export pdf in Original Folder #89628
    Peter Kahrel
    Participant

    You should probably use the preset object, not a string. So instead of ‘LR’, use

    app.pdfExportPresets.item(‘LR’);

    Peter

Viewing 14 posts - 196 through 210 (of 339 total)