bookdown
bookdown copied to clipboard
r bookdown epub table captions
The generation of the epub option for bookdown is not making table captions correctly. Every table has the markdown label also showing in the table caption. This occurs for tables that are basic markdown tables and tables that are generated from kable in a knit chunk. Here is an example output. As you can see, the reference in the text is good, but the caption should read Table 2.4: Time of arrivals and service times for 8 customer. But, instead, it is showing the chunk label (#tab:ArrServTime). The PDF output does not have this problem, nor does the HTML output. This is based on a stack overflow question.
Checklist
When filing a bug report, please check the boxes below to confirm that you have provided us with the information we need. Have you:
-
[x ] formatted your issue so it is easier for us to read?
-
[ ] included a minimal, self-contained, and reproducible example?
-
[ ] pasted the output from
xfun::session_info('bookdown')
in your issue? -
[ ] upgraded all your packages to their latest versions (including your versions of R, the RStudio IDE, and relevant R packages)?
-
[ ] installed and tested your bug with the development version of the bookdown package using
remotes::install_github("rstudio/bookdown")
?
-->