Dear R People: When putting R package names in Latex, do we use \it or \em, please? Thanks, Erin -- Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: erinm.hodgess at gmail.com
On 09.08.2010 16:30, Erin Hodgess wrote:> Dear R People: > > When putting R package names in Latex, do we use \it or \em, please? > > Thanks, > Erin > >Depends. For example, the style guide of the Journal of Statistical Software asks you to use \pkg{} which is defined as \newcommand{\pkg}[1]{{\fontseries{b}\selectfont #1}} which is somehow similar to The R Journal's style. Best, Uwe Ligges
On Aug 9, 2010, at 9:30 AM, Erin Hodgess wrote:> Dear R People: > > When putting R package names in Latex, do we use \it or \em, please? > > Thanks, > ErinErin, I may be missing something specific to your application, but for the R Journal, JSS and .Rd help files, package names would typically be bolded using a \pkg directive (eg. \pkg{YourPackageName}), which would bold the package name within the braces. If you are doing this outside of those environments, you can duplicate the effect by using \textbf{YourPackageName}, which would bold the text within the braces only. HTH, Marc Schwartz
> When putting R package names in Latex, do we use \it or \em, please?As far as I know, the only difference between \it and \em is that \em words are unitalicized in an italics portion of the text, which is desirable in most cases. However, I am not sure that italics is the most common solution, perhaps because it is really important for a package name to be very easy to read and spell even if the name is a meaningless sequence of letters, which is not always the case in italics. In some R manuals (such as the "Short Introduction to R"), package names are boldfaced. Personally, I tend to type them in TT font, as if they were function names. I guess all solutions are OK if they are used consistently throughout the document. Arnaud.