[R-pkg-devel] Fwd: PDF generation issue from manual page

neonira Arinoem neon|r@ @end|ng |rom gm@||@com
Tue Feb 11 18:33:26 CET 2020


Hi R gurus

Got an issue risen by CRAN about using unknown characters from Latex.

Here is the error message, in the context of PDF generated form manual pages







*Check: PDF version of manual, Result: WARNING   LaTeX errors when creating
PDF version.   This typically indicates Rd problems.   LaTeX errors found:
  ! Undefined control sequence.   <recently read> \blacktriangleright *




*   l.237 STRATUM $\blacktriangleright
$ LAYER\_3   ! Undefined control sequence.   <recently read>
\blacktriangleright *




*   l.239 PHASING $\blacktriangleright
$ RUN   ! Undefined control sequence.   <recently read> \blacktriangleright
*

*   l.241 INTENT  $\blacktriangleright
$ FEEDBACK*

I understand that the \blacktriangleright is an unknown control sequence
from latex ... and that sounds strange to me, as I uses it often in
vignettes without any issue so far.
I did some tests on my machine with  R CMD Rd2pdf --force --output=x.pdf
man/*.Rd and it reproduces the issue.

In the incriminated manual page, the code generating this sequence is the
following
*\ifelse{latex}{\out{$\blacktriangleright$}}{\ifelse{html}{\out{&#x25B6;}}{\u25b6}}*

Apparently I need to add the \usepackage{amssymb} to the manual page. Do
not know yet, how to achieve this.

Yours ideas and hints welcome and this point or  any other solution to this
tricky issue.

I know that I can still change *\backtriangleright* with any available
control sequence and it will work. Indeed, not the way I prefer.
Really wish to get my *\blacktriangleright* display.

Best.
Neonira

	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list