-
Notifications
You must be signed in to change notification settings - Fork 525
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
pandoc-crossref
will fail if these commented out
#273
Comments
There is a comment on the previous line: rticles/inst/rmarkdown/templates/copernicus_article/resources/template.tex Lines 83 to 86 in 3445b46
Cc the template author @nuest (#172). I'm not the expert here. |
Copernicus discourages adding any additional packages, see https://publications.copernicus.org/for_authors/manuscript_preparation.html IIRC correctly that is why is disabled that option for authors, however, I was not aware that the @sunt05 Can you please provide a reproducible example so I can take a closer look? Thanks! |
Thanks @cderv for the reminder! 😅 Now please test the template with files in this repo: issueif the above mentioned lines are commented out as instructed by Copernicus, the following issue would appear:
|
It seems you are not using I believe the tex template are best used with those 2 packages package: |
I'm always using it this way: i.e., with pandoc, as I found the templates could be easily adapted for broader applicability with more generic markdown-based tools, e.g.,
Sorry that if this issue looks off-topic: please feel free to close it. |
You may already know but rmarkdown also use pandoc for conversion. I believe the issue you get if from converting directly using the template. I did not identify why yet but I don't get the same tex file after pandoc conversion from the command line or using |
Did you use the following line to reproduce the error?
Please note the I just update the repo with more description to reproduce the error as mentioned above:
Sorry about any confusion I might have brought up. |
I can reproduce using your command. But I cannot reproduce if I use rmarkdown and rticles directly.
So I don't think it likes this template that have this part commented. This is a compatibility issue with Best thing to do here is to use your own template I think |
Thanks for the discussion and help! @cderv I'll use the templates more wisely with |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
Just discovered your great work!
HUGE THANKS!!!
One issue identified if using pandoc with
pandoc-crossref
:rticles/inst/rmarkdown/templates/copernicus_article/resources/template.tex
Lines 84 to 86 in 3445b46
If these lines are commented out, then the headers by
pandoc-crossref
won't be correctly inserted.The text was updated successfully, but these errors were encountered: