Reputation: 1502
I am using Rstudio to generate a document with bookdown. Unfortunately I have to use Windows and don't have xelatex.
How do I stop bookdown from trying to generate compile_main.tex?
I only want HTML
I just want to know what to put in the YAML header of the index.Rmd file to select only HTML as the output format. It seems list this should be in the output: part, but I did not find this issue addressed in Yihui's book.
Error: Failed to compile _main.tex.
In addition: Warning message:
running command '"xelatex" -halt-on-error -interaction=batchmode "_main.tex"' had status 127
Please delete _main.Rmd after you finish debugging the error.
Execution halted
Exited with status 1.
Upvotes: 0
Views: 241
Reputation: 3633
Although I'm not sure which Yihui's book you refer to, but one of his works does explain how to set YAML to get .html
output in detail.
I also put my exmaple, JFYI.
---
title: "Your title"
author: "Your name"
date: "The date when you wrote the document"
output:
bookdown::html_document2:
toc: yes #if you want to get the table of contents
fig_caption: true
bibliography: Your-bibliography.bib # Specify if you have any bib format, such as `.bib`, `.enl`, .etc.
always_allow_html: yes
editor_options:
chunk_output_type: console
---
Upvotes: 2