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
5
votes
0 answers

How to cross-reference a footnote in bookdown?

Bookdown have many cross-reference features. However, I was unable to find a solution to my problem. Assume you have a footnote[^1] in the body of the document. Then you define the footnote as: [^1]: Here is my footnote. Now assume that you want to…
R. Gouvea
  • 73
  • 5
5
votes
1 answer

Coverpage and copyright notice before title in R bookdown?

Back in March, I asked a question and got an answer to including coverpage in a pdf document rendered by R bookdown: R bookdown - cover page and appendix I tried the solution and came up with the following results: using in index.rmd yaml: output: …
Lyndon Sundmark
  • 577
  • 7
  • 20
5
votes
1 answer

Change the position of a table caption (tufte_handout)

This is a R -> latex question. I use tufte_handout I need to put the caption of a fullwidth table below the table, in the margin, because the table is too wide. here is the Rmarkdown file --- title: "Untitled" author: "A. Nonymous" date:…
user1788720
  • 327
  • 2
  • 11
5
votes
4 answers

No table numbering with pander in bookdown:html_document2

pander does not include table numbering when used with bookdown::html_document2. Did I miss some option? --- title: "Pander Table Numbering" output: bookdown::html_document2 --- # Chapter 1 ```{r} library(knitr) library(pander) # Table…
Dieter Menne
  • 10,076
  • 44
  • 67
5
votes
1 answer

citation-package: biblatex not working in R bookdown

EDIT: After some investigation, this question is really about the following option in the output yml: citation-package: biblatex Without this option, bookdown is using the default citeproc and it's not clear how to modify the number of authors.…
julianhatwell
  • 1,074
  • 1
  • 8
  • 17
5
votes
2 answers

How do I use the ebook functions epub_book and kindlegen() for existing bookdown documents?

I've found a couple bookdown documents on github (namely Hadley's R for Data Science and Efficient R) that I'd like to build from source as ebooks. Bookdown, which the documents are written in, has a couple functions, namely epub_book() and…
crazybilly
  • 2,992
  • 1
  • 16
  • 42
5
votes
2 answers

Referencing figures with bookdown

For some reason I have problems with cross-referencing figures in a bookdown document. Here is a minimal example: --- output: bookdown::html_document2: fig_caption: yes --- Reference example: \@ref(fig:plot-cars): ```{r plot-cars, fig.cap…
der_grund
  • 1,898
  • 20
  • 36
5
votes
3 answers

How to list all bibliography entries in Bookdown without citing and changing title in HTML version?

I am using bookdown A Minimal Book Example. I want to make some changes in this according to my requirements. I wonder how to list all bibliography entries without citing them. I tried \nocite{*} in preamble.tex (comes with A Minimal Book Example)…
MYaseen208
  • 22,666
  • 37
  • 165
  • 309
5
votes
1 answer

Set R bookdown input directory

I'd like to use bookdown to parse a series of .Rmd file into a book. If I have my .Rmd in the same directory as the main index.Rmd file then everything works fine and dandy. However, the .Rmd files are autogenerated from another source and I'd like…
ekstroem
  • 5,957
  • 3
  • 22
  • 48
5
votes
1 answer

Bookdown: Removing social media links?

I am using bookdown to write a report for a client. They like it, I like it but I don't want to have the social media links in the top right of the compiled html. Other than editing the html after build, is there any way to stop them appearing…
roman
  • 1,340
  • 9
  • 33
4
votes
1 answer

Is it possible to have a two-column layout in a bookdown::word_document2 document?

I am knitting from RMarkdown to .docx using bookdown::word_document2 as the output format. I want to have a section in my document that features two columns. Is this possible? I know this is possible with the officedown::rdocx_document output…
Matt Cowgill
  • 659
  • 4
  • 13
4
votes
0 answers

Add or remove "References" in TOC at end of each chapter in bookdown::gitbook

I am compiling a bookdown::gitbook and want to include a "References" header for each chapter in the TOC. Currently, I have included a level 2 header titled "References" at the end of each chapter which appears in the TOC, however in-text there are…
hugh-allan
  • 1,170
  • 5
  • 16
4
votes
3 answers

How can I add arbitrary elements to the Table of Contents in Bookdown?

I am making a book via bookdown. I know it is possible to omit headings from the Table of Contents by adding the attributes {.unlisted .unnumbered}, as shown in Section 4.18 of the R Markdown Cookbook. However, how can I add arbitrary content to the…
duckmayr
  • 16,303
  • 3
  • 35
  • 53
4
votes
1 answer

Remove colon in figure caption using pandoc and bookdown in R Markdown

I am changing the font of a figure caption in my R Markdown and am using bookdown and pandoc to do so. My question is closely related to: How to change the figure caption format in bookdown?. I was able to get correct figure numbering and was able…
AndrewGB
  • 16,126
  • 5
  • 18
  • 49
4
votes
0 answers

Disabling figure numbering in bookdown

Is it possible to use figure captions (i.e., fig.cap) but without numbering, that is, with neither "Figure", nor the number shown in bookdown? The best solution would be one that works for all output formats (say, gitbook, pdf_book and epub_book).
Tamas Ferenci
  • 424
  • 2
  • 10