The span id is attached to the note whenever possible

This commit is contained in:
Bastien Dumont
2025-12-07 21:15:35 +01:00
parent cdf3277c62
commit fb14bd7a02
4 changed files with 22 additions and 5 deletions

View File

@ -29,6 +29,7 @@ The preceding configuration can be applied to the following sample:
[BibTeX]{.term
lem=BibTeX
def="A program designed to format bibliographical entries"
#bibtex
} citations. Note that in LaTeX environments,
the material between the begin and end tags will be interpreted
as [raw LaTeX]{.term
@ -37,6 +38,8 @@ as [raw LaTeX]{.term
}, not as Markdown.
```
In LaTeX and ConTeXt, if the span has an identifier (like `#bibtex` above), it will be used as the label of the note.
For DOCX output, the note is set as the content of a tooltip attached to an asterisk following the body text. Since this does not always produce good results, notably because tooltips only display plain strings, DOCX output is deactivated by default. However, you can activate it for individual classes by setting the variables `docx-body-text` and `docx-note-text`:
``` yaml