Chang Xiao
Chang Xiao

Reputation: 71

R Markdown: Must the author's name be italic?

I have found that when I use R Markdown, the author's name is in italic.

Just like this:

SS of Rmarkdown output

Can I set it in roman?

The reason I ask these question because I am Chinese. If I write my name in Chinese and in italic type, it can be a little bit ugly...

So what can I do now?

Upvotes: 5

Views: 2086

Answers (2)

Francesco Grossetti
Francesco Grossetti

Reputation: 1595

Actually it's easier if you use \emph{} in author as:

author: \emph{Some Name}

This will reverse the italic and make it roman provided the fact you are building a pdf with Latex.

Hope this helped!

Upvotes: 1

Kevin Arseneau
Kevin Arseneau

Reputation: 6264

You can add CSS to change if your output is html or edit the pandoc template for LaTeX.

Default Template

enter image description here

With CSS in your YAML for html output

    author: <h4 style="font-style:normal">Author Name</h4>    

enter image description here

Upvotes: 2

Related Questions