I have a problem with generating a PDF.
The yaml file contains:
bookdown::pdf_book:
includes:
in_header: preamble.tex
The process works in that a complete PDF is produced in the _book
directory, but it then runs again to generate a PDF in the top directory. This second process fails because TeX/LaTeX packages included via preamble.tex
are not included.
Log
"C:/Program Files/RStudio/resources/app/bin/quarto/bin/tools/pandoc" +RTS -K512m -RTS CharacterizeLuminexFiles.md --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output CharacterizeLuminexFiles.tex --lua-filter "C:\PROGRA~1\R\library\bookdown\RMARKD~1\lua\CUSTOM~1.LUA" --lua-filter "C:\PROGRA~1\R\library\RMARKD~1\RMARKD~1\lua\PAGEBR~1.LUA" --lua-filter "C:\PROGRA~1\R\library\RMARKD~1\RMARKD~1\lua\LATEX-~1.LUA" --metadata-file "C:\Users\Gerard\AppData\Local\Temp\RtmpAjOday\filef4d042e53101" --embed-resources --standalone --table-of-contents --toc-depth 4 --number-sections --highlight-style tango --pdf-engine xelatex --natbib --include-in-header preamble.tex --variable graphics --wrap preserve --variable tables=yes --standalone -Mhas-frontmatter=false
Output created: _book/CharacterizeLuminexFiles.pdf
"C:/Program Files/RStudio/resources/app/bin/quarto/bin/tools/pandoc" +RTS -K512m -RTS CharacterizeLuminexFiles.md --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output CharacterizeLuminexFiles.pdf --lua-filter "C:\PROGRA~1\R\library\RMARKD~1\RMARKD~1\lua\PAGEBR~1.LUA" --lua-filter "C:\PROGRA~1\R\library\RMARKD~1\RMARKD~1\lua\LATEX-~1.LUA" --embed-resources --standalone --highlight-style tango --pdf-engine pdflatex --variable graphics --citeproc
Error producing PDF.
! LaTeX Error: Environment landscape undefined.
So, what is going on? What am I missing.