Questions tagged [bookdown]

bookdown is an R package for authors to write books and long-form articles using R Markdown

The bookdown package is an R package for authors to write books and long-form articles using R Markdown. For more information, see https://bookdown.org.

1019 questions
4
votes
1 answer

Cannot create index for LaTeX/PDF output

I followed the bookdown instruction to create the indexing. Although the code ran without error, it was not showing the index in the pdf output. There is also instruction here. I must be doing something silly! The reproducible code is…
MN2
  • 41
  • 4
4
votes
2 answers

How to translate header of references/bibliography section?

Bookdown offers some options for internationalization of the HTML output, i.e. translation of certain keywords (see Bookdown Internationalization): language: ui: edit: Edit chapter_name: '' Is there an option to change the header of…
Michael
  • 43
  • 2
4
votes
1 answer

What's the difference between `_bookdown.yml`, `_output.yml` and yaml header of the first document?

When authoring a document with bookdown, I am aware of four options to put configuration options: _bookdown.yml _output.yml the yaml header of the first .Rmd document arguments passed to the bookdown::render_book() function. Now my…
Gregor Sturm
  • 2,792
  • 1
  • 25
  • 34
4
votes
1 answer

Can't insert plots in bookdown

I'm using bookdown to generate notes for an R. A minimal bookdown example that exhibits the error: https://github.com/DavisBrian/bookdown_error Everything worked great until I tried to add a plot (dataviz.Rmd). When building the book I get the…
4
votes
1 answer

Ugly dark stripe in code chunk of gitbook with highlight: espresso (R bookdown)

I use R bookdown package to create a gitbook. Recently I noticed an ugly dark stripe under the boxes of code chunks in rendered gitbook (see a printscreen below). It appeared with highlight set to espresso. Stripes like this one distract attention…
GegznaV
  • 4,938
  • 4
  • 23
  • 43
4
votes
1 answer

basename error in bookdown updates

I am working on packing my course notes together using bookdown. When I try to view my chapter updates using bookdown:::serve_book() or simply knitting the document (supposedly a shortcut to preview_chapter) I get the error message below. And only…
Robin Donatello
  • 415
  • 3
  • 12
4
votes
1 answer

`bookdown`/`rmarkdown`/`knitr`: Child documents and path definition in `YAML` headers

I'm building a reporting infrastructure that makes extensive use of child documents (via {r, child = 'somedir/child_doc.Rmd'}) AND is parametrized through the params dictionary in the YAML header of the master document. An example might…
balin
  • 1,554
  • 1
  • 12
  • 26
4
votes
1 answer

Bookdown: Is it possible to "split_by" at the subsection level?

I use the HTML and PDF outputs from bookdown as instructional material in a programming course, and I'd like to achieve the "page break" effect at the subsection level in addition to the chapter and section levels. From what I have read in the…
Mike
  • 231
  • 1
  • 6
4
votes
0 answers

How do I use a different highlighter in R Bookdown?

I am trying to change the syntax highlighting color scheme in my book when rendering to a GitBook-style webpage. The color schemes available in Pandoc aren't very informative for my code (HTML/CSS/JavaScript). I can modify the CSS directly to change…
J Ross
  • 61
  • 1
4
votes
0 answers

Bookdown: Don't recompile unchanged Rmd files

Short version: Is it possible to set Rstudio bookdown so that, when using html output, it doesn't rebuild unchanged Rmd files and instead uses the existing html files (kind of like make)? Long version: I am using bookdown in RStudio to keep a…
4
votes
1 answer

KaTeX with bookdown + gitbook

I am building a bookdown project and rendering it as a gitbook with numerous pages of math and it is rendering sluggishly. I would like to use KaTeX instead of mathJax to render my math but I'm not sure how to get it working. There is a gitbook…
Johan Larsson
  • 3,496
  • 18
  • 34
4
votes
0 answers

R Notebook: One script, multiple HTML pages

I have a single R Notebook script that produces a lot of figures and I'd like to have it render as several navigable pages (rather than one long document with anchor tags). For example, a title page with clickable links. I could do this – and have…
Dan
  • 11,370
  • 4
  • 43
  • 68
4
votes
1 answer

How can I force R markdown / LaTeX to display 'note' field in bibliography (display additional information)?

I use bibliography in my .Rmd file: bibliography: bibliography.bib My sample .bib entry looks as follows: @misc{XYZ, author = "Somebody", note = "Accessed: 2017-01-10", title = "{Global database of LaTeX}", url =…
matandked
  • 1,527
  • 4
  • 26
  • 51
4
votes
1 answer

R markdown / bookdown - how to display keywords below an abstract?

I defined keywords in the .Rmd file, but they are not visible in the output PDF. Current Output Expected results Current .Rmd First lines of .Rmd file looks as follows: --- title: "No keywords within the output file" abstract: "This is sample…
matandked
  • 1,527
  • 4
  • 26
  • 51
4
votes
0 answers

Solutions to Exercises in Bookdown

How should I code solutions to exercises in the book I am writing using the bookdown package? I'm currently writing a book using the bookdown R package. The book is broken down into chapters, and each chapter has exercises in a markdown numbered…
DaSpeeg
  • 96
  • 5