-
Notifications
You must be signed in to change notification settings - Fork 523
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
Unexpected behaviours when making tables for copernicus articles #558
Comments
If you use This is because Copernicus instruction is to not include any other packages. This is from Copernicus instruction: https://publications.copernicus.org/for_authors/manuscript_preparation.html
@RLumSK or @nuest can confirm this is still the case. I am seeing we also need to update 7.7 version of the template. We'll do that soon ! |
Referencing works only with Table using a caption as documented: https://bookdown.org/yihui/bookdown/tables.html#tables So this should work See Table \@ref(tab:t)
```{r t, echo=FALSE}
df = mtcars[1:3, 1:3]
df$ref = "@Dirac1953888"
knitr::kable(df, booktabs = FALSE, caption = "My caption")
```
Using Markdown citation for processing won't work unless you use a Markdown table. This because Pandoc which does the document parsing and rendering to the desired format will not parse the citation syntax inside a LaTeX content - so it won't see the citation inside column of a latex table So you could use a markdown table, but as non included latex package can't be added, and Pandoc is using longtable for its LaTeX table, I don't think this will render. Copernicus seems to have some constraints that leads only a limited set of R Markdown / Pandoc features can be used. |
I want to make a simple table (where
booktabs=TRUE
) in a copernicus article. When I knit the following copernicus article (using the template provided by the package) topdf_book
I get the following error:
Interestingly, when I do not use
booktabs
(which I need to):I get:
So, rendering of the document seems to work, but there are 2 problems:
By filing an issue to this repo, I promise that
xfun::session_info('rticles')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('rstudio/rticles')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: