darioteixeira / lambdoc

Lambdoc is a library providing support for semantically complex documents in Ocsigen web applications
GNU General Public License v2.0
17 stars 1 forks source link

Backlinks #20

Open edwintorok opened 9 years ago

edwintorok commented 9 years ago

A nice addition would be a backlink after each footnote, see the bottom of this document for example. This would need a few things:

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.

darioteixeira commented 9 years ago

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

edwintorok commented 9 years ago

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.

darioteixeira commented 9 years ago

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.