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

Issues with different citation packages in bookdown

I am creating a pdf-book using bookdown, with a .bib file that holds my citations. I call the citations with the standard [@citation] used in bookdown. Citing works correctly, but the bibliography doesn't seem to be how I wanted it. Here are the…
Haakonkas
  • 961
  • 9
  • 26
0
votes
0 answers

Programmatic way to get output directory in Bookdown?

Is there a way to detect the Bookdown output directory in code running within an RMarkdown document? I'm happily using Bookdown to write tutorials using Python code. To make the tutorial interactive, I want to make copies of the .Rmd files as…
Matthew Brett
  • 863
  • 8
  • 11
0
votes
1 answer

No source directory found, expecting to find it at /opt/build/repo/content

I'm trying to publish a bookdown book to Netlify. It runs perfect locally, but I cannot deploy it to Netlify. Github: https://github.com/OmarGonD/doctrina-test What I've done is to download the bookdown-demo as a Zip and I've modified the contents.…
Omar Gonzales
  • 3,806
  • 10
  • 56
  • 120
0
votes
1 answer

Continuity of sections after chapter beginning in bookdown

Is there any way the main chapter page (say chapter 1) is followed immediately with the Section 1.1 title and text, without change of page?
Ferroao
  • 3,042
  • 28
  • 53
0
votes
1 answer

underline chapter title number (only) in bookdown when split_by not used

How to add the 3px line under the number of Chapter title as in: https://bookdown.org/yihui/bookdown/introduction.html without underlining also the sections (1.1). Problem occurs when split_by: section is not used in _output.yml. (I do not want to…
Ferroao
  • 3,042
  • 28
  • 53
0
votes
1 answer

In RStudio using bookdown, I am unable to compile a PDF version of my book. I get an error message "mathspec.sty" file not found

In RStudio (Windows 10) using bookdown, I am unable to compile a PDF version of my book. I get an error message "mathspec.sty" file not found. I installed it on my MikTex folder, but the error persists. How to solve this? Then, I tried to compile…
user67724
  • 101
0
votes
1 answer

Figures Captions and Comments

I use Bookdown with a pdf output. In my document, I include images generally using the method \![\label{imagelabel}image title](image_path.png). I would like to know if it is possible, in addition to a title, to add comments to the image. I would…
GagGeo
  • 1
  • 1
0
votes
0 answers

Including/importing markdown files via HTTP link

We are developing content over several repositories on github and we would also like to get a book using bookdown. Is it possible to tell bookdown to include markdown files accessed via a specific http link ? Or do we have to create a code that…
Julien Colomb
  • 508
  • 4
  • 20
0
votes
1 answer

Tikzpictures not rendering in gitbook, even though they appear in pdf_book

I'm using bookdown to type up my notes from some of my math courses. I want to insert tikzpictures into my book, and even though they render perfectly when using render_book("index.Rmd", "pdf_book"), they do not appear at all, on any browser (I've…
Julian
  • 451
  • 5
  • 14
0
votes
1 answer

Theorem and proof environment in bookdown rendering as "code" in .pdf output

I'm using bookdown to type up my notes from some of my math courses. I want to use theorems and proofs as described here but I'm having issues with rendering when I actually knit the .pdf file. Basically, the .pdf renders what appears to be code,…
Julian
  • 451
  • 5
  • 14
0
votes
1 answer

Include after_body in toc with bookdown

I am creating a pdf book, and want to include the after_body header in the toc. I use the following yaml: --- author: "name" date: "`r Sys.Date()`" site: bookdown::bookdown_site geometry: "left=4cm,right=3cm,top=3cm,bottom=3cm" subparagraph:…
Haakonkas
  • 961
  • 9
  • 26
0
votes
1 answer

Bookdown book into PDF for offline reading

Can I convert a Bookdown book into a single PDF file so that I can access it when I am offline? I specifically have this book in mind: https://bookdown.org/wfoote01/faur/
user1955215
  • 733
  • 2
  • 11
  • 31
0
votes
1 answer

Turn off the update prompt when republishing a book

When using bookdown::publish_book() to republish a book I get a prompt in the console: Update application currently deployed at https://bookdown.org/..../..../? [Y/n] How can I turn that prompt off? I need to turn it off since the book should be…
Paul
  • 328
  • 2
  • 11
0
votes
1 answer

Plain image in R Markdown PDF output from function `scatter3d` and RGL

I am creating a book with bookdown and I have run the scatter3d() function from car and rgl. I have read that 3D images can be interactivelly implemented in HTML (here), however, what I need is to implement a simply plain image in the PDF…
antecessor
  • 2,688
  • 6
  • 29
  • 61
0
votes
1 answer

In R bookdown, how to code a very large table (120 row, 8 columns) for pdf and html outputs?

In an R bookdown code, I want to output a very large table in a neat way. I want to present a very large table in my pdf output (bookdown::pdf_book), html output (bookdown::git_book) and also if possible in ebook (bookdown::epub_book) outputs. My…
entropy
  • 191
  • 11