FootnotePosition enumeration

FootnotePosition enumeration

Defines the footnote position.

Members

NameDescription
BOTTOM_OF_PAGEFootnotes are output at the bottom of each page.
BENEATH_TEXTFootnotes are output beneath text on each page.

Examples

Shows how to select a different place where the document collects and displays its footnotes.

doc = aw.Document()
builder = aw.DocumentBuilder(doc)
# A footnote is a way to attach a reference or a side comment to text
# that does not interfere with the main body text's flow.
# Inserting a footnote adds a small superscript reference symbol
# at the main body text where we insert the footnote.
# Each footnote also creates an entry at the bottom of the page, consisting of a symbol
# that matches the reference symbol in the main body text.
# The reference text that we pass to the document builder's "insert_footnote" method.
builder.write('Hello world!')
builder.insert_footnote(aw.notes.FootnoteType.FOOTNOTE, 'Footnote contents.')
# We can use the "position" property to determine where the document will place all its footnotes.
# If we set the value of the "position" property to "FootnotePosition.BOTTOM_OF_PAGE",
# every footnote will show up at the bottom of the page that contains its reference mark. This is the default value.
# If we set the value of the "position" property to "FootnotePosition.BENEATH_TEXT",
# every footnote will show up at the end of the page's text that contains its reference mark.
doc.footnote_options.position = footnote_position
doc.save(ARTIFACTS_DIR + 'InlineStory.position_footnote.docx')

See Also