-
Notifications
You must be signed in to change notification settings - Fork 520
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
Cross-referencing figures in Copernicus template does not work #553
Comments
@nuest (a friendly and kind ping :) ) |
@cderv, thanks, it works when I use |
I am not sure I follow... Doing this is the R Markdown way to get access to bookdown specific feature with another base format
This is how you get the special syntax Without it, if you do only rticles::copernicus_article:
highlight: NULL
keep_tex: true the bookdown feature won't work. However, usually when using rticles you expect only LaTeX. This means that you can use directly LaTeX syntax to create references to your figure after adding labels; It should work as R Markdown (Pandoc) should accept raw LaTeX without processing it. |
Thanks cderv for your helpful replies. For me (and probably others starting with the template) the confusing part was just that the template contains both output formats. So it seems to me that the template left as is does not support bookdown's
|
I have a similar issue with my cross-references in figures. I'm using the syntax you described, but the problem is that my cross-references are including the chapter number, which I want to avoid. Do you have any suggestions on how I can fix this? |
@diegourreamendez can you open a new issue with an example so that I can look ? Thanks ! |
@cderv I solved the problem yesterday, so it's no longer necessary. Thank you! |
I am using the copernicus template and I want to cross-reference figures, but somehow I can't. Please see the r code chunk below:
The resulted text look like this:
Session info:
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: