lambdoc
lambdoc copied to clipboard
Backlinks
A nice addition would be a backlink after each footnote, see the bottom of this document for example. This would need a few things:
- references to paragraphs
- inline command to generate backlinks inside a referenced block, supported for: inline footnotes (easier, just 1 backlink), regular footnotes (multiple backlinks), citations (multiple backlinks)
- inline footnotes,
\note
command (equivalent of anote
block and\see
command with automatic naming)
Of course it should be user controllable, perhaps via a parameter for \notes
and \bibliography
.
This could also be used to generate a simple index (LaTeX has \index
and \printindex
), by showing all labels and their backlinks, perhaps by a command \index.
That's a fair request. Let's keep this ticket open...
I was looking whether I could implement this as an extension, and although I could generate references to footnotes with See, I cannot generate the note blocks themselves.
notes
is a BatDynArray that doesn't seem to be accessible to extensions.
Please provide a way for (block) extensions to generate notes.
Yes, the current extension mechanism does not provide access to "compiled" elements such as notes. However, as I've mentioned on ticket #7, I'm considering a different approach which could allow for extensions to implement what you need.