Reputation: 581
My problem is very similar to this question - originally I wanted to just separate the table of contents from the title page with R markdown.
I used the latex workaround proposed there to achieve this, but when i add a table of contents to R markdown and knit it as .pdf the table of contents has a bright pink coloured font. All the help I found so far was using something like
<span style="color:green">WORD_WITH_DIFF_COLOUR</span>
or
<font color='green'>WORD_WITH_DIFF_COLOUR</font>
to change the colour of some words, but it doesnt work when do something like
<font color='green'>'\tableofcontents</font>
I guess there is a way to change this, but I wasn't able to find anything till now...
Any help would be appreciated!
EDIT!
Using @Tad Dallas's tip i was able to get this far
Upvotes: 4
Views: 3158
Reputation: 81
In an attempt to apply @mrp's solution, it seems like the current solution is to add toccolor: 'blue'
.
Found it in the Pandoc manual, as suggested in the R Markdown documentation.
Upvotes: 0
Reputation: 711
See the LaTeX Options section of the R Markdown documentation
All you have to do is add linkcolor: 'black'
to the YAML.
Upvotes: 3