Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doublicate table captions #886

Open
herryATcsiro opened this issue Feb 6, 2025 · 0 comments
Open

doublicate table captions #886

herryATcsiro opened this issue Feb 6, 2025 · 0 comments

Comments

@herryATcsiro
Copy link

Hi there,
the following code below creates duplicate table captions:

Image

Unsure if this is intended and wanting a format="html" in kable beforehand (see rstudio/bookdown#1489) or a bug?

---
title: "Untitled"
output:
  bookdown::html_document2:
    number_sections: true
    global_numbering: true
editor_options: 
  chunk_output_type: console
date: "2025-02-05"

---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
require(kableExtra)
require(bookdown)
```

## R Markdown

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>.

When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

```{r cars,  echo=F, warnings=F, error=F, message=F, results="asis", include=T, tidy=F}
summary(cars)%>%
  kable(longtable=F, booktabs=T, caption="test table label")%>%
  kableExtra::kable_classic(full_width=F, html_font='Cambria', position="left")
 
```

## Including Plots

You can also embed plots, for example:

```{r pressure, echo=FALSE, fig.cap="Figure caption label"}
plot(pressure)
```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant