Skip to content Skip to sidebar Skip to footer

Indesign Script For Footnotes Losing Text Styles

I'm working with footnotes in InDesign 5 . I managed to convert my text to footnotes, but my problem is that they lose the style in the process. This is the script I'm using : Appl

Solution 1:

Here is your problem:

fn.texts[0].insertionPoints[-1].contents = fnText;

contents gets you the plain text only: a String or SpecialCharacters enumerator, where "String" is to be taken literally as a Javascript string.

Use the move method instead (and you have to rewrite your match line as well, since it also works on, and returns, plain Javascript strings). move moves native InDesign text around, with all formatting included.

Post a Comment for "Indesign Script For Footnotes Losing Text Styles"