rstudio / rticles

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

Copernicus Publications Correspondence Line Bugfix #565

Closed colinasmith closed 2 months ago

colinasmith commented 2 months ago

Version 7.8 of the Copernicus Publications LaTeX Package has a template showing that the corresponding author email should be indicated with an extra set of square brackets as follows:

% \Author[affil]{given_name}{surname}

\Author[][EMAIL]{}{} %% correspondence author
\Author[]{}{}
\Author[]{}{}

Without that extra brackets, the "Correspondence: Author Name (Author Email)" line doesn't get added to the title page as shown in the attached Test_Incorrect.pdf file, which was generated using the rticles Copernicus template unmodified. A Copernicus journal just rejected my first file submission because that was absent. The following line needs to be modified:

https://github.com/rstudio/rticles/blob/60ff8b605425eeadcbc9677e27e70e29cce726cc/inst/rmarkdown/templates/copernicus/resources/template.tex#L210

It should instead be:

\Author[$author.affiliation$]$if(author.corresponding)$[$author.email$]$endif${$author.given_name$}{$author.surname$}

Once that change is made, the Correspondence line gets correctly added to the PDF as shown in the attached Test_Correct.pdf file.

While you're at it, it might make sense to update the files here with the latest version of the Copernicus Publications LaTeX Package.