|
16 | 16 | %% -----------------------------------------------------------------
|
17 | 17 | \NeedsTeXFormat{LaTeX2e}[1995/12/01]
|
18 | 18 | \ProvidesClass{copernicus}
|
19 |
| - [2020/10/29 9.21 Copernicus papers] |
| 19 | + [2021/01/12 9.25 Copernicus papers] |
20 | 20 | \frenchspacing
|
21 | 21 | \clubpenalty10000
|
22 | 22 | \widowpenalty10000
|
|
752 | 752 | \ifdim\wd\z@>100mm\strut\newline\strut\fi
|
753 | 753 | \fi
|
754 | 754 | \fi
|
755 |
| - \ifx\@published\@undefined\else \hbox{Published:\nobreakspace\@published}\fi |
| 755 | + \ifx\@published\@undefined\else \strut\hbox{Published:\nobreakspace\@published}\fi |
756 | 756 | \strut\par\egroup
|
757 | 757 | \ifx\@howtocite\@empty\else\item[{How to cite:}]\@howtocite\fi
|
758 | 758 | \ifx\abstractexists\@undefined
|
|
1220 | 1220 | \fi
|
1221 | 1221 | \def\@tempa{%
|
1222 | 1222 | \def\introductionname{Introduction}%
|
| 1223 | + \def\authorcontributionname{Author contributions}% |
1223 | 1224 | \def\secabstractname{Kurzfassung}%
|
1224 | 1225 | \def\conclusionname{Conclusions}%
|
1225 | 1226 | \def\copyrightstatementname{Copyright statement}%
|
1226 | 1227 | \def\codeavailabilityname{Code availability}%
|
1227 | 1228 | \def\dataavailabilityname{Data availability}%
|
| 1229 | + \def\ercavailabilityname{Executable research compendium (ERC)}% |
1228 | 1230 | \def\codedataavailabilityname{Code and data availability}%
|
1229 | 1231 | \def\sampleavailabilityname{Sample availability}%
|
1230 |
| - \def\authorcontributionname{Author contributions}% |
1231 | 1232 | \def\competinginterestsname{Competing interests}%
|
1232 | 1233 | \def\videosupplementname{Video supplement}%
|
1233 | 1234 | \def\dosupplementname{Supplement}%
|
|
1256 | 1257 | \def\copyrightstatementname{Urheberrechtserklärung}%
|
1257 | 1258 | \def\codeavailabilityname{Codeverfügbarkeit}%
|
1258 | 1259 | \def\dataavailabilityname{Datenverfügbarkeit}%
|
| 1260 | + \def\ercavailabilityname{Executable research compendium (ERC)}% |
1259 | 1261 | \def\codedataavailabilityname{Code- und Datenverfügbarkeit}%
|
1260 | 1262 | \def\sampleavailabilityname{Probenverfügbarkeit}%
|
1261 | 1263 | \def\authorcontributionname{Autorenmitwirkung}%
|
|
1285 | 1287 | \def\copyrightstatementname{Affirmation du droit d'auteur}%
|
1286 | 1288 | \def\codeavailabilityname{Disponibilité du code}%
|
1287 | 1289 | \def\dataavailabilityname{Disponibilité des données}%
|
| 1290 | + \def\ercavailabilityname{Executable research compendium (ERC)}% |
1288 | 1291 | \def\sampleavailabilityname{Disponibilité des examples}%
|
1289 | 1292 | \def\codedataavailabilityname{Disponibilité du code et des données}%
|
1290 | 1293 | \def\authorcontributionname{Collaborateurs}%
|
|
1519 | 1522 | \setcounter{reaction}{0}%
|
1520 | 1523 | \def\theequation{\thesection\@arabic\c@equation}%
|
1521 | 1524 | \def\thereaction{\thesection R\@arabic\c@reaction}%
|
| 1525 | + \let\c@org@lst\c@listings% |
1522 | 1526 | \let\c@org@eq\c@equation%
|
1523 | 1527 | \let\org@theeq\theequation%
|
1524 | 1528 | \if@stage@final
|
|
1528 | 1532 | \@addtoreset{table}{section}%
|
1529 | 1533 | \setcounter{table}{0}%
|
1530 | 1534 | \def\thetable{\thesection\@arabic\c@table}%
|
| 1535 | + \@addtoreset{listings}{section}% |
| 1536 | + \setcounter{listings}{0}% |
| 1537 | + \def\thelistings{\thesection\@arabic\c@listings}% |
1531 | 1538 | \fi
|
1532 | 1539 | \global\let\old@sect\@sect
|
1533 | 1540 | \def\@sect##1##2##3##4##5##6[##7]##8{%
|
|
1591 | 1598 | \ifx\old@sect\@undefined\else\global\let\@sect\old@sect\fi
|
1592 | 1599 | \ifx\old@ssect\@undefined\else\global\let\@ssect\old@ssect\fi
|
1593 | 1600 | \def\thefigure{\@arabic\c@figure}%
|
| 1601 | + \def\thelistings{\@arabic\c@listings}% |
1594 | 1602 | \def\thetable{\@arabic\c@table}}
|
1595 | 1603 | \IfFileExists{url.sty}
|
1596 | 1604 | {\RequirePackage{url}\urlstyle{same}}%
|
|
1738 | 1746 | \g@addto@macro\subfiguresend{\global\let\theHfigure\thefigure@original}
|
1739 | 1747 | \g@addto@macro\subtablesend{\global\let\theHtable\thetable@original}}
|
1740 | 1748 | {\CopernicusWarningNoLine{Cannot find subfloat.sty; proceeding without it}}
|
1741 |
| -\RequirePackage[authoryear,round]{natbib} |
1742 |
| -\def\NAT@sort{0}\def\NAT@cmprs{0} |
1743 |
| -\bibstyle{copernicus} |
1744 |
| -\setlength\bibsep\z@ |
1745 |
| -\let\bibfont\small |
1746 |
| -\renewcommand\bibitem{\@ifnextchar[{\@lbibitem}{\@lbibitem[??(????)]}}%] |
1747 |
| -\ifx\xmltexversion\@undefined\else |
1748 |
| - \NAT@set@cites |
1749 |
| - \let\NAT@set@cites\relax |
1750 |
| -\fi |
1751 |
| -\AtBeginDocument{\let\@citex\NAT@citex} |
1752 |
| -\newcommand\urlprefix{} |
1753 |
| -\renewenvironment{thebibliography}[1] |
1754 |
| - {\bibsection |
1755 |
| - \if@secline\leavevmode\vspace*{-\baselineskip}\nobreak\fi |
1756 |
| - \parindent\z@ |
1757 |
| - \bibpreamble |
1758 |
| - \bibfont |
1759 |
| - \list{\@biblabel{\arabic{NAT@ctr}}}{\@bibsetup{#1}% |
1760 |
| - \setcounter{NAT@ctr}{0}}% |
1761 |
| - \ifNAT@openbib |
1762 |
| - \renewcommand\newblock{\par} |
1763 |
| - \else |
1764 |
| - \renewcommand\newblock{\hskip .11em \@plus.33em \@minus.07em}% |
1765 |
| - \fi |
1766 |
| - \sloppy |
1767 |
| - %\clubpenalty4000\widowpenalty4000 |
1768 |
| - \sfcode`\.=1000\relax |
1769 |
| - \let\citeN\cite \let\shortcite\cite |
1770 |
| - \let\citeasnoun\cite} |
1771 |
| - {\def\@noitemerr{% |
1772 |
| - \PackageWarning{natbib}{Empty `thebibliography' environment}}% |
1773 |
| - \endlist\vskip-\lastskip} |
1774 |
| -\def\bibsection{% |
1775 |
| - \if@stage@final |
1776 |
| - \if@manuscript\newpage\fi |
1777 |
| - \pdfbookmark[1]{\refname}{biblio}% |
1778 |
| - \fi |
1779 |
| - \noappendix\section*{\refname\if@cop@home\ifonline\hypertarget{references}{}\fi\fi}} |
| 1749 | + |
| 1750 | +\newif\ifNAT@openbib |
| 1751 | +\IfFileExists{natbib.sty} |
| 1752 | + {\RequirePackage[authoryear,round]{natbib} |
| 1753 | + \bibpunct{(}{)}{;}{a}{,}{,~} |
| 1754 | + \def\NAT@sort{0}\def\NAT@cmprs{0} |
| 1755 | + \setlength\bibsep\z@ |
| 1756 | + \let\bibfont\small |
| 1757 | + \renewcommand\bibitem{\@ifnextchar[{\@lbibitem}{\@lbibitem[??(????)]}}%] |
| 1758 | + \ifx\xmltexversion\@undefined\else |
| 1759 | + \NAT@set@cites |
| 1760 | + \let\NAT@set@cites\relax |
| 1761 | + \fi |
| 1762 | + \AtBeginDocument{\let\@citex\NAT@citex} |
| 1763 | + \newcommand\urlprefix{} |
| 1764 | + \renewenvironment{thebibliography}[1] |
| 1765 | + {\bibsection |
| 1766 | + \if@secline\leavevmode\vspace*{-\baselineskip}\nobreak\fi |
| 1767 | + \parindent\z@ |
| 1768 | + \bibpreamble |
| 1769 | + \bibfont |
| 1770 | + \list{\@biblabel{\arabic{NAT@ctr}}}{\@bibsetup{##1}% |
| 1771 | + \setcounter{NAT@ctr}{0}}% |
| 1772 | + \ifNAT@openbib |
| 1773 | + \renewcommand\newblock{\par} |
| 1774 | + \else |
| 1775 | + \renewcommand\newblock{\hskip .11em \@plus.33em \@minus.07em}% |
| 1776 | + \fi |
| 1777 | + \sloppy |
| 1778 | + % \clubpenalty4000\widowpenalty4000 |
| 1779 | + \sfcode`\.=1000\relax |
| 1780 | + \let\citeN\cite \let\shortcite\cite |
| 1781 | + \let\citeasnoun\cite} |
| 1782 | + {\def\@noitemerr{% |
| 1783 | + \PackageWarning{natbib}{Empty `thebibliography' environment}}% |
| 1784 | + \endlist\vskip-\lastskip} |
| 1785 | + \def\bibsection{% |
| 1786 | + \if@stage@final |
| 1787 | + \if@manuscript\newpage\fi |
| 1788 | + \pdfbookmark[1]{\refname}{biblio}% |
| 1789 | + \fi |
| 1790 | + \noappendix\section*{\refname\if@cop@home\ifonline\hypertarget{references}{}\fi\fi}} |
| 1791 | + }{\CopernicusWarningNoLine{Cannot find natbib.sty; proceeding without it}} |
1780 | 1792 | \RequirePackage{rotating}
|
1781 | 1793 | \def\@rotxdblfloat#1[#2]{%
|
1782 | 1794 | \@float{#1}[#2]%
|
|
2429 | 2441 | \long\def\codeavailability#1{\ifx\thesection\theolds\else\noappendix\fi\section{\codeavailabilityname}#1}
|
2430 | 2442 | \long\def\dataavailability#1{\ifx\thesection\theolds\else\noappendix\fi\section{\dataavailabilityname}#1}
|
2431 | 2443 | \long\def\codedataavailability#1{\ifx\thesection\theolds\else\noappendix\fi\section{\codedataavailabilityname}#1}
|
| 2444 | + \long\def\ercavailability#1{\ifx\thesection\theolds\else\noappendix\fi\section{\ercavailabilityname}#1} |
2432 | 2445 | \else
|
2433 | 2446 | \generateCommand{codeavailability} {\endlist\egroup}
|
2434 | 2447 | \generateCommand{dataavailability} {\endlist\egroup}
|
2435 | 2448 | \generateCommand{codedataavailability}{\endlist\egroup}
|
| 2449 | + \generateCommand{ercavailability}{\endlist\egroup} |
2436 | 2450 | \fi
|
2437 | 2451 | \generateCommand{authorcontribution}{\endlist\egroup}
|
2438 | 2452 | \generateCommand{sampleavailability}{\endlist\egroup}
|
|
2442 | 2456 | \generateCommand{disclaimer} {\endlist\egroup}
|
2443 | 2457 | \generateCommand{sistatement} {\endlist\egroup}
|
2444 | 2458 | \generateCommand{dosupplement} {\endlist\egroup}
|
2445 |
| -\generateCommand{financialsupport} {\endlist\egroup} |
| 2459 | +\generateCommand{financialsupport} {\endlist\egroup} |
2446 | 2460 | \generateCommand{reviewstatement} {\endlist\egroup}
|
| 2461 | +\long\def\specialsection#1#2{% |
| 2462 | + \expandafter\def\csname specialsection-#1name\endcsname{#1}% |
| 2463 | + \expandafter\ifx\csname specialsection-#1name\endcsname\@empty |
| 2464 | + \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.}% |
| 2465 | + \else |
| 2466 | + \generateCommand{specialsection-#1} {\endlist\egroup}% |
| 2467 | + \csname specialsection-#1\endcsname{#2}% |
| 2468 | + \fi} |
2447 | 2469 |
|
2448 | 2470 | \generateCommand{acknowledgement} {} \def\endacknowledgement{\endlist\egroup}
|
2449 | 2471 | \generateCommand{acknowledgements} {} \def\endacknowledgements{\endlist\egroup}
|
|
0 commit comments