SCM

Forum: support

Monitor Forum | Start New Thread Start New Thread
RE: Tinytex (Latex) problem [ Reply ]
By: Achim Zeileis on 2025-09-18 14:20
[forum:50105]
No need to be sorry. This is indeed a bit confusing - but it is not the first and very likely not the last time we need to adapt LaTeX templates for pandoc.

Glad that we could solve the problem so easily :-)

RE: Tinytex (Latex) problem [ Reply ]
By: Francisco Goerlich on 2025-09-18 10:45
[forum:50104]
Hi Achim,

It works!
Many thanks, and sorry.


RE: Tinytex (Latex) problem [ Reply ]
By: Achim Zeileis on 2025-09-18 07:40
[forum:50103]
It is necessary for the LaTeX templates in exams2pdf() to provide the \pandocbounded{} command because it is used by pandoc starting from version 3.2.1. All the templates shipped with R/exams itself have been adapted in exams 2.4-1. The NEWS says:

Added support for \pandocbounded{} (as produced by pandoc starting from version 3.2.1) in all current LaTeX templates as well as exams2nops(). Currently, \pandocbounded{} does not anything in the exams templates so that the size of the graphics in PDF output still has to be controlled in one of the previously available ways (e.g., within the exercises, via the exams2xyz() interface, or via the Gin key in the LaTeX template).

So I guess you are using a custom LaTeX template and have recently installed a new pandoc version (possibly along with a new RStudio). In that case adding the following line to the template should do the trick:

\providecommand{\pandocbounded}[1]{#1}

Tinytex (Latex) problem [ Reply ]
By: Francisco Goerlich on 2025-09-18 07:04
[forum:50102]
Hi,
I have been unable to solve the following problem with tinytex:

! Undefined control sequence.
l.5 \pandocbounded
{\includegraphics[keepaspectratio]{graph-1.pdf}}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

Error: LaTeX failed to compile examen1.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See examen1.log for more info.

Re-instaling does not work.

Thanks a lot in advance

Thanks to:
Vienna University of Economics and Business Powered By FusionForge