I’m using using pandoc and ConTeXt to generate pdf documentation from markdown. I started with the option to use latex (xetex) and swapped to ConTeXt, letting pandoc create the conTeXt file and invoke ConTeXt on it.C Both produce a table of contents active links etc. which is pretty much identical but the xetex version in my various pdf readers can show it in side panel referred to as Table of Contents or outline. This is really nice because it makes it just a click or swipe away. Following advice from Pablo I’ve swapped over to generating XHTML and using the XML mapping ability to generate ConTeXt and the PDF. Using this route the TOC looks the same but it’s no longer there in the outline panel. What do I need in addition to \completecontent to get this feature to work? Aidan
On 03/10/2016 09:45 PM, Aidan Nichol wrote:
I’m using using pandoc and ConTeXt to generate pdf documentation from markdown.
I started with the option to use latex (xetex) and swapped to ConTeXt, letting pandoc create the conTeXt file and invoke ConTeXt on it.C Both produce a table of contents active links etc. which is pretty much identical but the xetex version in my various pdf readers can show it in side panel referred to as Table of Contents or outline. This is really nice because it makes it just a click or swipe away.
Following advice from Pablo I’ve swapped over to generating XHTML and using the XML mapping ability to generate ConTeXt and the PDF. Using this route the TOC looks the same but it’s no longer there in the outline panel.
What do I need in addition to \completecontent to get this feature to work?
Hi Aidan, if I’m getting your point, you have to add to your .tex file: \setupinteraction[state=start]% % color=, style=, contrastcolor=, focus=standard %these may help too \placebookmarks [part,chapter,section] %written outlines [part,chapter] %open outlines I hope it helps, Pablo -- http://www.ousia.tk
Pablo Rodriguez mailto:oinos@gmx.es 10. März 2016 um 23:48
Hi Aidan,
if I’m getting your point, you have to add to your .tex file:
\setupinteraction[state=start]% % color=, style=, contrastcolor=, focus=standard %these may help too \placebookmarks [part,chapter,section] %written outlines [part,chapter] %open outlines When you use the \placebookmarks command without arguments ConTeXt shows all entries form the \placecontent list without opening them.
Wolfgang
participants (3)
-
Aidan Nichol
-
Pablo Rodriguez
-
Wolfgang Schuster