Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Failed to compile Untitled.tex. #15

Open
fernfel opened this issue Oct 27, 2019 · 6 comments
Open

Error: Failed to compile Untitled.tex. #15

fernfel opened this issue Oct 27, 2019 · 6 comments

Comments

@fernfel
Copy link

fernfel commented Oct 27, 2019

Have tried to run the yart markdown template and it does stop with the following error message:

Any suggestions. MikTex and all Packages are up to date...???


output file: Untitled.knit.md

"C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS Untitled.utf8.md --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output Untitled.tex --template "C:\Users\felix\Documents\R\win-library\3.4\yart\rmarkdown\templates\pdf\resources\template.tex" --highlight-style tango --latex-engine pdflatex
! Missing number, treated as zero.

\protect
l.399 ...nter}\rule{0.5\linewidth}{\linethickness}
\end{center}

Fehler: Failed to compile Untitled.tex. See https://yihui.name/tinytex/r/#debugging for debugging tips. See Untitled.log for more info.
Zusätzlich: Warnmeldung:
Ausführung von Kommando '"pdflatex" -halt-on-error -interaction=batchmode "Untitled.tex"' ergab Status 1
Ausführung angehalten

@NMarkgraf
Copy link
Contributor

Using R 3.4.? is not what I prefer to call "all Packages are up to date". ;-)
Is it possible to copy & paste here a version of that document, that causes this error, just with all lines, but not more, that is needed to reproduce that error? - That would help a lot. - Thanks!

@fernfel
Copy link
Author

fernfel commented Oct 28, 2019

Thanks for the remark! Just updated R...unfortunately it does still not work :-(

I attached the file (which is just the unmodified standard one) as well as the "Untitled.log
Untitled.zip

"

The error message is however now different:


"C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS Untitled.utf8.md --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output Untitled.tex --template "C:\Users\felix\Documents\R\win-library\3.6\yart\rmarkdown\templates\pdf\resources\template.tex" --highlight-style tango --pdf-engine pdflatex --lua-filter "C:/Users/felix/Documents/R/win-library/3.6/rmarkdown/rmd/lua/pagebreak.lua" --lua-filter "C:/Users/felix/Documents/R/win-library/3.6/rmarkdown/rmd/lua/latex-div.lua"
output file: Untitled.knit.md

! Missing number, treated as zero.

\protect
l.420 ...nter}\rule{0.5\linewidth}{\linethickness}
\end{center}

Fehler: Failed to compile Untitled.tex. See https://yihui.name/tinytex/r/#debugging for debugging tips. See Untitled.log for more info.
Ausführung angehalten

@NMarkgraf
Copy link
Contributor

Thanks in advance!

A short look ar the log-file tells me, that \linethickness may be to problem. But that is more or less a guess, that Sebastian should take care of.

In the Rmd-file some other ugly stuff was found by me. Sebastian, are that the default values?

In the yaml block at the beginning:

  • "papersize" should be "a4" not empty and remove "a4paper" from the "classoption"
  • a parameter should be "NULL" not "null"?

But I got currently no time to investigate further. So we have to wait for Sebastian to take a look at all the stuff.

@sebastiansauer, please take over! :-)

@fernfel
Copy link
Author

fernfel commented Oct 28, 2019 via email

@sebastiansauer
Copy link
Owner

@fernfel: Thanks a lot! Your points are valid, but I'm a bit busy these days. I'll see what I can do.

@fernfel
Copy link
Author

fernfel commented Nov 14, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants