3

Is it possible to have links in the Table of Contents using R markdown v2?

In LaTeX this would be by loading \package{hyperref}

rcs
  • 67,191
  • 22
  • 172
  • 153
Joanne Demmler
  • 1,406
  • 11
  • 31

1 Answers1

3

The answer to this question is actually mentioned here:

https://stackoverflow.com/questions/24208889/how-to-specify-numbered-sections-in-pandocs-front-matter#=

As mentioned this YAML option is not easy to find.

Solution

add the following to the YAML front matter:

header-includes:
    - \usepackage{hyperref}
Community
  • 1
  • 1
Joanne Demmler
  • 1,406
  • 11
  • 31
  • Looks like `hyperref` might alreay be included anyway, just see it as an example of adding ANY LaTeX package to R markdown. – Joanne Demmler Oct 07 '14 at 12:16