Skip to content

Instantly share code, notes, and snippets.

@davan690
Last active February 23, 2022 02:01
Show Gist options
  • Save davan690/ef35282148c62c9c801143423396a17a to your computer and use it in GitHub Desktop.
Save davan690/ef35282148c62c9c801143423396a17a to your computer and use it in GitHub Desktop.
My Basic template for the _output file of a bookdown project. Additional files needed are within this gist in future (2022)
bookdown::gitbook:
css: style.css
config:
toc:
before: |
<li><a href="./">Book title.</a></li>
after: |
<li><a href="https://github.com/username/repo" target="blank">Published with bookdown</a></li>
edit: https://github.com/username/repo/docs/edit/master/%s
download: ["pdf", "epub", "mobi", "docx"]
link-citations: yes
bookdown::pdf_book:
#includes:
#in_header: preamble.tex
latex_engine: xelatex
citation_package: natbib
bookdown::epub_book: default
bookdown::word_document2:
#reference_docx: ms.docx
fig_caption: yes
toc: yes
bookdown::html_document2:
theme: yeti
fig_caption: yes
toc: yes
toc_float: true
code_folding: hide
df_print: paged
number_sections: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment