References notes and floats/Footnotes/How-to guides/Creating interactive footnotes

Unofficial ConTeXt Wiki mirror

Last modified: 2026-07-26

Footnotes in ConTeXt  ·  Overview  ·  Tutorial  ·  How-to guides  ·  Creating interactive footnotes  ·  Reference  ·  Explanation  ·  Glossary

🚧 Under construction — This guide is currently being revised. Please do not modify its source code while this banner remains in place.

Interactive and digital output  ·  Previous: Producing annotated and unannotated versions  ·  How-to guides overview  ·  Next: Typesetting notes in bidirectional documents

Contents

1. Goal

Create internal PDF links between note marks in the running text and their corresponding note entries.

Interactive notes are especially useful in:

Result

Clicking a note mark can move the reader to the corresponding note entry. Depending on the PDF viewer and the note structure, clicking the note number may also provide return navigation.

2. Enable PDF interaction globally

Activate interactive PDF features with:

\setupinteraction
  [state=start]

2.1. MWE: a basic interactive footnote

Compile the example and open the generated PDF in a viewer that supports internal document links.

Interaction is a PDF feature

A static image or wiki preview cannot demonstrate the links. Test the generated PDF itself.

3. Enable interaction for a note series

Interaction can be configured explicitly for the footnote notation:

\setupnotation
  [footnote]
  [interaction=yes]

3.1. MWE: explicit interaction for footnotes

The two settings have different roles:

Setting Role
\setupinteraction[state=start] Enables interactive PDF features globally.
\setupnotation[footnote][interaction=yes] Enables interaction for the footnote notation.

Global PDF interaction must be active, and the note series must not have interaction disabled.

4. Control the appearance of note links

Use \setupinteraction to control the general appearance and destination behaviour of links.

For example:

\setupinteraction
  [state=start,
   color=LinkColor,
   contrastcolor=LinkColor,
   style=normal,
   focus=standard]

The principal settings are:

Setting Function
color Sets the colour used for ordinary links.
contrastcolor Sets a contrasting colour for links placed on coloured backgrounds.
style Sets the typographical style applied to links.
focus=standard Requests a standard destination view when a link is followed.

4.1. Preserve conventional typography

Interactive note marks do not need to look like web links.

A restrained configuration is usually preferable:

\setupinteraction
  [state=start,
   color=,
   contrastcolor=,
   style=normal,
   focus=standard]

Compile this example with the current ConTeXt version and inspect the result in the PDF viewers used by the intended readers.

4.2. Use contrast colours carefully

A note mark placed on a coloured background may require a suitable contrastcolor.

For example:

\setupinteraction
  [state=start,
   color=DarkBlue,
   contrastcolor=white,
   style=normal]

Do not make the mark invisible

If the link colour matches the background, the note mark may appear to be missing even though the link exists.

Inspect note marks against every text and background colour used in the document.

5. Test forward and return navigation

An interactive footnote may involve two directions:

  1. from the note mark to the note entry;
  2. from the note number back to a mark in the running text.

5.1. MWE: test both directions

Viewer behaviour varies

The internal links are written into the PDF, but zoom, focus, return navigation, highlighting, and keyboard behaviour may differ between PDF viewers.

Test at least:

6. Use interaction with postponed notes

Interactive links are especially useful when note entries are placed at the end of a section, chapter, or document.

6.1. MWE: an interactive postponed footnote

The internal link connects the note mark with the postponed entry.

For the placement mechanism itself, see:

7. Use interaction with named and repeated marks

A named note can be recalled later with \note.

7.1. MWE: several marks for one note entry

Both marks refer to the same note entry.

One destination, several calls

Several note marks may point to one shared entry. Return navigation may be ambiguous because the entry has more than one possible source mark.

For the reference mechanism, see:

8. Configure interaction for a custom note series

Interaction can be enabled independently for a custom note series.

8.1. MWE: interactive editorial notes only

This can be useful when:

For the definition of custom note series, see:

9. Disable interaction for one series

To retain other PDF links while disabling links for footnotes, use:

\setupnotation
  [footnote]
  [interaction=no]

9.1. MWE: disable footnote links only

Do not use:

\setupinteraction
  [state=stop]

unless every interactive PDF feature should be disabled.

10. Design for screen and print

Interactive links do not change the semantic function of a footnote.

In print:

For documents intended for both screen and print:

Design for both media

A well-designed interactive footnote should remain a normal, intelligible footnote when printed.

11. Understand the accessibility limits

Interactive navigation may help some keyboard and assistive-technology users, but clickable note marks do not by themselves make a PDF accessible.

Accessibility also depends on:

Interaction is not the same as accessibility

Clickable destinations are useful, but accessibility requires separate testing with appropriate tools, viewers, and assistive technologies.

Do not describe a PDF as accessible merely because its note marks are clickable.

12. Common mistakes

12.1. Forgetting to enable interaction globally

A series-level setting cannot create working PDF interaction when global interaction is stopped.

12.2. Using a link colour identical to the background

The note mark may appear to be missing even though its link exists.

12.3. Expecting identical behaviour in every PDF viewer

Test the output in the viewers likely to be used by the intended readers.

12.4. Disabling all interaction to remove footnote links

Use:

\setupnotation
  [footnote]
  [interaction=no]

when only footnote links should be disabled.

12.5. Assuming a repeated mark has an unambiguous return destination

Several marks may point to one entry, while return navigation may not identify a unique source mark.

12.6. Testing only the wiki preview

A static preview cannot show internal PDF navigation.

Compile the MWE and test the generated PDF directly.

12.7. Treating clickable notes as proof of accessibility

Internal links are only one part of an accessible document.

Most frequent diagnostic error

A note link may exist even when it appears absent. Check the interaction colour, background colour, series settings, and PDF viewer before changing the note mechanism.

13. Complete example

The following MWE combines:

13.1. MWE: interactive ordinary and editorial notes

Compile the example and check that:

  1. the ordinary footnote mark links to the page-bottom entry;
  2. the editorial marks link to the postponed editorial entry;
  3. both editorial marks use the same letter;
  4. the links remain visually restrained;
  5. the note system remains intelligible when printed;
  6. navigation is tested in more than one PDF viewer.

14. What this guide has established

To create interactive footnotes:

  1. enable PDF interaction with \setupinteraction[state=start] ;
  2. enable or disable links for each note series with \setupnotation ;
  3. control link colour, contrast colour, style, and destination focus globally;
  4. test forward and return navigation in the generated PDF;
  5. use interaction with postponed notes and stable internal references;
  6. configure custom note series independently;
  7. disable links per series rather than disabling all interaction;
  8. test both screen and print output;
  9. distinguish interactivity from accessibility.

The central principle is that interaction adds navigation to the note structure; it does not replace that structure.

15. Next steps

15.1. Continue with the next guide

15.2. Continue with related tasks

15.3. Consult the documentation

Interactive and digital output  ·  Previous: Producing annotated and unannotated versions  ·  How-to guides overview  ·  Next: Typesetting notes in bidirectional documents

Footnotes in ConTeXt  ·  Overview  ·  Tutorial  ·  How-to guides  ·  Creating interactive footnotes  ·  Reference  ·  Explanation  ·  Glossary