1,041 questions
1
vote
0
answers
75
views
R Bookdown gitbook search option not working [duplicate]
I'm doing some documentation in an R Bookdown document and the search option would be very helpful to have - by clicking the loupe button.
But sadly this is not showing the effect like in other online ...
5
votes
1
answer
139
views
Equations in EPUB created with Bookdown are not displayed on a Kindle ebook reader
I created an EPUB ebook in R with Bookdown. It contains in-text mathematical formulas such as $\pi$, $\hat\pi$ and $X$ as well as equations such as:
\begin{equation}
\hat\pi = \frac{e^{a + X\cdot b}}{...
3
votes
1
answer
169
views
How to avoid page breaks right after or in the middle of section titles in a EPUB book created with Bookdown?
I created an EPUB ebook in R with Bookdown but I am struggling with making sure that section titles do not get split across different pages. For each section title I want to make sure that the entire ...
3
votes
1
answer
165
views
How to remove automatic table labels when using kable and bookdown for HTML
I am creating a bookdown project which includes kable tables. The final output is HTML. However, I do not want the automatic "Table 1:" labels and instead want only my custom caption I ...
3
votes
1
answer
115
views
Insert nested tabset in an R Bookdown document
I found this question R Bookdown: Tabbed headings and the awesome answer from @linog which was the basis for my approach.
To show you what's the purpose for my bookdown document, I have done this in r ...
3
votes
1
answer
151
views
How can I make the "Figure XX:" text bold and the description text regular font in a bookdown::html_document2?
For the output of the below Rmd I would like the "Figure XX:" part to be bold and the descriptive text to be in regular font. How can I achieve that?
---
title: "Figure caption things&...
1
vote
1
answer
41
views
Chapter-less appendix in `bookdown` without "Appendix A" title
I am creating a PDF using bookdown and I would like to have a "chapter-less appendix", however I have not been able to figure how to do this in bookdown after scouring the internet. I can't ...
0
votes
0
answers
42
views
How to add labels to definition environment in bookdown and reference them correctly?
In R Bookdown, I would like to refer to a definition:
<!-- body or .Rmd file -->
The first definition is Definition \@ref(newterm) below:
::: {.definition #newterm name="new def 1"}
...
1
vote
0
answers
60
views
knitr: Set default format for external image files (like with auto_pdf option)
Is there a way to set the default graphics format for files given to knitr's include_graphics() function?
Its auto_pdf = TRUE is close to what I want (i.e. it chooses PDF files over files with ...
0
votes
0
answers
68
views
Unable to Auto-number my tables created using gtsummary using R Markdown
I'm using gtsummary in a Bookdown project and trying to get my table captions to show up with auto-numbering (e.g., "Table 1: Patient Characteristics"). I followed the usual approach by ...
1
vote
1
answer
62
views
Changing code blocks style in bookdown chapters
I am trying to change the style of code blocks in bookdown for the html output. As instructed in the official documentation here I am doing the following:
```{r class.source="bg-danger", ...
1
vote
1
answer
79
views
Left-aligned array in unordered list using bookdown
I want a left aligned array in my unorderd list but everything I used doesn't work. I tried it with ..., $$ ... $$, $ ... $, \left[ ... \rigth] and \[ ... \] - for the three dots I putted in the array....
0
votes
1
answer
148
views
Rmarkdown add an item to a bibliography without citing in the text, bibliography by order of appearance
I would like to have a bibliography which lists items that are cited in the text but also others that are not (e.g. using nocite). The csl style that I am using sorts by order of appearance with:
<...
4
votes
1
answer
133
views
Insert a popover in R Bookdown document
I have this code from an R markdown file which generates a popover. And it's working as expected:
For the R markdown document you need library(rmarkdown), library(pandoc) and pandoc_activate(). You ...
0
votes
1
answer
50
views
Why is huxtable not showing caption text in bookdown::html_document2?
When knitting the below RMarkdown document the caption texts for both the base R plot and the flextable output are shown. The caption text for the huxtable output is, however, not. Why is that and how ...