Skip to content
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

Update Copernicus publication template to version 6.2 #366

Merged
merged 2 commits into from
Jan 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: rticles
Type: Package
Title: Article Formats for R Markdown
Version: 0.18.1
Version: 0.18.2
Authors@R: c(
person("JJ", "Allaire", role = "aut", email = "jj@rstudio.com"),
person("Yihui", "Xie", role = c("aut", "cre"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")),
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
rticles 0.19
---------------------------------------------------------------------

- Update Copernicus Publications template to version 6.2 from 2021-01-15. (thanks, @RLumSK, #366)

rticles 0.18
---------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
File: README_copernicus_package_6_1.txt
File: README_copernicus_package_6_2.txt
-------------------------------------------------------------------------
This is a README file for the Copernicus Publications LaTeX Macro Package
copernicus_package.zip in the version 6.1, 29 October 2020
copernicus_package.zip in the version 6.2, 15 January 2021
-------------------------------------------------------------------------
It consists of several files, each with its separate copyright.
This specific archive is collected for journals published by
Copernicus Publications (Copernicus GmbH).

Copyright (C) 2020 Copernicus GmbH
Copyright (C) 2021 Copernicus GmbH

E-mail: publications@copernicus.org
URL: https://publications.copernicus.org



Content:
- copernicus.cls: The LaTeX2e class file designed for Copernicus Publications journals. Current Version 9.21, 20 October 2020
- copernicus.cfg: The configuration file containing journal-specific information used by the class file. Last update 25 June 2020
- copernicus.bst: The bibliographic style file for BibTeX. Current Version 1.2, September 2017
- copernicus.cls: The LaTeX2e class file designed for Copernicus Publications journals. Current Version 9.25, 12 January 2021
- copernicus.cfg: The configuration file containing journal-specific information used by the class file. Last update 15 January 2021
- copernicus.bst: The bibliographic style file for BibTeX. Current Version 1.3, January 2021
- pdfscreencop.sty / pdfscreen.sty
- template.tex: A LaTeX template in journal style.
1 change: 1 addition & 0 deletions inst/rmarkdown/templates/copernicus/resources/template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
% Natural Hazards and Earth System Sciences (nhess)
% Nonlinear Processes in Geophysics (npg)
% Ocean Science (os)
% Polarforschung - Journal of the German Society for Polar Research (polf)
% Primate Biology (pb)
% Proceedings of the International Association of Hydrological Sciences (piahs)
% Scientific Drilling (sd)
Expand Down
10 changes: 7 additions & 3 deletions inst/rmarkdown/templates/copernicus/skeleton/copernicus.bst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%%
%% This is file `copernicus.bst', version 1.2 (September 2017),
%% This is file `copernicus.bst', version 1.3 (January 2021),
%% generated with the docstrip utility.
%%
%% The original source files were:
Expand Down Expand Up @@ -668,9 +668,13 @@ FUNCTION {format.doi}
}
FUNCTION {format.note}
{
url empty$
doi empty$
{ url empty$
'skip$
{ "\urlprefix\url{" url * "}" * output }
if$
}
'skip$
{ "\urlprefix\url{" url * "}" * output }
if$
note empty$
{ "" }
Expand Down
16 changes: 15 additions & 1 deletion inst/rmarkdown/templates/copernicus/skeleton/copernicus.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
\newif\ifprp \DeclareOption{prp} {\@sansseriffacetrue\@sansserifheadertrue\@abstractcenteredtrue \@bartrue \prptrue}
\newif\ifgtes \DeclareOption{gtes} {\@sansseriffacetrue\@sansserifheadertrue\@abstractcenteredtrue \@bartrue \gtestrue}
\newif\ifcopyediting \DeclareOption{copyediting}{\copyeditingtrue\@noreftrue}
\newif\ifpolf \DeclareOption{polf}{\@sansseriffacetrue\@sansserifheadertrue\polftrue}
\newif\ifjbji \DeclareOption{jbji}{\@sansseriffacetrue\@sansserifheadertrue\@abstractcenteredtrue\@bartrue\jbjitrue}
\newif\ifmr \DeclareOption{mr}{\@sansseriffacetrue\@sansserifheadertrue\@abstractcenteredtrue\@bartrue\@twostagejnltrue\mrtrue}
\DeclareOption{mrd}{\@sansseriffacetrue\@sansserifheadertrue\@abstractcenteredtrue\@bartrue\@stage@finalfalse\mrtrue}
Expand Down Expand Up @@ -1026,13 +1027,26 @@
\def\@journalnameshort{JBJI}
\def\@journalnameshortlower{jbji}
\def\@journalstartyear{2016}
\def\@sentence{Published by Copernicus Publications on behalf of the European Bone and Joint Infection Society.}
\def\@sentence{Published by Copernicus Publications on behalf of of EBJIS and MSIS.}
\def\@journalurl{https://jbji.copernicus.org/}
\def\@journallogo{\includegraphics{JBJI_Logo.pdf}}
\definecolor{textcol}{rgb}{0.161,0.337,0.361}
\definecolor{bgcol}{rgb}{1,1,1}
\definecolor{barcol}{rgb}{1.0,1.0,1.0}
\definecolor{rulecol}{rgb}{0.161,0.337,0.361}
\fi
\ifpolf%classical
\def\@journalname{Polarforschung - Journal of the German Society for Polar Research}
\def\@journalnameabbreviation{Polarforschung}
\def\@journalnameshort{POLF}
\def\@journalnameshortlower{polf}
\def\@journalstartyear{2021}
\def\@sentence{Published by Copernicus Publications on behalf of the Deutsche Gesellschaft für Polarforschung e.V.}
\def\@journalurl{https://polf.copernicus.org}
\def\@journallogo{\includegraphics{POLF_Logo.pdf}}
\definecolor{textcol}{rgb}{0.306,0.525,0.682}
\definecolor{bgcol}{rgb}{1,1,1}
\definecolor{rulecol}{rgb}{1.0,1.0,1.0}
\fi

}
108 changes: 65 additions & 43 deletions inst/rmarkdown/templates/copernicus/skeleton/copernicus.cls
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
%% -----------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{copernicus}
[2020/10/29 9.21 Copernicus papers]
[2021/01/12 9.25 Copernicus papers]
\frenchspacing
\clubpenalty10000
\widowpenalty10000
Expand Down Expand Up @@ -752,7 +752,7 @@
\ifdim\wd\z@>100mm\strut\newline\strut\fi
\fi
\fi
\ifx\@published\@undefined\else \hbox{Published:\nobreakspace\@published}\fi
\ifx\@published\@undefined\else \strut\hbox{Published:\nobreakspace\@published}\fi
\strut\par\egroup
\ifx\@howtocite\@empty\else\item[{How to cite:}]\@howtocite\fi
\ifx\abstractexists\@undefined
Expand Down Expand Up @@ -1220,14 +1220,15 @@
\fi
\def\@tempa{%
\def\introductionname{Introduction}%
\def\authorcontributionname{Author contributions}%
\def\secabstractname{Kurzfassung}%
\def\conclusionname{Conclusions}%
\def\copyrightstatementname{Copyright statement}%
\def\codeavailabilityname{Code availability}%
\def\dataavailabilityname{Data availability}%
\def\ercavailabilityname{Executable research compendium (ERC)}%
\def\codedataavailabilityname{Code and data availability}%
\def\sampleavailabilityname{Sample availability}%
\def\authorcontributionname{Author contributions}%
\def\competinginterestsname{Competing interests}%
\def\videosupplementname{Video supplement}%
\def\dosupplementname{Supplement}%
Expand Down Expand Up @@ -1256,6 +1257,7 @@
\def\copyrightstatementname{Urheberrechtserklärung}%
\def\codeavailabilityname{Codeverfügbarkeit}%
\def\dataavailabilityname{Datenverfügbarkeit}%
\def\ercavailabilityname{Executable research compendium (ERC)}%
\def\codedataavailabilityname{Code- und Datenverfügbarkeit}%
\def\sampleavailabilityname{Probenverfügbarkeit}%
\def\authorcontributionname{Autorenmitwirkung}%
Expand Down Expand Up @@ -1285,6 +1287,7 @@
\def\copyrightstatementname{Affirmation du droit d'auteur}%
\def\codeavailabilityname{Disponibilité du code}%
\def\dataavailabilityname{Disponibilité des données}%
\def\ercavailabilityname{Executable research compendium (ERC)}%
\def\sampleavailabilityname{Disponibilité des examples}%
\def\codedataavailabilityname{Disponibilité du code et des données}%
\def\authorcontributionname{Collaborateurs}%
Expand Down Expand Up @@ -1519,6 +1522,7 @@
\setcounter{reaction}{0}%
\def\theequation{\thesection\@arabic\c@equation}%
\def\thereaction{\thesection R\@arabic\c@reaction}%
\let\c@org@lst\c@listings%
\let\c@org@eq\c@equation%
\let\org@theeq\theequation%
\if@stage@final
Expand All @@ -1528,6 +1532,9 @@
\@addtoreset{table}{section}%
\setcounter{table}{0}%
\def\thetable{\thesection\@arabic\c@table}%
\@addtoreset{listings}{section}%
\setcounter{listings}{0}%
\def\thelistings{\thesection\@arabic\c@listings}%
\fi
\global\let\old@sect\@sect
\def\@sect##1##2##3##4##5##6[##7]##8{%
Expand Down Expand Up @@ -1591,6 +1598,7 @@
\ifx\old@sect\@undefined\else\global\let\@sect\old@sect\fi
\ifx\old@ssect\@undefined\else\global\let\@ssect\old@ssect\fi
\def\thefigure{\@arabic\c@figure}%
\def\thelistings{\@arabic\c@listings}%
\def\thetable{\@arabic\c@table}}
\IfFileExists{url.sty}
{\RequirePackage{url}\urlstyle{same}}%
Expand Down Expand Up @@ -1738,45 +1746,49 @@
\g@addto@macro\subfiguresend{\global\let\theHfigure\thefigure@original}
\g@addto@macro\subtablesend{\global\let\theHtable\thetable@original}}
{\CopernicusWarningNoLine{Cannot find subfloat.sty; proceeding without it}}
\RequirePackage[authoryear,round]{natbib}
\def\NAT@sort{0}\def\NAT@cmprs{0}
\bibstyle{copernicus}
\setlength\bibsep\z@
\let\bibfont\small
\renewcommand\bibitem{\@ifnextchar[{\@lbibitem}{\@lbibitem[??(????)]}}%]
\ifx\xmltexversion\@undefined\else
\NAT@set@cites
\let\NAT@set@cites\relax
\fi
\AtBeginDocument{\let\@citex\NAT@citex}
\newcommand\urlprefix{}
\renewenvironment{thebibliography}[1]
{\bibsection
\if@secline\leavevmode\vspace*{-\baselineskip}\nobreak\fi
\parindent\z@
\bibpreamble
\bibfont
\list{\@biblabel{\arabic{NAT@ctr}}}{\@bibsetup{#1}%
\setcounter{NAT@ctr}{0}}%
\ifNAT@openbib
\renewcommand\newblock{\par}
\else
\renewcommand\newblock{\hskip .11em \@plus.33em \@minus.07em}%
\fi
\sloppy
%\clubpenalty4000\widowpenalty4000
\sfcode`\.=1000\relax
\let\citeN\cite \let\shortcite\cite
\let\citeasnoun\cite}
{\def\@noitemerr{%
\PackageWarning{natbib}{Empty `thebibliography' environment}}%
\endlist\vskip-\lastskip}
\def\bibsection{%
\if@stage@final
\if@manuscript\newpage\fi
\pdfbookmark[1]{\refname}{biblio}%
\fi
\noappendix\section*{\refname\if@cop@home\ifonline\hypertarget{references}{}\fi\fi}}

\newif\ifNAT@openbib
\IfFileExists{natbib.sty}
{\RequirePackage[authoryear,round]{natbib}
\bibpunct{(}{)}{;}{a}{,}{,~}
\def\NAT@sort{0}\def\NAT@cmprs{0}
\setlength\bibsep\z@
\let\bibfont\small
\renewcommand\bibitem{\@ifnextchar[{\@lbibitem}{\@lbibitem[??(????)]}}%]
\ifx\xmltexversion\@undefined\else
\NAT@set@cites
\let\NAT@set@cites\relax
\fi
\AtBeginDocument{\let\@citex\NAT@citex}
\newcommand\urlprefix{}
\renewenvironment{thebibliography}[1]
{\bibsection
\if@secline\leavevmode\vspace*{-\baselineskip}\nobreak\fi
\parindent\z@
\bibpreamble
\bibfont
\list{\@biblabel{\arabic{NAT@ctr}}}{\@bibsetup{##1}%
\setcounter{NAT@ctr}{0}}%
\ifNAT@openbib
\renewcommand\newblock{\par}
\else
\renewcommand\newblock{\hskip .11em \@plus.33em \@minus.07em}%
\fi
\sloppy
% \clubpenalty4000\widowpenalty4000
\sfcode`\.=1000\relax
\let\citeN\cite \let\shortcite\cite
\let\citeasnoun\cite}
{\def\@noitemerr{%
\PackageWarning{natbib}{Empty `thebibliography' environment}}%
\endlist\vskip-\lastskip}
\def\bibsection{%
\if@stage@final
\if@manuscript\newpage\fi
\pdfbookmark[1]{\refname}{biblio}%
\fi
\noappendix\section*{\refname\if@cop@home\ifonline\hypertarget{references}{}\fi\fi}}
}{\CopernicusWarningNoLine{Cannot find natbib.sty; proceeding without it}}
\RequirePackage{rotating}
\def\@rotxdblfloat#1[#2]{%
\@float{#1}[#2]%
Expand Down Expand Up @@ -2429,10 +2441,12 @@
\long\def\codeavailability#1{\ifx\thesection\theolds\else\noappendix\fi\section{\codeavailabilityname}#1}
\long\def\dataavailability#1{\ifx\thesection\theolds\else\noappendix\fi\section{\dataavailabilityname}#1}
\long\def\codedataavailability#1{\ifx\thesection\theolds\else\noappendix\fi\section{\codedataavailabilityname}#1}
\long\def\ercavailability#1{\ifx\thesection\theolds\else\noappendix\fi\section{\ercavailabilityname}#1}
\else
\generateCommand{codeavailability} {\endlist\egroup}
\generateCommand{dataavailability} {\endlist\egroup}
\generateCommand{codedataavailability}{\endlist\egroup}
\generateCommand{ercavailability}{\endlist\egroup}
\fi
\generateCommand{authorcontribution}{\endlist\egroup}
\generateCommand{sampleavailability}{\endlist\egroup}
Expand All @@ -2442,8 +2456,16 @@
\generateCommand{disclaimer} {\endlist\egroup}
\generateCommand{sistatement} {\endlist\egroup}
\generateCommand{dosupplement} {\endlist\egroup}
\generateCommand{financialsupport} {\endlist\egroup}
\generateCommand{financialsupport} {\endlist\egroup}
\generateCommand{reviewstatement} {\endlist\egroup}
\long\def\specialsection#1#2{%
\expandafter\def\csname specialsection-#1name\endcsname{#1}%
\expandafter\ifx\csname specialsection-#1name\endcsname\@empty
\PackageError{copernicus.cls}{\string\specialsection\space needs a heading.}{Make sure that \string\specialsection{}{}\space has two arguments and that the first argument contains a heading.}%
\else
\generateCommand{specialsection-#1} {\endlist\egroup}%
\csname specialsection-#1\endcsname{#2}%
\fi}

\generateCommand{acknowledgement} {} \def\endacknowledgement{\endlist\egroup}
\generateCommand{acknowledgements} {} \def\endacknowledgements{\endlist\egroup}
Expand Down