bookdown

R bookdown - cover page and appendix

蹲街弑〆低调 提交于 2019-11-29 07:10:32
I have written a draft book in R Markdown. Two questions: Is it possible to include a 'cover page' with graphic and text in the index.rmd file so that the rendering in bookdown- shows a cover page prior to the title page? I have an appendix in the book which cover some miscellaneous thoughts and comments. Is there a way of telling bookdown not to label it as 'Chapter 11 -Appendix' but rather just Appendix? thanks Yes, both is possible: (assuming you want PDF/Latex output) The 1. thing you can do as follows: Include an _output.yml file in your root directory. It could look as follows: bookdown:

How to stop bookdown tables from floating to bottom of the page in pdf?

喜夏-厌秋 提交于 2019-11-29 04:08:50
I am using bookdown to create pdf reports, but my tables are all floating down to the bottom of the page, regardless of how much space there is. See this example: --- title: "test_doc" author: "Jake Thompson" date: "6/30/2017" output: bookdown::pdf_document2: toc: false --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = FALSE, collapse = TRUE) library(tidyverse) ``` # Test heading Let make a data frame and print it in Table \@ref(tab:test-table) ```{r test-table} data_frame(col_a = seq_len(5), col_b = rnorm(5), col_c = runif(5)) %>% knitr::kable(caption = "This is a test") ``` The

Is there a way to add chapter bibliographies using bookdown?

与世无争的帅哥 提交于 2019-11-28 22:33:44
问题 I am trying to write my PhD Thesis with bookdown and am mainly using pdf output. I have easily added a bibliography at the end of the document but would rather have a bibliography at the end of each chapter. I have tried adjusting the .tex output with LaTeX packages that allow this but this fights with the bookdoown defaults. Is there a way of adapting the .yaml options to enable this? 回答1: For HTML output the default is to use per-chapter bibliographies. For PDF output, I have found it is

Code folding in bookdown

白昼怎懂夜的黑 提交于 2019-11-28 21:03:10
The Code folding option in RMarkdown for html documents is awesome. That option makes the programmatic methodology transparent for those who are interested, without forcing the audience to scroll through miles of code. The tight placement of code with prose and interactive graphical output makes the whole project more accessible to a wider audience, and furthermore it reduces the need for additional documentation. For a larger project, I'm using bookdown, and it works great. The only problem is that there is no code-folding option. Code folding is not currently enabled in bookdown. (see Enable

use csl-file for pdf-output in bookdown

天大地大妈咪最大 提交于 2019-11-28 13:50:22
I would like to use a .csl -file for formatting references with bookdown. Adding csl: some-style.csl to index.Rmd affects the output to gitbook , but not to pdf_book . I know that I can specify biblio-style , but this only accepts some standard styles and not csl-files. Is there a proper workaround? Steps to reproduce: Create new project with RStudio and choose "Book Project using bookdown" as option. Download some .csl file from https://www.zotero.org/styles and copy to root of project. Add csl: my_csl_file.csl to the header in index.Rmd . Build the book to pdf and html, and observe the

creating accompanying slides for bookdown project

百般思念 提交于 2019-11-28 08:57:13
问题 In Rstudio, I create a new project and select book project using bookdown . The built in example runs perfectly as expected and i can compile 4 books - gitbook, html, epub, and pdf. Great. The next obvious step is to want to have slides at the same time, very much in line with what the beamer package does, allowing for both beamer mode and article mode . Therefore, I tried to add another output in the _ output.yml code: bookdown::pdf_document2 . In line with the documentation, I know I should

R bookdown - cover page and appendix

我的未来我决定 提交于 2019-11-28 00:58:48
问题 I have written a draft book in R Markdown. Two questions: Is it possible to include a 'cover page' with graphic and text in the index.rmd file so that the rendering in bookdown- shows a cover page prior to the title page? I have an appendix in the book which cover some miscellaneous thoughts and comments. Is there a way of telling bookdown not to label it as 'Chapter 11 -Appendix' but rather just Appendix? thanks 回答1: Yes, both is possible: (assuming you want PDF/Latex output) The 1. thing

Code folding in bookdown

余生颓废 提交于 2019-11-27 11:53:22
问题 The Code folding option in RMarkdown for html documents is awesome. That option makes the programmatic methodology transparent for those who are interested, without forcing the audience to scroll through miles of code. The tight placement of code with prose and interactive graphical output makes the whole project more accessible to a wider audience, and furthermore it reduces the need for additional documentation. For a larger project, I'm using bookdown, and it works great. The only problem

use csl-file for pdf-output in bookdown

牧云@^-^@ 提交于 2019-11-27 07:59:59
问题 I would like to use a .csl -file for formatting references with bookdown. Adding csl: some-style.csl to index.Rmd affects the output to gitbook , but not to pdf_book . I know that I can specify biblio-style , but this only accepts some standard styles and not csl-files. Is there a proper workaround? Steps to reproduce: Create new project with RStudio and choose "Book Project using bookdown" as option. Download some .csl file from https://www.zotero.org/styles and copy to root of project. Add

How to stop bookdown tables from floating to bottom of the page in pdf?

≯℡__Kan透↙ 提交于 2019-11-26 21:18:47
问题 I am using bookdown to create pdf reports, but my tables are all floating down to the bottom of the page, regardless of how much space there is. See this example: --- title: "test_doc" author: "Jake Thompson" date: "6/30/2017" output: bookdown::pdf_document2: toc: false --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = FALSE, collapse = TRUE) library(tidyverse) ``` # Test heading Let make a data frame and print it in Table \@ref(tab:test-table) ```{r test-table} data_frame(col_a =