Forum Replies Created
-
AuthorPosts
-
April 12, 2017 at 1:13 am in reply to: Custom Excel Number Formats for linked table in InDesign #93670
Peter KahrelParticipantI 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: kThe GREP expression reads ‘Match two zeros when they’re preceded by (\K) 1-3 digits followed by a dot followed by 1-9’.
P.
Peter KahrelParticipantAn 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.
January 22, 2017 at 10:48 am in reply to: Difference between "page columns" and text frame columns? #91472
Peter KahrelParticipantThat’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.
Peter KahrelParticipantVic,
> 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
Peter KahrelParticipantWhat about this:
“(?<=M.)s" For some reason InDesign gets confused by \> in the place where you had it. No idea why.
Peter
Peter KahrelParticipantUnfortunately, 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
Peter KahrelParticipantHere’s a script that you can use to run any number of GREP queries:
https://www.kahrel.plus.com/indesign/grep_query_runner.htmlIt’s very basic, all you can do is to run a number of queries.
Peter
Peter KahrelParticipantYou 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
Peter KahrelParticipantWhere is the thumbs-up button?!
Peter KahrelParticipantBala — 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
November 18, 2016 at 9:17 am in reply to: Script for identifying blank pages with Master Page applied #89896
Peter KahrelParticipantNot 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
Peter KahrelParticipant> 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
Peter KahrelParticipantI 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.
Peter KahrelParticipantYou should probably use the preset object, not a string. So instead of ‘LR’, use
app.pdfExportPresets.item(‘LR’);
Peter
-
AuthorPosts
