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
15
votes
1 answer

R bookdown - cover page and appendix

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…
Lyndon Sundmark
  • 577
  • 7
  • 20
15
votes
1 answer

Cross-referencing in a single-file bookdown document

One of the promises of the bookdown package is functions for automatic numbering of figure/table captions, and cross-referencing figures/tables/sections. This is claimed to be enabled for single-Rmd bookdown, if we use bookdown::html_document2 in…
Ben
  • 41,615
  • 18
  • 132
  • 227
13
votes
2 answers

Restart Figure Numbering for Appendix / Supplementary Material in bookdown

I am writing an article for a journal that requires Supplementary Material. I was hoping to use a unique label such as SuppMat: instead of the default fig: to send Figures and Tables into this section. If not, I can use the default fig label but I…
Patrick
  • 915
  • 2
  • 9
  • 26
13
votes
1 answer

how to cross reference tables and plots in rmarkdown?

I am using the following template --- title: "Nice try buddy" author: "SpaceMan" date: "13 December 2057" output: bookdown::pdf_document2 header-includes: - \usepackage{booktabs} - \usepackage{longtable} - \usepackage{array} -…
ℕʘʘḆḽḘ
  • 18,566
  • 34
  • 128
  • 235
13
votes
1 answer

Gitbook chapter bibliography not in alphabetical order

I'm using bookdown to create an HTML gitbook from R markdown files (i.e. .Rmd), with the default option of split_bib = TRUE resulting in a bibliography at the end of each chapter, as well as a complete bibliography at the end of the book. The…
Martin Smith
  • 3,687
  • 1
  • 24
  • 51
13
votes
1 answer

How to host multiple Github repos using the same custom domain on Netlify?

I am currently hosting my personal website (created using blogdown and Hugo) using Netlify at wjakethompson.com. This is deployed through a Github repository. I now have a bookdown project in a separate repository that I would also like to host on…
Jake Thompson
  • 2,591
  • 1
  • 16
  • 32
13
votes
3 answers

Page Numbering in R Bookdown

How do you achieve roman numerals for things like preface, acknowledgement etc and restart Arabic numbering at 1 for first page of chapter one in R Bookdown. I am wanting to render to pdf in bookdown, but have not found any good information on…
Lyndon Sundmark
  • 577
  • 7
  • 20
13
votes
1 answer

R Bookdown _bookdown.yml

Bookdown has many configuration options and I am finding it hard to understand how to know whether an option exists, and the logic behind where these options are stated. Specifically I am finding it hard to describe what kind of options go in…
RobinL
  • 11,009
  • 8
  • 48
  • 68
13
votes
4 answers

Rstudio: Changing origin for git version control of project

I originally set up git in Rstudio while enrolled in the Data Scientist's Toolbox course at Coursera. Unfortunately, I did this in my phd project. The repository no longer exists on github. I am now attempting to write my thesis in rmarkdown using…
user6571411
  • 2,749
  • 4
  • 16
  • 29
11
votes
1 answer

How to change TOC depth in R Bookdown (GitBook)?

I use GitBook format through R bookdown. I need to use at least four levels in the table of contents (TOC). The default is three. How can I change the depth of TOC? UPDATE Now the toc-related contents of my _output.yml file look like…
GegznaV
  • 4,938
  • 4
  • 23
  • 43
11
votes
2 answers

R Bookdown The GitBook toolbar not visibile in IE11 in Minimal Book Example

A strange thing is happening browsing a A Minimal Book Example with Chrome and Edge shows the GitBook toolbar. However when using internet Explorer 11 with windows 10 the toolbar doesn't show but is working. Versie: 11.98.16299.0 Updateversies:…
Floris Padt
  • 796
  • 5
  • 10
11
votes
2 answers

How to change font and point size in bookdown pdf?

I am writing a document with a strict requirement to use arial 12 point. I have modified my output yml in bookdown like this: site: bookdown::bookdown_site fontsize: 12pt fontfamily: arial documentclass: book output: bookdown::pdf_book: …
julianhatwell
  • 1,074
  • 1
  • 8
  • 17
11
votes
4 answers

Inserting a pdf BEFORE the bookdown frontpage

I'm writing my thesis with Bookdown in Rmarkdown (and I will export it to PDF format eventually). To hand in my thesis, I am required to include a few scanned documents with handwritten signatures BEFORE the first page of my thesis. Bookdown is…
Lena
  • 133
  • 6
11
votes
1 answer

creating custom blocks in RStudio's bookdown

I'm experimenting with the great new package bookdown to create a gitbook-style book using RMarkdown within RStudio. See here. My question is about creating custom blocks. There is an example in the documentation of how to define a block style in a…
Eric Green
  • 7,385
  • 11
  • 56
  • 102
10
votes
1 answer

pre-render an R script for each chapter of a quarto book project

I have a bookdown project in R and like to switch to Quarto. In the bookdown project I have an R script _common.R (it includes libraries and various settings and helper functions) to run before the rendering of each chapter (separate qmd file). How…
wilbert
  • 153
  • 5
1
2
3
67 68