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

sh: xelatex: command not found when opening bookdown-demo #292

Closed
jrosen48 opened this issue Jan 8, 2017 · 8 comments
Closed

sh: xelatex: command not found when opening bookdown-demo #292

jrosen48 opened this issue Jan 8, 2017 · 8 comments
Milestone

Comments

@jrosen48
Copy link

jrosen48 commented Jan 8, 2017

Following the five steps in the Get Started section of bookdown (Xie, 2017):

  1. Download the GitHub repository https://github.com/rstudio/bookdown-demo as a Zip file, then unzip it locally.
  2. Install the RStudio IDE. Note that you need a version higher than 1.0.0. Please download the latest version if your RStudio version is lower than 1.0.0.
  3. Install the R package bookdown.
  4. Open the bookdown-demo repository you downloaded in RStudio by clicking bookdown-demo.Rproj.
  5. Open the R Markdown file index.Rmd and click the button Build Book on the Build tab of RStudio.

an error returned after step 5:

output file: bookdown-demo.knit.md

sh: xelatex: command not found
Error: Failed to compile bookdown-demo.tex.
Execution halted

Exited with status 1.
@jrosen48
Copy link
Author

jrosen48 commented Jan 8, 2017

I downloaded and reinstalled MacTex-2016 and it worked fine now.

@yihui yihui added this to the v0.4 milestone Jan 9, 2017
@yihui yihui closed this as completed Jan 9, 2017
@avnerkantor
Copy link

I have the same problem (Ubuntu 16.10)

@yihui
Copy link
Member

yihui commented Mar 14, 2017

@avnerkantor Did you install xelatex?

@bitsandbricks
Copy link

bitsandbricks commented Jan 9, 2018

Try this to install xelatex on Ubuntu and fix your issue:

sudo apt-get install texlive-xetex

@yihui
Copy link
Member

yihui commented Jan 9, 2018

@bitsandbricks I have been frustrated by existing LaTeX distributions on different platforms, so I created TinyTeX: #507 (comment)

@bitsandbricks
Copy link

@yihui TinyTex is awesome, if it had existed before I would have saved hours of my life spent dealing with LaTex packages and failed RMarkdown knits... thank you!!

@ShawnJW
Copy link

ShawnJW commented Dec 4, 2019

After installing xelatex on Ubuntu with
sudo apt-get install texlive-xetex

I still received errors and needed

sudo apt-get install texlive-latex-extra
and
sudo apt-get install texlive-fonts-recommended

@yihui
Copy link
Member

yihui commented Dec 4, 2019

If anyone still has this problem, please see the instruction on installing TinyTeX at https://bookdown.org/yihui/rmarkdown/installation.html You can also use Ubuntu's texlive-* packages if you don't mind figuring out which package(s) to install. TinyTeX should work automatically.

@rstudio rstudio locked as resolved and limited conversation to collaborators Dec 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants