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!