Reply To: Footnote Special Character / Marker

#114273
Peter Kahrel
Participant

> When I only do the footnote the number doesn’t show up. For instance, with this code below:

> var footnote = tf.footnotes.add(LocationOptions.AFTER, location)
> footnote.contents = text.toString()

The number doesn’t show up because you delete it by replacing all the footnote content. You should add the text after the footnote number and the separator:

footnote.insertionPoints[-1].contents = ‘whatever’;

This article was last modified on February 9, 2019

Comments (0)

Loading comments...