Skip to main content
Participant
October 14, 2025
Answered

Convert Endnotes to Static Text While Preserving Roman Numeral Superscripts

  • October 14, 2025
  • 2 replies
  • 157 views

I've been using this script:
https://creativepro.com/files/kahrel/indesign/footnote_endnote_conversion_cc2018.html

It works well to convert endnotes to static text, but it resets my superscript Roman numeral references back to default numbering (1, 2, 3). I’d like to keep both the superscript formatting and the Roman numeral style in the converted static endnotes.

Is there a way to convert endnotes to static text without losing the Roman numeral superscripts?

Correct answer Peter Kahrel

I updated the script so that it now handles lower-case Roman numbers (in addition to Arabic numbers).

 

As for formatting of the references, the script respects that when you use a character style for the endnote references: create a character style, apply superscript, and apply that character style in the Endnote Options window.

2 replies

Participant
January 29, 2026

I’m jumping in to vouch for Peter and his script linked above. (Note to Mac users, once you go to the linked page, control-click his link to the script and say ‘Save link as...’ to save the script in the correct format.) 

I downloaded the script and it worked great to convert the endnotes to static numbers. Peter was a great help when I had to email him a question too! I’ve always resisted scripts, fearing anything not native to the software, but this experience might convert me into a regular script user. 

Peter Kahrel
Community Expert
Peter KahrelCommunity ExpertCorrect answer
Community Expert
October 14, 2025

I updated the script so that it now handles lower-case Roman numbers (in addition to Arabic numbers).

 

As for formatting of the references, the script respects that when you use a character style for the endnote references: create a character style, apply superscript, and apply that character style in the Endnote Options window.

Petite_JpAuthor
Participant
October 14, 2025

Amazing! Thank you so much for you're speedy response! It was racking my brain for ages (as I don't script myself) and ChatGPT didn't help at all, haha. The script works wonders! However I needed it to work for Upper Roman numerals, but that was an easy fix when reading the script. thanks again, you're amazing!

For anyone that needs it in Upper Roman, you can edit the script easily to read:

	var roman = app.documents[0].endnoteOptions.endnoteNumberingStyle === NumberingStyle.UPPER_ROMAN;

	var romanDecimals = [
		['', 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX'],       // ones
    ['', 'X', 'XX', 'XXX', 'XL', 'L', 'LX', 'LXX', 'LXXX', 'XC'],       // tens
    ['', 'C', 'CC', 'CCC', 'CD', 'D', 'DC', 'DCC', 'DCCC', 'CM'],       // hundreds
    ['', 'M', 'MM', 'MMM','4M','5M','6M','7M','8M','9M'],                 // thousands 
	];