Questions tagged [bookdown]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
20 views

How to edit Table and Figure text to bold font

I'm creating a PDF bookdown file. However, I'm unable to edit the Table and Figure headers, such that the text "Figure X" and "Table X" are in bold. For example, Table 1 my first ...
  • 37
1 vote
0 answers
28 views

Bookdown and Rmarkdown producing table and figure legends in italics

When I use Rmarkdown or bookdown to produce tables and figures, the legends (and the table/figure text) are in italics. How can I overcome this such that the table/figure text is in bold and the ...
  • 37
0 votes
1 answer
19 views

rmarkdown linked cross-references at word

In word I can link a figure using the cross reference menu so when I see the figure's name in the text I just click on it and this takes me in the page with the actual figure. However, as I'm using ...
  • 370
-1 votes
0 answers
40 views

Use of curly braces in R and LaTeX giving error

I am using following code to create a table: data <- data.frame(z = "c. $5^{-1}$") create_table(data, "cccc") When I compile it in bookdown, I get this error: ! Missing $ ...
0 votes
0 answers
15 views

Why does bookdown open browser tabs when building the book

When I create the most minimal bookdown in RStudio from template and add webshot with knitr::include_url somewhere, it always happens that it opens the specific link twice. When navigating through ...
  • 2,102
0 votes
1 answer
38 views

'object not found' error on build (bookdown), but the same code runs in the console

I'm trying to build a book which includes the following code ggdotchart(themes, x = "theme", y = "citations", # requires `easyGgplot2`, `ggplot2`, `ggpubr` ...
0 votes
1 answer
38 views

Header and Footer Spacing for Bookdown PDF

I'm trying to help someone with Latex but have been out of touch and need some help. They need a header with their company logo and chapter name. And a footer with website address etc. I have been ...
1 vote
1 answer
26 views

Move the table of content away from the title page in Rmarkdown / bookdown PDF

I would like to use the bookdown package to generate a pdf document: --- title: "My Book" date: "`r Sys.Date()`" author: "Author" output: bookdown::pdf_document2: ...
  • 1,935
1 vote
1 answer
19 views

bookdown righ to left direction

Recently I started to write a book with R package bookdown. As I want to write a Persian book (Right to left Direction), I want to change the text direction of book, but I can't find a way to do that, ...
0 votes
2 answers
27 views

With bookdown: "No site generator found", yet all appears correct...?

