我正在使用Rstudio生成带有书本的文档。不幸的是,我必须使用Windows,并且没有xelatex。
如何停止尝试生成compile_main.tex的书本?
我只想要HTML
我只想知道在index.Rmd文件的YAML标头中放入什么以仅选择HTML作为输出格式。似乎清单应该在输出中:部分,但是我没有在Yihui的书中找到解决此问题的方法。
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.
答案 0 :(得分:2)
尽管我不确定您所指的是Yihui的那本书,但是one of his works确实解释了如何设置YAML来详细获取.html
输出。
我还举了我的杰作,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
---