hi @yihui
Thank you for your suggestions. I uninstalled MikTeX and now it seems to be working on bookdown-demo and I get a pdf. However, I do not get it for my book
May be you can give some suggestions?
> Sys.which('xelatex')
xelatex
"C:\\Users\\bhami001\\AppData\\Roaming\\TinyTeX\\bin\\win32\\xelatex.exe"
>
The error I get is
pandoc.exe: preamble.tex: openBinaryFile: does not exist (No such file or directory)
Error: pandoc document conversion failed with error 1
In addition: Warning message:
running command '"C:/Users/bhami001/AppData/Local/Pandoc/pandoc" +RTS -K512m -RTS GAMAModelDoc.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output GAMAModelDoc.tex --table-of-contents --toc-depth 2 --template "D:\R\R-3.4.3\library\rmarkdown\rmd\latex\default-1.17.0.2.tex" --number-sections --highlight-style tango --pdf-engine xelatex --natbib --include-in-header preamble.tex --variable graphics=yes --variable "geometry:margin=1in" --variable tables=yes --standalone' had status 1
Execution halted
Exited with status 1.
Can you suggest how I may resolve this? This error does not come for your book.
my _output.yml is as follows
bookdown::gitbook:
css: style.css
config:
download: ["pdf", "epub"]
bookdown::pdf_book:
includes:
in_header: preamble.tex
latex_engine: xelatex
citation_package: natbib
keep_tex: yes
bookdown::epub_book: default
and my _bookdown.yml is
book_filename: "GAMAModelDoc"
language:
ui:
chapter_name: "Chapter "
output_dir: docs
delete_merged_file: true
and the yaml in my index.Rmd is
---
title: "GAMA Model Documentation"
author: "SS"
date: "`r Sys.Date()`"
cover-image: cover.png
output:
bookdown::gitbook:
lib_dir: "book_assets"
css: style.css
config:
sharing: null
toc:
collapse: section
scroll_highlight: false
download: ["book.pdf", "book.epub"]
site: bookdown::bookdown_site
documentclass: book
description: "Document describing the GAMA model and its functions."
---
Thank you
Ram