claes/pandoc-templates

Suggestion: Enabling PDF Hyperlinks and Bookmarks

wjgilmore opened this issue · 2 comments

Hi Claes,

I ran across a problem this evening regarding converting Markdown hyperlinks. As it turns out, the xetex.template will not convert Markdown hyperlinks into their PDF counterparts. The PDF output contains both the hyperlink name (contained in the square brackets) and the link (contained in the parentheses), running both strings together. You can however fix the problem by adding the following line to the xetex.template document:

\usepackage[pdftex,bookmarks=true]{hyperref}

This will additionally provide the reader with the hyperlinked TOC containing links to the various section headers. If you want hyperlinking but do not want the TOC you can set bookmarks to false:

\usepackage[pdftex,bookmarks=false]{hyperref}

I think at least the latter directive should be included so the hyperlinks are properly parsed. At the same time, if you wanted to enable the project wiki I'd be happy to add a few tips and tricks.

Thanks!
Jason

Thanks for your feedback. I have enabled the wiki. I am on vacation at the moment so I can't implement your suggestion just yet.

/Claes

agree with @wjgilmore, woule be nice feature and seems simple to implement.