bmacGTPM / rticles

LaTeX Journal Article Templates for R Markdown
0 stars 0 forks source link

path error on includes #7

Closed beanumber closed 5 years ago

beanumber commented 5 years ago

When I try to render a new Markdown document, I get this error:

processing file: Untitled.Rmd
  |.......................................                          |  60%
  ordinary text without R code

  |....................................................             |  80%
label: unnamed-chunk-1
  |.................................................................| 100%
  ordinary text without R code

/usr/lib/rstudio/bin/pandoc/pandoc +RTS -K512m -RTS Untitled.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output Untitled.tex --template /home/bbaumer/R/x86_64-pc-linux-gnu-library/3.4/rmarkdown/rmd/latex/default-1.17.0.2.tex --number-sections --highlight-style tango --latex-engine pdflatex --include-in-header preambleDeGruyter.tex --variable graphics=yes --variable 'geometry:margin=1in' --variable 'compact-title:yes' --variable tables=yes --standalone --filter /usr/lib/rstudio/bin/pandoc/pandoc-citeproc 
output file: Untitled.knit.md

pandoc: preambleDeGruyter.tex: openFile: does not exist (No such file or directory)
Error: pandoc document conversion failed with error 1
Execution halted

This only happens with bookdown::pdf_document2. I'm not sure why you would want to write a bookdown document in a DeGruyter template, so I'd be inclined to just stick with the usual pdf_document (which works).

beanumber commented 5 years ago

And similarly, during R CMD check I see this:

  Rendering the degruyter_article format...
  pandoc: preambleDeGruyter.tex: openFile: does not exist (No such file or directory)
  Error from convert(texfile, run_citeproc && !need_bibtex) 
  Error: pandoc document conversion failed with error 1
  Execution halted