Skip to content

Commit 91690a1

Browse files
authored
Merge pull request #588 from RLumSK/Copernicus_Template_Update_7_10
Copernicus template update 7 10
2 parents e1a6abf + ac55af6 commit 91690a1

File tree

8 files changed

+50
-1288
lines changed

8 files changed

+50
-1288
lines changed

NEWS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131

3232
- Update `mdpi_article()` to latest version of September 2024 (thanks, @nielsbock, #573, #580).
3333

34-
- Update Copernicus Publications template to version 7.9 from 2024-10-10 (@RLumSK, #577).
34+
- Update Copernicus Publications template to version 7.10 from 2025-03-14, add support for the languages
35+
supported by the `copernicus.cls`, and fix an issue where the section headers were not shown due to a missing language flag. (@RLumSK, #577, #588)
3536

3637
## MINOR CHANGES
3738

R/copernicus_article.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#'
1414
#' An number of required and optional manuscript sections, e.g. `acknowledgements`, `competinginterests`, or `authorcontribution`, must be declared using the respective properties of the R Markdown header - see skeleton file.
1515
#'
16-
#' **Version:** Based on `copernicus_package.zip` in the version 7.7, 10 September 2024, using `copernicus.cls` in version 10.1.20, 10 September 2024.
16+
#' **Version:** Based on `copernicus_package.zip` in the version 7.10, 4 March 2025, using `copernicus.cls` in Version 10.1.26, 14 March 2025.
1717
#'
1818
#' **Copernicus journal abbreviations:** You can use the function `copernicus_journal_abbreviations()` to get the journal abbreviation for all journals supported by the Copernicus article template.
1919
#'

inst/rmarkdown/templates/copernicus/resources/README_copernicus_package_7_9.txt renamed to inst/rmarkdown/templates/copernicus/resources/README_copernicus_package_7_10.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
File: README_copernicus_package_7_9.txt
1+
File: README_copernicus_package_7_10.txt
22
-------------------------------------------------------------------------
33
This is a README file for the Copernicus Publications LaTeX Macro Package
4-
copernicus_package.zip in the version 7.9, 10 September 2024
4+
copernicus_package.zip in the version 7.10, 4 March 2025
55
-------------------------------------------------------------------------
66
It consists of several files, each with its separate copyright.
77
This specific archive is collected for journals published by
88
Copernicus Publications (Copernicus GmbH).
99

10-
Copyright (C) 2024 Copernicus GmbH
10+
Copyright (C) 2025 Copernicus GmbH
1111

1212
1313
URL: https://publications.copernicus.org
1414

1515

1616

1717
Content:
18-
- copernicus.cls: The LaTeX2e class file designed for Copernicus Publications journals. Current Version 10.1.20, 10 September 2024
18+
- copernicus.cls: The LaTeX2e class file designed for Copernicus Publications journals. Current Version 10.1.26, 14 March 2025
1919
- copernicus.cfg: The configuration file containing journal-specific information used by the class file. Last update 10 September 2024
2020
- copernicus.bst: The bibliographic style file for BibTeX. Current Version 1.6, 20 October 2023
2121
- pdfscreencop.sty / pdfscreen.sty

inst/rmarkdown/templates/copernicus/resources/template.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
%% Please use the following documentclass and journal abbreviations for discussion papers and final revised papers.
1111

1212
%% 2-column papers and discussion papers
13-
\documentclass[$journal$, manuscript]{copernicus}
14-
13+
\documentclass[$journal$, manuscript, $language$]{copernicus}
1514

1615

1716
%% Journal abbreviations (please use the same for preprints and final revised papers)
@@ -213,6 +212,7 @@
213212
%\usepackage{float}
214213
%\usepackage{subfig}
215214
%\usepackage{rotating}
215+
%\usepackage{etoolbox}
216216
217217
\begin{document}
218218

inst/rmarkdown/templates/copernicus/skeleton/copernicus.cls

Lines changed: 39 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@
1616
%% -----------------------------------------------------------------
1717
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
1818
\ProvidesClass{copernicus}
19-
[2024/08/28 10.1.20 Copernicus papers]
19+
[2025/03/03 10.1.26 Copernicus papers]
2020
\frenchspacing
2121
\clubpenalty10000
2222
\widowpenalty10000
23+
\RequirePackage{etoolbox}%
2324
\RequirePackage{iftex}
2425
%% protrudechars, \adjustspacing \hypenationmin,
2526
%% lccode, \hjcode ???, exhyphenchar,\automatichyphenmode, hyphenchar
@@ -140,6 +141,7 @@
140141
\newif\if@bar %only used under \if@stage@final and \@cop@hometrue; for modern layout as well as for the classically layouted sub-journal "angeocom"
141142
\newif\if@firstbar %only used under \if@stage@final and \@cop@hometrue; for modern layout as well as for the classically layouted sub-journal "angeocom"
142143
\newif\if@hvmath \DeclareOption{hvmath}{\@hvmathtrue}%only used for discussions and only under \@cop@hometrue
144+
\newif\ifproofreadingchanges
143145
\InputIfFileExists{copernicus.cfg}%
144146
{\typeout{Additional configuration file copernicus.cfg used}}%
145147
{\CopernicusError{No additional configuration file copernicus.cfg}
@@ -548,16 +550,23 @@
548550
\ifx\xmltexversion\@undefined
549551
\ifcopyediting
550552
\let\title\ltx@title
551-
\else
552-
\def\title#1{\ltx@title{#1}\hypersetup{pdftitle=\@title}\xmp@title{#1}}
553-
\fi
553+
\else
554+
\ifproofreadingchanges
555+
\let\title\ltx@title
556+
\else
557+
\def\title#1{\ltx@title{#1}\hypersetup{pdftitle=\@title}\xmp@title{#1}}
558+
\fi\fi
554559
\else
555560
\def\title#1{\ltx@title{#1}\xmp@title{#1}}
556561
\fi
557562
\def\maketitle{%
558563
\gdef\supplement##1{%
559-
\href{https://doi.org/10.5194/\@journalnameshortlower-\@pvol-\@fpage-\@pyear-supplement}%
560-
{https://doi.org/10.5194/\@journalnameshortlower-\@pvol-\@fpage-\@pyear-supplement}}%
564+
\if@proof
565+
[the link will be implemented upon publication]%
566+
\else
567+
\href{https://doi.org/10.5194/\@journalnameshortlower-\@pvol-\@fpage-\@pyear-supplement}%
568+
{https://doi.org/10.5194/\@journalnameshortlower-\@pvol-\@fpage-\@pyear-supplement}%
569+
\fi}%
561570
\ifnum\@fpage<0
562571
\CopernicusError{No article number given but citation by article number required}
563572
{Please provide \string\articlenumber.}
@@ -1308,7 +1317,7 @@
13081317
\fi
13091318
\fi
13101319
\RequirePackage[normalem]{ulem}%
1311-
\RequirePackage[T3,T1]{fontenc}
1320+
\RequirePackage[T5,T3,T1]{fontenc}
13121321
\RequirePackage[warn]{textcomp}
13131322
\if@cop@home
13141323
\RequirePackage{fontawesome5}
@@ -1370,7 +1379,10 @@
13701379
\fi
13711380
\def\cmrng{{\fontfamily{cmr}\selectfont\ng}}
13721381
\let\old@classoptionslist\@classoptionslist
1373-
\edef\@classoptionslist{english,\old@classoptionslist}
1382+
\preto\@classoptionslist{english,}
1383+
\ifdefined\@raw@classoptionslist
1384+
\preto\@raw@classoptionslist{english,}
1385+
\fi
13741386
\RequirePackage{babel}
13751387
\let\@classoptionslist\old@classoptionslist
13761388
\ifx\StandardLayout\@undefined\let\StandardLayout\relax\fi
@@ -1573,11 +1585,12 @@
15731585
\xdef\AB@thenote{\arabic{affil}}%
15741586
\fi
15751587
\ifcopyediting\else
1588+
\ifproofreadingchanges\else
15761589
\xmp@author{#2}%
1577-
\fi
1590+
\fi\fi
15781591
\global\advance\c@authnum\@ne
15791592
\if@cop@home
1580-
\expandafter\ifx\csname deceased@\the\c@authnum\endcsname\true\relax\def\@@deceased{$^{,\text{\faCross}}$}\fi
1593+
\expandafter\ifx\csname deceased@\the\c@authnum\endcsname\true\relax\def\@@deceased{$^{,\text{\faRibbon}}$}\fi
15811594
\expandafter\ifx\csname econtrib@\the\c@authnum\endcsname\true\relax\def\@@econtrib{$^{,\text{\faStar}}$}\fi
15821595
\fi
15831596
\def\@tempa{#1}\ifx\@tempa\@empty\def\AB@note{\AB@thenote}\else\def\AB@note{#1}%
@@ -1659,7 +1672,7 @@
16591672
\deceased@sep#1,\@nil
16601673
\@temptokena=\expandafter{\AB@affillist}%
16611674
\protected@xdef\AB@affillist{\the\@temptokena \AB@affilsep
1662-
\AB@affilnote{\faCross}\protect\Affilfont\@deceasedNote}%
1675+
\AB@affilnote{\faRibbon}\protect\Affilfont\@deceasedNote}%
16631676
}
16641677
\newcommand\equalcontrib[1]{%
16651678
\gdef\@econtribNote{These authors contributed equally to this work.}%
@@ -2155,7 +2168,6 @@
21552168
\provide@orig@symbol{Phi}
21562169
\provide@orig@symbol{Psi}
21572170
\provide@orig@symbol{Omega}
2158-
\usepackage{etoolbox}%
21592171
\ifluatex\else
21602172
%% Fix fuer #6924, vgl https://tex.stackexchange.com/questions/561236/setmathalphabet-messes-with-rm
21612173
\@iflatexlater{2020/10/01}{}{\patchcmd\document@select@group{#1{#4}}{\expandafter#1\ifx\math@bgroup\bgroup{#4}\else#4\fi}{}{}}%
@@ -2287,7 +2299,7 @@
22872299
\hypersetup{anchorcolor=black,citecolor=black,filecolor=black,linkcolor=black,unicode,%
22882300
menucolor=black,urlcolor=black}%%
22892301
}{%
2290-
\usepackage[\ifcopyediting bookmarks=false\else bookmarks=true\fi,colorlinks]{hyperref}
2302+
\usepackage[bookmarks=\ifcopyediting false\else\ifproofreadingchanges false\else true\fi\fi,colorlinks]{hyperref}%
22912303
\hypersetup{anchorcolor=black,citecolor=black,filecolor=black,linkcolor=black,%
22922304
menucolor=black,pagecolor=black,urlcolor=black}
22932305
}%
@@ -2599,9 +2611,12 @@
25992611
\else
26002612
\ifcopyediting
26012613
\gdef\@howtocite{}%
2602-
\else
2603-
\gdef\@howtocite{#1, \@journalnameabbreviation, \@pvol, \@fpage--\@lpage, \expandafter\url{\@@doi}, \@pyear.}%
2604-
\fi
2614+
\else
2615+
\ifproofreadingchanges
2616+
\gdef\@howtocite{}%
2617+
\else
2618+
\gdef\@howtocite{#1, \@journalnameabbreviation, \@pvol, \@fpage--\@lpage, \expandafter\url{\@@doi}, \@pyear.}%
2619+
\fi\fi
26052620
\fi
26062621
}\def\@howtocite{}%+1,+2,+d
26072622
\def\msnumber#1{\if@cop@home\gdef\@msnumber{#1}\fi}
@@ -2636,13 +2651,13 @@
26362651
\fi
26372652
\if@stage@final
26382653
\def\keywords#1{%
2639-
\ifcopyediting\else\xmp@keywords{#1}\fi%
2654+
\ifcopyediting\else\ifproofreadingchanges\else\xmp@keywords{#1}\fi\fi%
26402655
\def\@keyw{#1}%
26412656
}
26422657
\def\@keyw{}
26432658
\else
26442659
\def\keywords#1{%
2645-
\ifcopyediting\else\xmp@keywords{#1}\fi%
2660+
\ifcopyediting\else\ifproofreadingchanges\else\xmp@keywords{#1}\fi\fi%
26462661
\CopernicusWarningNoLine{Keywords are not supported.}%
26472662
\vspace{1.7mm}\par\noindent\textbf{Keywords.}\enspace\ignorespaces#1}
26482663
\fi
@@ -2781,7 +2796,7 @@
27812796
\fi
27822797
\let\do@skip\relax
27832798
\def\@argi{#1}\ifx\@argi\@empty\else\let\do@skip\space\fi%
2784-
\item \dosupplement{#1\do@skip The supplement related to this article is available online at:
2799+
\item \dosupplement{#1\do@skip The supplement related to this article is available online at
27852800
\if@stage@final\else\\\fi
27862801
\supplement{#2}.}%
27872802
\end{trivlist}%
@@ -3105,6 +3120,11 @@
31053120
\fi
31063121
31073122
\def\invbreve#1{\def\x##1{\fontencoding{T3}\selectfont\textroundcap{{\fontencoding{T1}\selectfont##1}}}\ifmmode \x{$#1$}\else\x{#1}\fi}
3123+
\let\texthookabove\h
3124+
\let\textdotbelow\d
3125+
\def\h#1{{\fontencoding{T5}\selectfont\texthookabove{#1}}}
3126+
\def\d#1{{\fontencoding{T5}\selectfont\textdotbelow{#1}}}
3127+
\hypersetup{pdfencoding=auto}
31083128
31093129
\endinput
31103130
%%

0 commit comments

Comments
 (0)