rstudio / rticles

LaTeX Journal Article Templates for R Markdown
https://pkgs.rstudio.com/rticles/
1.46k stars 516 forks source link

Add Journal of Cheminformatics #378

Open cderv opened 3 years ago

cderv commented 3 years ago

Info here: https://jcheminf.biomedcentral.com/submission-guidelines/preparing-your-manuscript/software

From a very interesting thread

https://twitter.com/egonwillighagen/status/1372552771459760129?s=21

Current working content with Rmd template

https://github.com/jcheminform/markdown-jcheminf

Special because of Cito for bibliography

https://jcheminf.biomedcentral.com/articles/10.1186/s13321-020-00448-1

This issue is for referencing of useful resources and discussing the how if this is found useful.

egonw commented 3 years ago

@cderv, I had a quick look at the PR of the springer_article and looks straightforward (just need to find time...). But my hands are itching... oh, how I want my semtex LaTeX package now :) (for the readers of my blog :)

For now, can you give me a pointer how to tweak the future jcheminform_article with a type parameter for something like type="research", type="software", for the various article types the journal has?

cderv commented 3 years ago

For now, can you give me a pointer how to tweak the future jcheminform_article with a type parameter for something like type="research", type="software", for the various article types the journal has?

What would the type change in the template ?

Recently, there was a PR for ims_article (https://github.com/rstudio/rticles/pull/372) with a journal parameter to change some details. You'll also find joss_article which as a parameter for changing journal which sets some variable for pandoc template (https://github.com/rstudio/rticles/blob/master/R/joss_article.R) Other formats like copernicus_journal will rely on a Pandoc variable in the Rmd file (https://github.com/rstudio/rticles/blob/10d269397fe3af52ffeebfab533a3eb970567f33/inst/rmarkdown/templates/copernicus/skeleton/skeleton.Rmd#L3) that will change the pandoc template behavior (https://github.com/rstudio/rticles/blob/10d269397fe3af52ffeebfab533a3eb970567f33/inst/rmarkdown/templates/copernicus/resources/template.tex#L13) because there is special LaTeX class. The assiocated R function for output format don't have a journal parameter in this case (https://github.com/rstudio/rticles/blob/master/R/copernicus_article.R)

Anyhow, there is several ways to do that. It will depend on what the differences are between your article types.If you explain what they are, I can help see what the best option is. It would be (1) either inside the output format itself or (2) as a pandoc variable. (1) would be suitable if you need the parameter to have some effect on the R side changing some stuff in the output format call. (2) would be enough if the type has effect only inside the Pandoc template.

Hope it helps.