lambdoc icon indicating copy to clipboard operation
lambdoc copied to clipboard

Backlinks

Open edwintorok opened this issue 10 years ago • 3 comments

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 a note 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.

edwintorok avatar Oct 12 '14 15:10 edwintorok

That's a fair request. Let's keep this ticket open...

darioteixeira avatar Oct 13 '14 10:10 darioteixeira

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.

edwintorok avatar Nov 09 '14 16:11 edwintorok

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.

darioteixeira avatar Nov 09 '14 18:11 darioteixeira