How to change the font color?

前端 未结 7 1761
轻奢々
轻奢々 2020-11-29 00:30

In RMarkdown is there a way to specify the font color?

There doesn\'t seem to be an option while browsing through the chunk options

7条回答
  •  温柔的废话
    2020-11-29 00:38

    This seems to work very well in both output formats, pdf and html:

    Roses are $\color{red}{\text{beautiful red}}$, 
    violets are $\color{blue}{\text{lovely blue}}$.
    

    Hope it helps.

提交回复
热议问题