On Fri, Jul 31, 2015 at 10:20 PM, Damien Cassou <damien.cassou@inria.fr> wrote:
Hi Peter,
Peter Uhnák <i.uhnak@gmail.com> writes:
I would like to resolve this issue: Automatic section anchors: Each section title should automatically generate an implicit hyperlink target (aka, anchor) pointing to the section. The text of the hyperlink target (the "reference name") is the same as that of the section title.
however since I'm not familiar with Pillar I don't know how acceptable this solution could be
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PRHTMLWriter>>visitHeader: aHeader [...]
I think this solution is not the right one because it only affects HTML5. I would prefer that the document is changed by adding anchors to it.
So in a sense of <a id="whatever" /><hX>..</hX>? And for LaTeX \label{sec:whatever} (The html form will probably change later to allow clickable headers, but that's another todo, which would probably apply only to HTML) Then, the HTML backend will print these anchors the same way it
prints the existing ones. The transformer infrastructure is made for that, please use it.
Thanks for the pointers! So if I understand it correctly, the Transformer performs sort of post-processing operations on the document tree? So instead of doing a (semi-)single-pass build of the tree it would be transformed several times? I'm also assuming this is also used to extend annotations use. Thanks, Peter