Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gregoriopellegrino/8c587a836f7a39c7d3ad32734fb06e7d to your computer and use it in GitHub Desktop.
Save gregoriopellegrino/8c587a836f7a39c7d3ad32734fb06e7d to your computer and use it in GitHub Desktop.
Script for Adobe InDesign to force the application of paragraph style to footnotes. Useful when importing text from a Word file with local formatting.
// based on https://www.id-extras.com/apply-paragraph-style-footnotes/
paragraph_style = document.footnoteOptions.footnoteTextStyle;
if(paragraph_style.name.charAt(0) == "[") {
alert("Please set a paragraph style for notes in Text > Document footnotes options...");
} else {
document.stories.everyItem().footnotes.everyItem().texts.everyItem().applyParagraphStyle(paragraph_style, true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment