-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 test-bookdown.tex. #474
Comments
Could you make bookdown.org does not support building PDF on the server side at the moment; I recommend you to use |
Thanks for your answer. I did as you recommended but still, I got the same error message with the exception of the first line I add this error message in context, starting with the last line which seems ok:
using |
That is so weird... Basically the error log shows that your book was compiled on the server side, which should not happen, because Could you compress the whole folder as a zip file and upload it here? BTW, I just re-read your original post:
Could you clarify how you "pushed" the files to your account? |
Ah I see. I have tried (And sorry: I didn't mention my whole input of publish_book() because I thought it was obvious that I should say Just specifying account name and server the upload worked! |
Okay, that explains the mystery in my mind. Please never assume anything is obvious. Just clearly state what you did exactly. Too much information is always better than too little. In reality, users often provide too little. |
Yes, sure I will try! To add the other information you have asked: I have used for "pushing" the files the blue circle on the right-hand side in the Rstudio upper left pane (the source pane). I think this was maybe another misunderstanding … |
Got you. Thanks! |
Hi Have even installed the MiKTeX from |......... | 14% |................... | 29% processing file: it.Rmd |..................................... | 57% |........................................................ | 86% |.................................................................| 100% "C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS it.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output it.tex --template "C:\Users\hrishikesh.shanbhogu\Documents\R\win-library\3.5\rmarkdown\rmd\latex\default-1.17.0.2.tex" --highlight-style tango --latex-engine pdflatex --variable graphics=yes --variable "geometry:margin=1in" Error: Failed to compile it.tex. No TeX installation detected (TeX is required to create PDF output). You should install a recommended TeX distribution for your platform: Windows: MiKTeX (Complete) - http://miktex.org/2.9/setup Mac OS X: TexLive 2013 (Full) - http://tug.org/mactex/ Linux: Use system package manager @yihui if you can have a look at this Thanks |
@hrishikeshshanbhogue I don't have an idea. You may try to uninstall MiKTeX and install TinyTeX: https://yihui.name/tinytex/ |
In my case when trying to knit a pdf file there is an error only shown when a code is inserted in text. The error is the following: ! Missing $ inserted. Error: Failed to compile Freyre_Regression_Models_Course_Project_v2.tex. See Freyre_Regression_Models_Course_Project_v2.log for more info. |
Eventually managed to solve the issue by bracketing with $ the r script. |
I am getting the following error when trying to build "pdf_book" from Build Book tab on RStudio IDE Version 1.2.1086. I can build both gitbook and epub_book
|
Ok, found the solution that fixed the problem of unable to build a pdf book, from buildbook tab. It is installing tinytex. Once that is installed. pdf compiled with out a problem. Here is the command line syntax to install tintex:
My scenario is as follows: a fresh rmardown/bookdown install (First ever 'kniting' on the IDE). The solution for this problem was: Installing tinytex from R console. Didn't even need to restart Rstudio or restart R. suggestion: the tinytex install should be included in the steps prior to attempting to build a book. |
I just had exactly the same issue as @abiyug and found my way here through the error message. The tinytex::install_tinytex() solution worked for me as described. If not already adopted (and I missed it somehow), could I support the proposal to include tinytex_install as the error message led to quite a bit of head scratching while hunting in the .yml for errors. Many thanks! |
Actually the tinytex installation on this page does say we need to add tinytex_install_tinytex() after installing the package. I just happened to miss that since I am used to only doing install.packages. After running the second command (as @abiyug mentioned), it works fine. |
@abiyug thanks a lot! that's worked for me. Here is also a link to the |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
I am using the bookdown minimal example by installing it via RStudio "New project…" -> "New directory" -> "Book Project using bookdown". I called this new project "test-bookdown"
Immediately after the installation I tried to push the files to my account at bookdown.org and got the error message
Error: Failed to compile test-bookdown.tex
.I reported the full transcript of the error message in the second half of my post at StackOverflow
My Session info data are:
`
Session info ------------------------------------------------------------------------------------------------
setting value
version R version 3.4.2 (2017-09-28)
system x86_64, darwin15.6.0
ui RStudio (1.1.383)
language (EN)
collate en_US.UTF-8
tz Europe/Vienna
date 2017-10-11
Packages ----------------------------------------------------------------------------------------------------
package * version date source
backports 1.1.1 2017-09-25 CRAN (R 3.4.2)
base64enc 0.1-3 2015-07-28 CRAN (R 3.4.0)
bitops 1.0-6 2013-08-17 CRAN (R 3.4.0)
bookdown 0.5.4 2017-10-07 Github (6436e5e)
caTools 1.17.1 2014-09-10 CRAN (R 3.4.0)
digest 0.6.12 2017-01-27 CRAN (R 3.4.0)
evaluate 0.10.1 2017-06-24 CRAN (R 3.4.1)
graphics * 3.4.2 2017-10-04 local
grDevices * 3.4.2 2017-10-04 local
highr 0.6 2016-05-09 CRAN (R 3.4.0)
htmltools 0.3.6 2017-04-28 CRAN (R 3.4.0)
jsonlite 1.5 2017-06-01 CRAN (R 3.4.0)
knitr 1.17 2017-08-10 CRAN (R 3.4.1)
magrittr 1.5 2014-11-22 CRAN (R 3.4.0)
markdown 0.8 2017-04-20 CRAN (R 3.4.0)
methods * 3.4.2 2017-10-04 local
mime 0.5 2016-07-07 CRAN (R 3.4.0)
Rcpp 0.12.13 2017-09-28 CRAN (R 3.4.2)
rmarkdown 1.6.0.9004 2017-10-07 Github (rstudio/rmarkdown@d31ec87)
rprojroot 1.2 2017-01-16 CRAN (R 3.4.0)
stats * 3.4.2 2017-10-04 local
stringi 1.1.5 2017-04-07 CRAN (R 3.4.0)
stringr 1.2.0 2017-02-18 CRAN (R 3.4.0)
tools 3.4.2 2017-10-04 local
utils * 3.4.2 2017-10-04 local
yaml 2.1.14 2016-11-12 CRAN (R 3.4.0)
[1] ‘1.19.2.1’
pdfTeX 3.14159265-2.6-1.40.18 (TeX Live 2017)
kpathsea version 6.2.3
Copyright 2017 Han The Thanh (pdfTeX) et al.
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.29; using libpng 1.6.29
Compiled with zlib 1.2.11; using zlib 1.2.11
Compiled with xpdf version 3.04`
From another post, I got the impression that the warning message about latexmk is not essential.But I have installed the latest versions…
Help would be very much appreciated. Where should I look, what should I try?
The text was updated successfully, but these errors were encountered: