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

bookdown-demo Can Build pdf and epub, but have error with gitbook creation

I am trying to create the HTML output in gitbook format for the demo Bookdown files. When I go to build I receive the following error: I am using RStudio Version 1.1.463, r Version 3.5.3, and MiKTeX Version 2.9 I have no problems creating the pdf…
MrT_PHS
  • 1
  • 2
0
votes
2 answers

Travis CI not working for bookdown when using tikz environement

When adding a tikz picture environment in bookdown, my Travis CI build stops working. Here is the error. Error in loadNamespace(name) : there is no package called 'magick' Calls: ... loadNamespace -> withRestarts -> withOneRestart ->…
0
votes
1 answer

Issue: Several bookdown pages not appearing anymore

This is similar to the recent issue posed by jtr13 where the order of sections in the page sidebar have changed, however I'm missing sections from the page entirely. Rmd files 02- though 09- don't have their respective html files showing up. I've…
MD Shuey
  • 11
  • 6
0
votes
1 answer

Available output key-value options for bookdown doc?

How can I learn what output option key-values are available for the different bookdown output formats? For example, below I show the YAML header for a bookdown doc of mine. I can provide word_document2 the key-value pair (reference_docx,…
lowndrul
  • 3,715
  • 7
  • 36
  • 54
0
votes
1 answer

How to leave out Title, Author, Date info from the body of a Word doc compiled from bookdown?

I'm in an org that likes to cram as much info onto each page of a Word document as possible. For example, they prefer to show the document Title, Date, Author in headers/footers rather than in the body of the document. I can display these fields in…
lowndrul
  • 3,715
  • 7
  • 36
  • 54
0
votes
1 answer

How to write Pseudocode in Bookdown

I want add a code-chunk with pseudocode in my bookdown project, but i dont found a proper way to do this. An this old issue on github/bookdown they talk about this feature, but I found nothing newer. In this tex.stackexchange post they generate…
ralph
  • 73
  • 8
0
votes
1 answer

How to put first level sections on different HTML pages?

In order to make first level sections instead of only chapters html pages of their own, I tried to alter the split_by in the yaml. I used this code: --- title: "new book" author: "My name" date: "`r Sys.Date()`" subtitle: "subtitle" site:…
rdatasculptor
  • 8,112
  • 14
  • 56
  • 81
0
votes
0 answers

R bookdown, text under floating TOC

I am stuck on something that may be very simple. I have a rmarkdown document which uses bookdown to produce an HTML document. What I am trying to achieve is to have a floating table of contents and under it to place a copyright notice that floats…
panman
  • 1,179
  • 1
  • 13
  • 33
0
votes
0 answers

Bookdown: Text in PDf falls of bottom of the page

I am using bookdown, and it's fantastic. But in the generated PDF, some pages have text that "falls off" the bottom of the page: Whole sections have disappeared: Section 3.4.2, Section 3.4.3, and the rest of Section 3.4.1 just aren't there. What…
Pete
  • 199
  • 6
0
votes
1 answer

cowplot plot_grid scales down size of plots automatically

I am trying to render a pdf with a series of 25 plots arranged in 6 columns using cowplot's function plot_grid. I would like these to show up the same size that they would appear if I had only one row. For some reasons though the size of plots gets…
BAlpine
  • 111
  • 3
  • 14
0
votes
1 answer

Cairo pdf doesn't work properly due to "out of memory" in R

I'm trying to produce a pdf document with a graphic created with some R functions, like plot() or ggplot(). Since I use a Windows machine, I need to call cairo_pdf to change the font-family of the plot and to embed another fonts I specify. I have…
Carlos Luis Rivera
  • 3,108
  • 18
  • 45
0
votes
0 answers

Possible to use latexdiff with bookdown

I am collaborating on a book using bookdown and would like a simple way to track changes in the compiled version of the book (pdf or gitbook). I have used latexdiff in the past, but am not sure how to make it work w/ the default way that bookdown…
ECOSTATS
  • 140
  • 6
0
votes
1 answer

Cannot use a variable in Rmarkdown file in Bookdown/Hugo

I have created a simple website using Bookdown. I have a page: --- title: Home --- # Page title Lorem ipsum dolor sit amet. However, instead of Page title I wanna show a value coming from my config.toml file. What I tried I want to show the…
Andry
  • 16,172
  • 27
  • 138
  • 246
0
votes
1 answer

possible to access '\textwidth' during knitr run for proportional image scaling

When compiling to PDF, out.width for code chunks producing plotted output in knitr appears to default to \textwidth (or rather \maxwidth; see here). I would like to be able to - during the knitr run - determine what \textwidth actually equates to,…
balin
  • 1,554
  • 1
  • 12
  • 26
0
votes
1 answer

custom blocks with background color depending on book color theme

I'm using custom blocks like in this example .rmdcomment { padding: 1em 1em 1em 4em; margin-bottom: 10px; background: #f5f5f5; position:relative; } .rmdcomment:before { content: "\f075"; font-family: FontAwesome; left:10px; …
Pindar
  • 51
  • 6