I am currently writing a paper where I mention the R programming language. I've seen some papers use a special symbol for R, but I can't figure out how to get it. Here's an example.
How do I get that symbol?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI am currently writing a paper where I mention the R programming language. I've seen some papers use a special symbol for R, but I can't figure out how to get it. Here's an example.
How do I get that symbol?
It is just \textsf{R}
, or even \textbf{\textsf{R}}
\newcommand{\R}{R}
), but \textsf{R}
is what I'm used to seeing. I don't think I have seen \textbf{\textsf{R}}
anywhere, though.
– Nagel
Dec 20 '19 at 13:59
You can download the R logo from here and then include the following line in your preamble:
\newcommand{\Rlogo}{\protect\includegraphics[height=1.8ex,keepaspectratio]{Rlogo.png}}
Then you can just write wherever you want:
\Rlogo
And the result should look like the following:
For additional info: here.
Good luck!
height
, but the font size may change
– Alessandro Cuttin
May 7 '20 at 8:18
Another idea is to use the fontsawesome5
package with \faRProject.
A minimal example should be:
\documentclass{article}
\usepackage{fontawesome5}
\begin{document}
\faRProject
\end{document}
This link should be also interesting to revise if fontawesome5 package is not available
\faRProject
command is documented page 30 of fontsawesome5.pdf
.
– Paul Gaborit
Jul 15 '20 at 14:52