Erin Hodgess
2015-Dec-10 17:10 UTC
[R] Correct notation for functions, packages when using LaTex
Hello everyone! I am writing up something (quickly) using LaTex and periodically refer to R functions and packages. What is the correct way to put those into LaTex, please? I know that R itself is {\tt R}, but am not sure about the others. Thanks for any help, Sincerely, Erin PS Or should I just be doing this in R Studio, even though there is no code, please? -- Erin Hodgess Associate Professor Department of Mathematical and Statistics University of Houston - Downtown mailto: erinm.hodgess at gmail.com [[alternative HTML version deleted]]
Kevin E. Thorpe
2015-Dec-10 17:14 UTC
[R] Correct notation for functions, packages when using LaTex
On 12/10/2015 12:10 PM, Erin Hodgess wrote:> Hello everyone! > > I am writing up something (quickly) using LaTex and periodically refer to R > functions and packages. > > What is the correct way to put those into LaTex, please? I know that R > itself is {\tt R}, but am not sure about the others. > > Thanks for any help, > Sincerely, > Erin > PS Or should I just be doing this in R Studio, even though there is no > code, please? > >When I refer to R function in a LaTeX document I tend to use \texttt{} (same as your {\tt } construct). Historical convention rendered computer code in a monospace font (akin to Courier) so that's what I follow. -- Kevin E. Thorpe Head of Biostatistics, Applied Health Research Centre (AHRC) Li Ka Shing Knowledge Institute of St. Michael's Assistant Professor, Dalla Lana School of Public Health University of Toronto email: kevin.thorpe at utoronto.ca Tel: 416.864.5776 Fax: 416.864.3016
Erin Hodgess
2015-Dec-10 17:19 UTC
[R] Correct notation for functions, packages when using LaTex
Great, Thanks! Erin On Thu, Dec 10, 2015 at 11:14 AM, Kevin E. Thorpe <kevin.thorpe at utoronto.ca> wrote:> On 12/10/2015 12:10 PM, Erin Hodgess wrote: > >> Hello everyone! >> >> I am writing up something (quickly) using LaTex and periodically refer to >> R >> functions and packages. >> >> What is the correct way to put those into LaTex, please? I know that R >> itself is {\tt R}, but am not sure about the others. >> >> Thanks for any help, >> Sincerely, >> Erin >> PS Or should I just be doing this in R Studio, even though there is no >> code, please? >> >> >> > When I refer to R function in a LaTeX document I tend to use \texttt{} > (same as your {\tt } construct). Historical convention rendered computer > code in a monospace font (akin to Courier) so that's what I follow. > > -- > Kevin E. Thorpe > Head of Biostatistics, Applied Health Research Centre (AHRC) > Li Ka Shing Knowledge Institute of St. Michael's > Assistant Professor, Dalla Lana School of Public Health > University of Toronto > email: kevin.thorpe at utoronto.ca Tel: 416.864.5776 Fax: 416.864.3016 >-- Erin Hodgess Associate Professor Department of Mathematical and Statistics University of Houston - Downtown mailto: erinm.hodgess at gmail.com [[alternative HTML version deleted]]
JLucke at ria.buffalo.edu
2015-Dec-10 17:32 UTC
[R] Correct notation for functions, packages when using LaTex
Erin There is a LaTeX package called listings. It has an R option to prettyprint code. Never used it. Joe "Kevin E. Thorpe" <kevin.thorpe at utoronto.ca> Sent by: "R-help" <r-help-bounces at r-project.org> 12/10/2015 12:14 PM To Erin Hodgess <erinm.hodgess at gmail.com>, cc R help <r-help at stat.math.ethz.ch> Subject Re: [R] Correct notation for functions, packages when using LaTex On 12/10/2015 12:10 PM, Erin Hodgess wrote:> Hello everyone! > > I am writing up something (quickly) using LaTex and periodically referto R> functions and packages. > > What is the correct way to put those into LaTex, please? I know that R > itself is {\tt R}, but am not sure about the others. > > Thanks for any help, > Sincerely, > Erin > PS Or should I just be doing this in R Studio, even though there is no > code, please? > >When I refer to R function in a LaTeX document I tend to use \texttt{} (same as your {\tt } construct). Historical convention rendered computer code in a monospace font (akin to Courier) so that's what I follow. -- Kevin E. Thorpe Head of Biostatistics, Applied Health Research Centre (AHRC) Li Ka Shing Knowledge Institute of St. Michael's Assistant Professor, Dalla Lana School of Public Health University of Toronto email: kevin.thorpe at utoronto.ca Tel: 416.864.5776 Fax: 416.864.3016 ______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. [[alternative HTML version deleted]]
Rolf Turner
2015-Dec-11 00:36 UTC
[R] [FORGED] Correct notation for functions, packages when using LaTex
On 11/12/15 06:10, Erin Hodgess wrote:> Hello everyone! > > I am writing up something (quickly) using LaTex and periodically refer to R > functions and packages. > > What is the correct way to put those into LaTex, please? I know that R > itself is {\tt R}, but am not sure about the others.Actually I much prefer \textsf{R} --- and insist on this in papers submitted to ANZJS. The Journal of Statistical Software uses a macro \proglang which renders R in sans serif font --- so this *must* be the correct font. cheers, Rolf -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276