Peter Kahrel
Community Expert
Peter Kahrel
Community Expert
Activity
Apr 18, 2025
Thanks for the reminder, Michel.
... View more
Apr 18, 2025
1 Upvote
@Marshall_Brooks
A resizable window doesn't see when it gets overset. You'll have to set a minimum size.
... View more
‎Apr 09, 2025
12:58 AM
1 Upvote
[This topic came up in another topic -- five years later]
For the record, there is some confusion here about the notion 'cross-reference'. The OP asked how to change the index cross-reference labels See and See also. Two suggestions are about text cross-references (set in the Cross-references panel), two others, about the index labels. No solution was provided.
The only way to change the language the cross-reference labels is to select [Custom cross-reference] in the Type dropdown, then enter the label's name in the Custom field. If I were to produce a Dutch index in my English InDesign, I'd enter Zie or Zie ook there:
... View more
‎Apr 08, 2025
01:46 PM
2 Upvotes
@Peter Spier -- Your expression matches from the first opening parenthesis to the last. To match the last parenthetical in a paragraph you need this:
\([^)]+\).$
... View more
‎Apr 08, 2025
01:22 PM
3 Upvotes
@Abhishek Rao -- The discussion you posted the link for confuses cross-references created in the Cross-References panel and cross-references defined in the New Page Reference window (well, it is confusing). The solution provided there refers to cross-references done in the Cross-References panel.
@Leo1948 -- The only way I see is to use custom cross-references. If I were to produce an index for a Dutch book in my English InDesign, I'd do Zie and Zie ook as custom cross-refs:
... View more
‎Apr 05, 2025
04:37 AM
2 Upvotes
Nice one, Eugene. I agree that a manual find-and-replace is much safer, and your exception list looks good. It would look less scary if you make it case-insensitive with the (?i) switch, so you can use
(?i)(?<!\bmai)(?<!\bpri) . . .
Another thing is that I now remember that ize words should be changed only if you have a consonant+vowel before the z, so my original would be
[bcdfghjklmnpqrstvwxz][aeiou]\Kz(?=(e[ds]?|ations?)\b)
which ignores snooze, maize, etc. (You could probably remove some of the consonants in that list, x for instance.)
Probably some more generalizations are possible. Maybe it's the case that words like raze, razed should be ignored, i.e. you need three or more letters before the z.
And of course there are words that should be changed in some cases, e.g. the noun prize should be changed, but the verb should not.
As to applying a character style to make things visible, that's a nice idea, but I suggest using my GREP editor. It highlights all matches in a text (and can make a long GREP expression more readable). When you're satisfied that everything the expression catches can be changed, you simply change everything. When you see anything amiss, add it to the exceptions.
The GREP editor is here:
https://creativepro.com/files/kahrel/indesign/grep_editor.html
... View more
‎Apr 04, 2025
11:24 PM
1 Upvote
No, you can't replace text with grep styles.
And remember that some words should be ignored, such as maize. If you do a global change you should change these back afterwards
... View more
‎Apr 04, 2025
10:40 AM
2 Upvotes
Actually, that should be
z(?=(e[ds]?|ations?)\b)
Sorry.
... View more
‎Apr 04, 2025
09:10 AM
2 Upvotes
z-spelling is acceptable in UK English,that's why it's accepted by InDesign.
You can look for z-spellings using this grep expression:
z(?=(e[ds]|ations?)\b)
which looks for words that end in ze, zes, zed, zation, or zations and highlights only the z.
... View more
‎Mar 30, 2025
08:15 AM
1 Upvote
Footnotes are numbered by story. Is your text in separate text frames? If they are you need to thread them. Footnote numbering will then be as expected.
... View more
‎Mar 19, 2025
03:41 AM
1 Upvote
There are various scripts around that update all links in a document. A Google search with
indesign script update all links
shows a lot of them.
... View more
‎Mar 17, 2025
07:55 AM
Select a text frame or click somewhere in the text, then try this:
p = app.selection[0].parentStory.paragraphs.everyItem().getElements();
for (var i = p.length-1; i >= 0; i--) {
if (p[i].lines.length > 1) {
p[i].lines[1].characters[0].insertionPoints[0].contents =
SpecialCharacters.RIGHT_INDENT_TAB;
}
}
... View more
‎Mar 17, 2025
03:16 AM
2 Upvotes
You can get a character's baseline and ascent, but unfortunately not its x- or cap-height. There's a rather brutal workaround: convert a character to outlines, get the outline's top, then undo:
outline = myTextFrame.characters[0].createOutlines()[0];
top = outline.geometricBounds[0];
app.documents[0].undo();
This works only for the top. When you create the outline the character moves to the lefr or the right because its sidebearings are removed and (if it's not the first character in the frame) kerning with the previous character is cancelled.
[Mark beat me to it!]
... View more
‎Mar 17, 2025
01:37 AM
That's a possibility, but works only with tabular digits. And you need to take three-digit numbers into account.
... View more
‎Mar 17, 2025
01:09 AM
Eugene -- The initial tab is needed in order to right-align the page numbers. Bullets and numbering can't be used because the numbers are page numbers generated by the TOC, not by paragraph numbering.
... View more
‎Mar 14, 2025
04:04 AM
2 Upvotes
Well, you do in fact need a character style for the page number because it's at a bigger point size and you need to apply a negative baseline offset to align the top of the page number with the top of the entry.
Then you need to set tab stops in the paragraph style for the entry: a right-justified tab to right-align the page numbers, and a normal (left-justified) tab for the entry.
In the TOC style window, in the 'Between Entry and Number' field, enter ^t^i (tab and indent-to-here).
Finally in the generated TOC you then need to insert a tab before each page number, i.e. at the start of each toc entry. In the GREP tab:
Find what: ^
Change to: \t
... View more
‎Mar 14, 2025
03:31 AM
1 Upvote
This one works:
app.documents[0].gridPreferences.documentGridSnapto = true;
... View more
‎Mar 12, 2025
03:34 PM
1 Upvote
1. Create a text file (using a plain-text editor) with just the one-liner and save it as delete-all-topics.jsx.
2. Open InDesign's Scripts panel (Window > Utilities > Scripts), right-click the User folder, select 'Open in Finder' (or Explorer). This opens the Scripts folder in your file manager.
3. Copy the jsx file to the Scripts Panel folder.
You'll see the script in the Scripts panel.
To run the script. double-click it.
... View more
‎Mar 12, 2025
02:22 PM
1 Upvote
When you delete index markers the way Sean described (find index markers and replace with nothing) you remove the page references, not the topics. To remove topics, use that one-line script I showed. That will of course also remove any associated page references. Did you try that?
... View more
‎Mar 07, 2025
10:30 AM
1 Upvote
Find what: (\d+),(\d+)\s?\$
Change to: $$1.$2
... View more
‎Mar 05, 2025
12:00 PM
Granted. But when I flowed the story (in the uploaded document) the numbering was fine.
... View more
‎Mar 05, 2025
06:53 AM
@Abhishek Rao -- The OP already set up heir document correctly (I tried). I don't know how they managed to restart the numbering on following pages.
... View more
‎Mar 05, 2025
06:09 AM
character.remove() and character.contents = '' are equivalent. They have the same effect. It won't cause any problems. Just try it.
... View more
‎Mar 05, 2025
06:05 AM
1 Upvote
Did you check the 'Include Hyperlinks' checkbox in the Export PDF window?
... View more
‎Mar 05, 2025
05:57 AM
When you flow the text to the next pages, numbering continues as expected. Make sure the story is threaded properly.
... View more
‎Mar 05, 2025
05:30 AM
2 Upvotes
I've seen this a few times at the level of story, maybe the underltying problem is the same as with character. Anyway, try
foundItems[i].contents = ''
... View more
‎Mar 04, 2025
01:14 AM
3 Upvotes
This goes back at least to CS6. A bug was posted back then. No idea what happened to it.
... View more
‎Mar 03, 2025
10:50 AM
1 Upvote
It's normal text, so you can edit it like any other text. Just be aware that you'll lose all your changes when you re-generate the TOC.
... View more
‎Mar 03, 2025
10:49 AM
I can confirm that the problem doesn't occur in Affinity, so it looks as if this is an Adobe problem.
@Holger Walter34008837xo0j : Go to https://indesign.uservoice.com to log a bug.
... View more
‎Mar 03, 2025
08:12 AM
I tried with the font you use (Montserrat) and I can see the same problem, in the place, with the same characters. The kerning of the characters does not change, it's really a display problem. When you use other fonts you'll see the same, though with different characters.
It's not necessarily an InDesign problem, I've seen this happen when you zoom in and out, also in e.g. Acrobat.
... View more