My problem is very similar to this [question](https://stackoverflow.com/questions/30972442/how-to-separate-title-page-and-table-of-content-page-from-knitr-rmarkdown-pdf) - 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 
[![TOC halfway through](https://i.stack.imgur.com/A3k6j.png)](https://i.stack.imgur.com/A3k6j.png)