I have been happily enjoying bookdown for some time now... but today, when I try to Build Book I keep getting this message: Error in rmarkdown::render_site(output_format = "bookdown::pdf_book&...
  • 199
1 vote
1 answer
38 views

Use for loop to display figures in bookdown

Extending the example (R markdown: Use for loop to generate text and display figure/table ), I want to not only use a for loop to display figures but I also want to reference them using bookdown ...
  • 657
0 votes
0 answers
16 views

Give headline a short name in TOC of bookdown

Is there a way to abbreviate the full headline of any level in the table of contents? Such that Prerequisites reads Pre? I know that we can cross-reference any headings given it a label like # Hello ...
  • 2,102
0 votes
0 answers
15 views

Use use_panelset() from xaringanExtra in bookdown

I try to use panelset() from xaringanExtra package in bookdown / gitbook https://github.com/gadenbuie/xaringanExtra#-panelset without success. When I create a fresh bookdown in RStudio from template ...
  • 2,102
1 vote
1 answer
29 views

Get preview of references and footnotes when hover in bookdown

It looks like this ebook is done with bookdown: https://mixtape.scunning.com/ When hovering over a reference or footnote, the information is displayed already: What is the name of this feature?
  • 2,102
1 vote
1 answer
26 views

Rmarkdown read_chunk and cross reference

I have a plots.R file which has following format ## ---- t1-1 ------ plot(pressure) ## --- t2-1 --- summary(pressure) I am reading this file via knitr::read_chunk in another Rmarkdown file named ...
0 votes
1 answer
26 views

Memo-style header in RMarkdown to Word

I would like to include a memo style header in my Word document created with RMarkdown. The header would look like this: <logo here> <Date here> TO: ...
  • 61
1 vote
0 answers
44 views

How to split html pages at section level in bookdown

I have a bookdown/rmarkdown gitbook with separate Rmd files for each chapter. Each chapter contains several sections and subsections. I'd like the webbrowser to only load one section at a time the ...
  • 271
1 vote
1 answer
100 views

Referencing to figures in RMarkdown does not work

First, I make two Waffleplots (I think I did it with ggplot) (...) waffle_school <- make_waffle(schoolsoort, StudentId) (...) waffle_bench <- make_waffle(schoolsoort, benchStudentId) (...) ...
1 vote
1 answer
49 views

embedding youtube videos in bookdown

I tried using https://bookdown.org/yihui/rmarkdown/learnr-videos.html ![](https://youtu.be/jg91ikK0OCI) but I get the error ! LaTeX Error: File `https://youtu.be/jg91ikK0OCI' not found. Error: LaTeX ...
  • 1,686
0 votes
0 answers
43 views

rticles::arxiv_article template seems confused by \newpage

I'm modifying the bookdown arXiv template by gradually adding chunks (containing knitr::include_graphics() images) and hoped to generate a new page prior to the "tables" section. Problem: &...
  • 196
0 votes
0 answers
32 views

R markdown word export create template

I would like to create a template using knitr for word export. I plan to use word_document2 from bookdown package. I've seen references, tutorials for changing styles from a docx. But none of them ...
2 votes
0 answers
51 views

Bookdown CSS for custom theorem environment numbering

How does one implement a custom theorem environment for HTML output in bookdown that is numbered as "chapter.occurence"? For example, I have defined a "convention" environment. I ...
  • 313
0 votes
0 answers
45 views

How to get theorem environment in bookdown slidy? It seems to have been removed?

In bookdown v0.24, it was possible to do ```{theorem} my theorem ``` to get a theorem environment in bookdown::slidy_presentation2 file. This was removed in v0.25. The new way to do environments in ...
  • 31
0 votes
0 answers
48 views

Keeping page number location consistent throughout the pdf document through R render_book

I have a multiple Rmd files (with writings) that I want to export into one pdf file. I did: bookdown::render_book(input = "references/bookdown") where my Rmd files were all in the input ...
  • 507
0 votes
0 answers
81 views

Bookdown - Add space between side by side figures using knitr::include_graphics

The recomended way to include existing images in bookdown is using knitr::include_graphics. For example, to put two images side by side code will be something like: ```{r myfigure fig.show='hold', fig....
  • 75
1 vote
1 answer
74 views

Bookdown - Reference tag from another math environment broken

It seems i can't reference equations, lemas, etc when inside math. In the following example the tag eq:test cant be referenced inside the align, but it works fine outside. --- title: "Test" ...
  • 75
2 votes
0 answers
309 views

Quarto book publish produces "LaTeX Error: File `scrreprt.cls' not found"

When I attempt to re-publish a Quarto Book to an established url on Quarto Pub, I receive an error in the terminal. The error message in the terminal upon which it stops before republishing is: "...
2 votes
1 answer
39 views

Mapping styles when converting from Rmd to docx with RStudio and Bookdown

I am using RStudio with the bookdown package to convert my dissertation from Rmd to docx. When I build the file, the output docx uses the 'compact' style for any ordered or unordered list, rather than ...
0 votes
0 answers
27 views

Word template not found via bookdown word_document2

I have trouble creating a word document via shiny app. I want to use a specific word template which lives in the same folder as the app, together with my markdown. This works for the normal output: ...
  • 10.9k
0 votes
0 answers
26 views

Change 'References' in _bookdown.yml

In Bookdown you can change the language field in the configuration file _bookdown.yml. Default settings can be found in: https://bookdown.org/yihui/bookdown/internationalization.html How can you ...
2 votes
1 answer
211 views

How can I explicitly link to the `index.html` file in a Quarto Book

I'm used to using bookdown to create books that don't have to be hosted on a webserver to work properly. I usually keep the _book directory and make it available on a shared drive with my team so that ...
  • 716
0 votes
0 answers
57 views

How to show figure captions in reveal.js slides made using R Markdown

I am producing reveal.js slides using R Markdown and bookdown and the output slides do not show any figure captions, as shown in a figure below. What am I missing? MWE --- author: CLRR date: | | ...
1 vote
1 answer
151 views

Change headline style when writing a word document using r markdown

I am using R and markdown and the bookdown package to write word documents. I have a template file with very specific custom styles for the headline and the user expects the headlines to be in this ...
  • 10.9k
1 vote
1 answer
125 views

cross reference to a table in rmarkdown with the correct table number in word document

I am trying to reference a table in a word document using bookdown package. I wanted to add the reference id in the fig.cap parameter of the code chunk, but this is somehow not seen by the interpreter ...
  • 10.9k
0 votes
0 answers
28 views

Knitting parameterized reports as chapters in RMarkdown while preserving in-text cross-referencing

I am creating a report that contains several chapters (one chapter per species, following the same template). I think this is the best approach to creating it: make the intro materials as one Rmd ...
0 votes
0 answers
33 views

Edit numbering scheme in a bookdown header

I would like to have a custom numbering scheme in a header in bookdown. That is, I have a (sub) section that has the chapter number, a section number, and maybe an additional word or phrase. So, I ...
0 votes
0 answers
10 views

PHP Fatal error with Bookdown on Ubuntu 22.04

I am trying Bookdown for the first on Ubuntu 22.04, following the Getting Started guide. composer seems to be making its job properly, but when it comes to running the bookdown command it fails ...
0 votes
0 answers
20 views

Is there a way to change the numbering of a five level header in R bookdown?

I am creating a textbook in bookdown and I would like to use a five level header to mark the homework problems. I am using a 5 level header (##### Header Name) because it is the next level header that ...
2 votes
1 answer
168 views

How to embed a bookdown gitbook in a quarto website (as a navbar item)?

I have a quarto website and a .html file of a gitbook made with bookdown (located in a subfolder called _notes of the quarto website). How can I embed this gitbook within the quarto website? The ...
0 votes
0 answers
28 views

Special header for appendix provided by bookdown does not work with revealjs

As described in the relevant section in bookdown: Authoring Books and Technical Documents with R Markdown, we can use a special header for appendix # (APPENDIX) Appendix {-} to signal an appendix ...
1 vote
1 answer
90 views

How to control width of a long LaTeX equation in bookdown

I have an align equation that does not fit into my bookdown, especially the tag I am using: My output is bookdown::gitbook. It works in R markdown though: --- title: "LaTeX" output: ...
  • 2,102
1 vote
1 answer
403 views

Quarto: Hide toc (table of content) with the Hmisc library

In rmd bookdown files there is the possibility to hide the toc in html output automatically when not used. But this behavior does not work with quarto qmd -> html output. Is there something ...
1 vote
1 answer
86 views

How do I remove the border around this image in Bookdown?

I am writing a technical report in Bookdown to be output to html format. I have inserted an image on the cover page and wish to remove the border. See image here: The code to insert the image is here:...
3 votes
0 answers
54 views

How to make footnote into tooltips in Blogdown?

I'm using Rmarkdown to make a blogdown post, and I'm hoping to implement something I saw in Hadley Wickham's Advanced R online book, which is a footnote link that when clicked on opens as a tooltip ...
  • 3,255
0 votes
2 answers
168 views

Is it possible to add custom links to the sidebar in an HTML book made with bookdown in R Markdown?

Consider the following MWE. By placing the following three files into a folder, opening the file index.Rmd in RStudio, and running the following command in the Console: bookdown::render_book() you'...
0 votes
0 answers
82 views

How to wrap text around images in Bookdown when exporting to epub?

My question is pretty straight-forward. I have read all the threads to find a solution but can still not succeed in wrapping text around images when exporting to epub. When exporting to html and pdf ...
  • 1
2 votes
1 answer
155 views

How to use HTML/CSS for reusable styled boxes in Bookdown

I would like to create reusable sections for my bookdown project. What works: I create a style.css including .titeldefbox{ display: flex; width: 100%; left: 0; top: 0; position: absolute; ...
  • 2,102
0 votes
1 answer
54 views

Embed H5P from Wordpress to R Bookdown

I try to add interactive H5P features to my bookdown. You can see them on this bookdown https://www.bookdown.org/pbaumgartner/itns-exercises/chapter-01.html See how the author embeds H5P elements ...
  • 2,102
1 vote
0 answers
71 views

syntax highlighting using python in bookdown

I use a basic bookdown document/project with highlight theme pygments. Additionally I run python in my code chunks. In the produced pdf output, the syntax highlighting of the python code appears as ...
3 votes
0 answers
61 views

Create custom markdown-blocks from R code

Is it possible to create a custom markdown block within a R function? Background: I have a custom function which renders a table in a very custom format. At the end of the table I would love to append ...
  • 909

1
2 3 4 5
20