1,039 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
3
votes
1
answer
130
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
99
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
131
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
40
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
40
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
56
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
57
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
56
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
75
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
124
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:
<...
0
votes
0
answers
61
views
Get figure and table caption numbering to match sub-section numbering using bookdown
I'm trying to generate a word doc report from tabular data using nested for() loops. The loops call child docs to render tables and images with appropriately numbered figure captions. After overcoming ...
4
votes
1
answer
124
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
45
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 ...
1
vote
2
answers
88
views
bookdown and gtsummary: Why is chunk name added to table caption?
I have a .Rmd file like this:
---
output:
bookdown::html_document2
#html_document
---
```{r mychunkname}
library(gtsummary)
trial %>%
select(age, grade, response) %>%
tbl_summary() %>...
2
votes
1
answer
161
views
Created consistent caption formatting between figures and flextables in Rmd HTML output
I am having trouble getting my captions for figures and tables having consistent formatting when knitting a Rmd file to HTML output from the Bookdown package. I have tried applying different methods ...