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
8
votes
2 answers

Using short author citations in bookdown/rmarkdown

In my report, I'm citing the Standards for Educational and Psychological Testing by AERA, APA, and NCME. @Book{standards, title = {{Standards for Educational and Psychological Testing}}, author = {{American Educational Research Association} and…
Jake Thompson
  • 2,591
  • 1
  • 16
  • 32
8
votes
1 answer

Custom CSS to Change Bookdown Page Width

At the risk of getting a couple of down votes, I have to ask this after spending a few hours this afternoon trying to unravel the css of the bookdown html document that I am working on. For the life of me I just cannot figure out the selectors to…
jkgrain
  • 769
  • 5
  • 20
8
votes
2 answers

How to use inline R code in a bookdown theorem or example environment

I use bookdown to generate documents in both html and PDF. How could I use results from inline R code in theorem and example environments? Here is what I tried: --- title: "Test" output: bookdown::pdf_book: toc: false html_document: toc:…
QuantIbex
  • 2,324
  • 1
  • 15
  • 18
8
votes
1 answer

Bookdown: How can I change the size of the chapter titles?

I am using bookdown to generate slides for a workshop. I use the 'big' letter option in the menu for display as slides. However then the chapter title font size is too large. Where/how can I modify that one? Thanks, Paul
Paul
  • 328
  • 2
  • 11
8
votes
1 answer

Bookdown: Set Page Breaks

I cannot find out how to make a page break in R bookdown. With page break I mean that the content within one page is displayed as one website. By default there is always a page break in front of every new section (like # Chapter 1). So, if I run…
mRcSchwering
  • 820
  • 8
  • 25
7
votes
2 answers

How can I reset sidenote numbering at each chapter in tufte-style Bookdown with HTML output?

I am working on converting a tufte-LaTeX book to tufte-Bookdown using the tufte and msmbstyle packages. I have a whole bunch of sidenotes and would like the numbering to restart with each chapter so I don't reach like 400 by the end of the book. I…
NickCHK
  • 1,093
  • 7
  • 17
7
votes
1 answer

Rmarkdown add footnote to figure caption

I would like to include a footnote within a figure caption in an R markdown report rendered to both PDF and HTML (report is based on bookdown/thesisdown/huskydown). The ideal would be to use text references: (ref:foo-footnote) Text in the…
mavericks
  • 1,005
  • 17
  • 42
7
votes
0 answers

Providing translations for R Bookdown project

Am currently working on a rewrite of a LaTeX project into R Markdown, which has had some people interested in translating it to a multitude of languages. The project is written in bookdown, but can't seem to find anything in the documentation…
snug.gy
  • 113
  • 3
7
votes
1 answer

Is there a way to use latex expression of chemarr for `gitbook` format of bookdown package?

I would like to use latex expression of chemarr for gitbook format of bookdown package. \begin{equation} [C] + [R] \xrightleftharpoons[k_{-1}]{k_1} [CR] + [C] \xrightleftharpoons[k_{-2}]{k_2} …
Sungpil Han
  • 638
  • 6
  • 11
7
votes
3 answers

Error: Input files not all in same directory, please supply explicit wd

After trying to build a PDF that worked ~2 weeks ago, no fuss, on a new machine with a fresh install of R, R studio, bookdown, etc, I have this error: Error: Input files not all in same directory, please supply explicit wd I have chapters of .Rmd…
hoobydooby
  • 93
  • 6
7
votes
1 answer

How to create a figure note below the figure caption in r markdown and bookdown

I am struggling to create a figure note below the figure caption in r markdown and bookdown. The figure note I want looks like below. This figure is from (Greenstone and Hanna 2014). My figure actually is a r plot. The note should be the same…
Yabin Da
  • 553
  • 5
  • 11
7
votes
3 answers

bookdown package: Why can't I build a book which I could earlier, getting an error message related to split_by option?

The R project and related files are available here. I built a gitbook with bookdown package last December, which you may find in https://bookdown.org/ritsu_kitagawa/_book6/. When I first built it, there was no error related to the split_by option.…
7
votes
0 answers

Index.Rmd without first-level heading

I have a simple bookdown project with several Rmd files, one file per chapter plus an index.Rmd. index.Rmd --- title: Title author: My name date: "`r Sys.Date()`" site: bookdown::bookdown_site documentclass: book --- 01-chapter1.Rmd # Some…
Milo Bem
  • 1,033
  • 8
  • 20
7
votes
1 answer

How to add a cross-reference supplementary figures in bookdown/knitr/Rmarkdown

The cross-referencing of figures works great thanks to the very helpful package bookdown from Yihui Xie. And one can reference figures like described in this question However, I have to separate sets of figures when authoring publications for…
WojciechF
  • 370
  • 2
  • 14
7
votes
1 answer

bookdown: customize the output filename

This is a follow up to an earlier question I asked here: creating accompanying slides for bookdown project Bookdown allows compiling the file to various format, including multiple pdf. The issue is therefore to give the output different names. If…
tchevrier
  • 1,041
  • 7
  • 16