From 8f1b100f9841d8559ac356a4f427fe8f8716f194 Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Mon, 24 Oct 2016 23:44:34 -0500 Subject: [PATCH 1/3] use grayscale for syntax highlighting --- inst/examples/_output.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/inst/examples/_output.yml b/inst/examples/_output.yml index 3677ff91d..d2eb0b476 100644 --- a/inst/examples/_output.yml +++ b/inst/examples/_output.yml @@ -31,6 +31,7 @@ bookdown::pdf_book: toc_unnumbered: no toc_appendix: yes quote_footer: ["\\VA{", "}{}"] + highlight_bw: yes bookdown::epub_book: dev: svglite stylesheet: css/style.css From f1867088f1ddcb0c96abb37550dae85f9f1efdb0 Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Wed, 23 Nov 2016 00:38:24 -0600 Subject: [PATCH 2/3] add empty pages for the print version --- inst/examples/latex/before_body.tex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inst/examples/latex/before_body.tex b/inst/examples/latex/before_body.tex index 094ad3d86..e512e96f5 100644 --- a/inst/examples/latex/before_body.tex +++ b/inst/examples/latex/before_body.tex @@ -1,6 +1,6 @@ -%\cleardoublepage\newpage\thispagestyle{empty}\null -%\cleardoublepage\newpage\thispagestyle{empty}\null -%\cleardoublepage\newpage +\cleardoublepage\newpage\thispagestyle{empty}\null +\cleardoublepage\newpage\thispagestyle{empty}\null +\cleardoublepage\newpage \thispagestyle{empty} \begin{center} \includegraphics{images/dedication.pdf} From 367606a42915eb2be87d763a4466e3412df2416a Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Sat, 14 Oct 2017 22:26:58 -0500 Subject: [PATCH 3/3] remove the CC license and logo in the print version --- inst/examples/index.Rmd | 7 ------- 1 file changed, 7 deletions(-) diff --git a/inst/examples/index.Rmd b/inst/examples/index.Rmd index f4c207d0a..ca9e89cf2 100644 --- a/inst/examples/index.Rmd +++ b/inst/examples/index.Rmd @@ -41,15 +41,8 @@ This short book introduces an R package, **bookdown**, to change your workflow o The **bookdown** package is built on top of R Markdown (http://rmarkdown.rstudio.com), and inherits the simplicity of the Markdown syntax (you can learn the basics in five minutes; see Section \@ref(markdown-syntax)), as well as the possibility of multiple types of output formats (PDF/HTML/Word/...). It has also added features like multi-page HTML output, numbering and cross-referencing figures/tables/sections/equations, inserting parts/appendices, and imported the GitBook\index{GitBook} style (https://www.gitbook.com) to create elegant and appealing HTML book pages. This book itself is an example of how you can produce a book from a series of R Markdown documents, and both the printed version and the online version can look professional. You can find more examples at https://bookdown.org. -```{r fig.align='center', echo=FALSE, include=identical(knitr:::pandoc_to(), 'html'), fig.link='https://github.com/rstudio/bookdown'} -knitr::include_graphics('images/logo.png', dpi = NA) -``` - Despite the package name containing the word "book", **bookdown** is not only for books. The "book" can be anything that consists of multiple R Markdown documents meant to be read in a linear sequence, such as course handouts, study notes, a software manual, a thesis, or even a diary. In fact, many **bookdown** features apply to single R Markdown documents as well (see Section \@ref(a-single-document)). -![Creative Commons License](images/by-nc-sa.png) -The online version of this book is licensed under the [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-nc-sa/4.0/). You can purchase a hardcopy from [Chapman & Hall](https://www.crcpress.com/product/isbn/9781138700109) or Amazon. - ## Why read this book {-} Can we write a book in one source format, and generate the output to multiple formats? Traditionally books are often written with LaTeX or Microsoft Word. Either of these tools will make writing books a one-way trip and you cannot turn back: if you choose LaTeX, you typically end up only with a PDF document; if you work with Word, you are likely to have to stay in Word forever, and may also miss the many useful features and beautiful PDF output from LaTeX.