0

I am trying to convert text within Rmarkdown chunk to italic such that italic appears in PDF after knitting.

So let's say I have for example the following chunk:

```{r}
"I want this text to be in italic when knitting"
                ```

How do I make the text appear in italic in PDF?

Little L
  • 17
  • 6

1 Answers1

0

You can try LaTeX-solution:

Choose xelatex engine:

output:
  pdf_document:
    latex_engine: xelatex

Italic, Bold and Combined:

\textit{I want this text to be in italic when knitting}

\textbf{I want this text to be in italic when knitting}

\textbf{\textit{I want this text to be in italic when knitting}}

enter image description here

manro
  • 3,529
  • 2
  • 9
  • 22