Dear All, I have the following in a .Rd file: ... human readable (not binary) format. The format itself is like the following: \preformatted{ \# vertex1name vertex2name [optionalWeight] vertex3name [optionalWeight] } Here, the first vertex of an edge is preceded with a pound sign ... and it is fine with R 2.9.2, but fails on R-devel, when building the PDF version of the manual: ... * checking PDF version of manual ... WARNING LaTeX errors when creating PDF version. This typically indicates Rd problems. LaTeX errors found: ! You can't use `macro parameter character #' in vertical mode. <argument> ...ike the following: \begin {alltt} ## vertex1name vertex2name [... l.9051 listed one per line on subsequent lines.} * checking PDF version of manual without index ... ERROR To be precise, this is * using R version 2.10.0 Under development (unstable) (2009-09-27 r49847) Is there a way to escape the '#' for LaTeX? Thanks, Gabor -- Gabor Csardi <Gabor.Csardi at unil.ch> UNIL DGM
From Writing R Extensions: "?#?, ?_? and ?&? must not be escaped." Uwe Ligges G?bor Cs?rdi wrote:> Dear All, > > I have the following in a .Rd file: > ... > human readable (not binary) format. The format itself is like > the following: > \preformatted{ > \# vertex1name > vertex2name [optionalWeight] > vertex3name [optionalWeight] > } > Here, the first vertex of an edge is preceded with a pound sign > ... > > and it is fine with R 2.9.2, but fails on R-devel, when building the > PDF version of the manual: > ... > * checking PDF version of manual ... WARNING > LaTeX errors when creating PDF version. > This typically indicates Rd problems. > LaTeX errors found: > ! You can't use `macro parameter character #' in vertical mode. > <argument> ...ike the following: \begin {alltt} ## > vertex1name vertex2name [... > l.9051 listed one per line on subsequent lines.} > > * checking PDF version of manual without index ... ERROR > > To be precise, this is > * using R version 2.10.0 Under development (unstable) (2009-09-27 r49847) > > Is there a way to escape the '#' for LaTeX? > > Thanks, > Gabor >
G?bor Cs?rdi wrote:> Dear All, > > I have the following in a .Rd file: > ... > human readable (not binary) format. The format itself is like > the following: > \preformatted{ > \# vertex1name > vertex2name [optionalWeight] > vertex3name [optionalWeight] > } > Here, the first vertex of an edge is preceded with a pound sign > ... > > and it is fine with R 2.9.2, but fails on R-devel, when building the > PDF version of the manual: > ... > * checking PDF version of manual ... WARNING > LaTeX errors when creating PDF version. > This typically indicates Rd problems. > LaTeX errors found: > ! You can't use `macro parameter character #' in vertical mode. > <argument> ...ike the following: \begin {alltt} ## > vertex1name vertex2name [... > l.9051 listed one per line on subsequent lines.} > > * checking PDF version of manual without index ... ERROR > > To be precise, this is > * using R version 2.10.0 Under development (unstable) (2009-09-27 r49847) > > Is there a way to escape the '#' for LaTeX?I believe the Latex macro you want is \sharp, which isnt an Rd macro, so you'd need something like \latex{\sharp}{#}. Duncan Murdoch