Skip to content

Commit 3105dd6

Browse files
RLumSKcderv
andauthored
Update Copernicus Publication template to version 6.3 (#432)
Co-authored-by: christophe dervieux <christophe.dervieux@gmail.com>
1 parent 320d850 commit 3105dd6

File tree

7 files changed

+70
-24
lines changed

7 files changed

+70
-24
lines changed

NEWS.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@
1010

1111
- `bioinformatics_article()` now separates `manuscript_type` (e.g., Applications note, Original article) and `subject_section` (e.g. Genome analysis, Phylogenetics) in template and skeleton (thanks, @stephenturner, #415)
1212

13+
- Update Copernicus Publications template to version 6.3 from 2021-07-08
14+
1315
# rticles 0.20
1416

15-
- `lipics_article()` skeleton now sets option `bookdown.theorem.preamble` to FALSE to work with `bookdown::pdf_book()` and avoid conflicst in theorem environment definition. This requires **bookdown** 0.23 or higher (#392).
17+
- `lipics_article()` skeleton now sets option `bookdown.theorem.preamble` to FALSE to work with `bookdown::pdf_book()` and avoid conflicts in theorem environment definition. This requires **bookdown** 0.23 or higher (#392).
1618

1719
- `oup_article()` template now largely compatible to that of `elsevier_article()` (thanks, @dmkaplan2000, #403)
1820

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. \code{acknowledgements}, \code{competinginterests}, or \code{authorcontribution}, must be declared using the respective properties of the R Markdown header - see skeleton file.
1515
#'
16-
#' \strong{Version:} Based on \code{copernicus_package.zip} in the version 6.2, 15 January 2021, using \code{copernicus.cls} in version 9.25.
16+
#' \strong{Version:} Based on \code{copernicus_package.zip} in the version 6.3, 8 July 2021, using \code{copernicus.cls} in version 9.32, 7 July 2021.
1717
#'
1818
#' \strong{Copernicus journal abbreviations:} You can use the function \code{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_6_2.txt renamed to inst/rmarkdown/templates/copernicus/resources/README_copernicus_package_6_3.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
File: README_copernicus_package_6_2.txt
1+
File: README_copernicus_package_6_3.txt
22
-------------------------------------------------------------------------
33
This is a README file for the Copernicus Publications LaTeX Macro Package
4-
copernicus_package.zip in the version 6.2, 15 January 2021
4+
copernicus_package.zip in the version 6.3, 8 July 2021
55
-------------------------------------------------------------------------
66
It consists of several files, each with its separate copyright.
77
This specific archive is collected for journals published by
@@ -15,8 +15,8 @@ URL: https://publications.copernicus.org
1515

1616

1717
Content:
18-
- copernicus.cls: The LaTeX2e class file designed for Copernicus Publications journals. Current Version 9.25, 12 January 2021
19-
- copernicus.cfg: The configuration file containing journal-specific information used by the class file. Last update 15 January 2021
18+
- copernicus.cls: The LaTeX2e class file designed for Copernicus Publications journals. Current Version 9.32, 7 July 2021
19+
- copernicus.cfg: The configuration file containing journal-specific information used by the class file. Last update 8 July 2021
2020
- copernicus.bst: The bibliographic style file for BibTeX. Current Version 1.3, January 2021
2121
- pdfscreencop.sty / pdfscreen.sty
2222
- template.tex: A LaTeX template in journal style.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515

1616

17-
%% Journal abbreviations (please use the same for discussion papers and final revised papers)
17+
%% Journal abbreviations (please use the same for preprints and final revised papers)
1818

1919

2020
% Advances in Geosciences (adgeo)

inst/rmarkdown/templates/copernicus/skeleton/copernicus.cfg

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
\newif\ifprp \DeclareOption{prp} {\@sansseriffacetrue\@sansserifheadertrue\@abstractcenteredtrue \@bartrue \prptrue}
22
\newif\ifgtes \DeclareOption{gtes} {\@sansseriffacetrue\@sansserifheadertrue\@abstractcenteredtrue \@bartrue \gtestrue}
33
\newif\ifcopyediting \DeclareOption{copyediting}{\copyeditingtrue\@noreftrue}
4-
\newif\ifpolf \DeclareOption{polf}{\@sansseriffacetrue\@sansserifheadertrue\polftrue}
4+
\newif\ifpolf \DeclareOption{polf}{\@sansseriffacetrue\@sansserifheadertrue\@bartrue\polftrue}
55
\newif\ifjbji \DeclareOption{jbji}{\@sansseriffacetrue\@sansserifheadertrue\@abstractcenteredtrue\@bartrue\jbjitrue}
66
\newif\ifmr \DeclareOption{mr}{\@sansseriffacetrue\@sansserifheadertrue\@abstractcenteredtrue\@bartrue\@twostagejnltrue\mrtrue}
77
\DeclareOption{mrd}{\@sansseriffacetrue\@sansserifheadertrue\@abstractcenteredtrue\@bartrue\@stage@finalfalse\mrtrue}
@@ -35,7 +35,8 @@
3535
\newif\ifasr \DeclareOption{asr}{\@sansseriffacetrue\@sansserifheadertrue\@abstractcenteredtrue\@bartrue\asrtrue}
3636
\newif\ifms \DeclareOption{ms}{\@sansseriffacetrue\@sansserifheadertrue\@abstractcenteredtrue\mstrue}
3737
\newif\ifjsss \DeclareOption{jsss}{\@sansseriffacetrue\@sansserifheadertrue\@abstractcenteredtrue\@bartrue\jssstrue}
38-
\newif\ifhgss \DeclareOption{hgss}{\@sansseriffacetrue\@sansserifheadertrue\@abstractcenteredtrue\@bartrue\hgsstrue}
38+
\newif\ifhgss \DeclareOption{hgss}{\@sansseriffacetrue\@sansserifheadertrue\@abstractcenteredtrue\@bartrue\@twostagejnltrue\hgsstrue}
39+
\DeclareOption{hgssd}{\@sansseriffacetrue\@sansserifheadertrue\@abstractcenteredtrue\@bartrue\@stage@finalfalse\hgsstrue}
3940
\newif\ifgh \DeclareOption{gh}{\@sansseriffacetrue\@sansserifheadertrue\@abstractcenteredtrue\@bartrue\ghtrue}
4041
\newif\ifesurf \DeclareOption{esurf}{\@sansseriffacetrue\@sansserifheadertrue\@abstractcenteredtrue\@bartrue\@twostagejnltrue\esurftrue}
4142
\DeclareOption{esurfd}{\@sansseriffacetrue\@sansserifheadertrue\@abstractcenteredtrue\@bartrue\@stage@finalfalse\esurftrue}
@@ -593,12 +594,24 @@
593594
\def\@journalnameshortlower{hgss}
594595
\def\@journalstartyear{2010}
595596
\def\@sentence{Published by Copernicus Publications.}
596-
\def\@journalurl{www.hist-geo-space-sci.net}
597-
\def\@journallogo{\includegraphics{HGSS_Logo.pdf}}
598-
\definecolor{textcol}{rgb}{0.0,0.443,0.706}
599-
\definecolor{bgcol}{rgb}{1,1,1}
600-
\definecolor{barcol}{rgb}{1.0,1.0,1.0}
601-
\definecolor{rulecol}{rgb}{0.0,0.443,0.706}
597+
\if@stage@final
598+
\def\@journalurl{www.hist-geo-space-sci.net}
599+
\def\@journallogo{\includegraphics{HGSS_Logo.pdf}}
600+
\definecolor{textcol}{rgb}{0.0,0.443,0.706}
601+
\definecolor{bgcol}{rgb}{1,1,1}
602+
\definecolor{barcol}{rgb}{1.0,1.0,1.0}
603+
\definecolor{rulecol}{rgb}{0.0,0.443,0.706}
604+
\else
605+
\def\@journalurl{https://hgss.copernicus.org/preprints/preprints.html}
606+
\def\@journallogo{\includegraphics{HGSSD_Logo.pdf}}
607+
\def\@sentenceDiscussion{This preprint is/has been under review for the journal History of Geo- and Space Sciences (HGSS). Please refer to the corresponding final paper in HGSS if available.}
608+
\if@cop@home
609+
\definecolor{journalname}{rgb}{1.0,1.0,1.0}
610+
\definecolor{buttonbackground}{rgb}{1.0,1.0,1.0}
611+
\definecolor{paneltext}{rgb}{1.0,1.0,1.0}
612+
\definecolor{buttontext}{rgb}{1.0,1.0,1.0}
613+
\fi
614+
\fi
602615
\fi
603616
\ifjsss%classical
604617
\def\@journalname{Journal of Sensors and Sensor Systems}
@@ -1027,7 +1040,7 @@
10271040
\def\@journalnameshort{JBJI}
10281041
\def\@journalnameshortlower{jbji}
10291042
\def\@journalstartyear{2016}
1030-
\def\@sentence{Published by Copernicus Publications on behalf of of EBJIS and MSIS.}
1043+
\def\@sentence{Published by Copernicus Publications on behalf of EBJIS and MSIS.}
10311044
\def\@journalurl{https://jbji.copernicus.org/}
10321045
\def\@journallogo{\includegraphics{JBJI_Logo.pdf}}
10331046
\definecolor{textcol}{rgb}{0.161,0.337,0.361}
@@ -1040,7 +1053,7 @@
10401053
\def\@journalnameabbreviation{Polarforschung}
10411054
\def\@journalnameshort{POLF}
10421055
\def\@journalnameshortlower{polf}
1043-
\def\@journalstartyear{2021}
1056+
\def\@journalstartyear{1931}
10441057
\def\@sentence{Published by Copernicus Publications on behalf of the Deutsche Gesellschaft für Polarforschung e.V.}
10451058
\def\@journalurl{https://polf.copernicus.org}
10461059
\def\@journallogo{\includegraphics{POLF_Logo.pdf}}

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

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
%% -----------------------------------------------------------------
1717
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
1818
\ProvidesClass{copernicus}
19-
[2021/01/12 9.25 Copernicus papers]
19+
[2021/07/07 9.32 Copernicus papers]
2020
\frenchspacing
2121
\clubpenalty10000
2222
\widowpenalty10000
@@ -437,8 +437,9 @@
437437
\fi
438438
\ifx\specialp@perstring\@undefined\else-\def\1{Corrigendum}\ifx\specialp@perstring\1corrigendum\else editorial-note\fi\fi
439439
\\
440-
\@journalcopyright\\[1mm]
441-
\includegraphics[width=1.5cm]{CreativeCommons_Attribution_License.png}}%
440+
\@journalcopyright
441+
%\includegraphics[width=1.5cm]{CreativeCommons_Attribution_License.png}%
442+
}%
442443
\hfill
443444
\setbox\z@\hbox{\@journallogo}%
444445
\@tempdima\ht\z@\advance\@tempdima-8\p@\lower\@tempdima\box\z@\\
@@ -1032,7 +1033,6 @@
10321033
\fi
10331034
\fi
10341035
}
1035-
10361036
\if@stage@final
10371037
\ifnum\if@abstractcentered1\else\if@abstractindented1\else0\fi\fi=1\relax%modern oder indented
10381038
\long\def\abstract{%
@@ -1184,6 +1184,30 @@
11841184
\RequirePackage{fontawesome5}
11851185
\RequirePackage{fontawesome}
11861186
\fi
1187+
\usepackage{upquote}%% #7510
1188+
\usepackage{regexpatch}
1189+
\def\active@text@prime{\ifin@texttt\textquotesingle\else'\fi}
1190+
\def\active@math@prime{^\bgroup\prim@s}
1191+
\newif\ifin@texttt
1192+
\regexpatchcmd{\pr@m@s}{\'}{\cA\'}{}{}
1193+
\xapptocmd{\ttfamily}{\in@texttttrue}{}{}
1194+
\begingroup\lccode`\~=`\'
1195+
\lowercase{\endgroup\protected\def~}{%
1196+
\ifmmode
1197+
\expandafter\active@math@prime
1198+
\else
1199+
\expandafter\active@text@prime
1200+
\fi}
1201+
\AtBeginDocument{\catcode`\'=\active}
1202+
\ifx\xmltexversion\@undefined
1203+
\begingroup
1204+
\obeylines\obeyspaces%
1205+
\gdef\@resetactivechars{%
1206+
\def^^M{\@activechar@info{EOL}\space}%
1207+
\def {\@activechar@info{space}\space}%
1208+
}%
1209+
\endgroup
1210+
\fi
11871211
\ifx\xmltexversion\@undefined
11881212
\RequirePackage[utf8]{inputenc}
11891213
\def\strip@x#1x#2\@nil{#1}%
@@ -1201,6 +1225,7 @@
12011225
\def\@tempa{french}\ifx\bbl@main@language\@tempa
12021226
\StandardLayout
12031227
%% Switch to quotation marks with additional horizontal spacing
1228+
\let\update@frenchlists\relax
12041229
\bbl@frenchguillemets
12051230
\global\let\flqq\og \global\let\frqq\fg
12061231
\ifx\xmltexversion\@undefined\else
@@ -2200,7 +2225,7 @@
22002225
\fi
22012226
\fi
22022227
%% some of the following commands are only active if \@cop@hometrue
2203-
\def\texlicencestatement#1{\gdef\@texlicencestatement{#1}}%
2228+
\def\texlicencestatement#1#2{\gdef\@texlicencestatement{#1}\gdef\@texlicencelogo{#2}}%
22042229
\def\@texlicencestatement{\CopernicusError{Please add \string\texlicencestatement}{You must provide the licence statement before \string\maketitle"}}
22052230
\def\received#1{\if@cop@home\def\@recvd{#1}\fi} \def\@recvd{}%+1,+2,+d
22062231
\def\pubdiscuss#1{\if@cop@home\def\@pubdiscuss{#1}\fi} \def\@pubdiscuss{}%+1,+2,-d -- twostagejnltrue
@@ -2584,18 +2609,24 @@
25842609
\fi
25852610
\def\iftwocol#1#2{\if@twocolumn#1\else #2\fi}
25862611
\let\hack\@firstofone
2612+
\let\notforhtml\@firstofone
25872613
\newcommand\@journalname{Journalname}
25882614
\newcommand\@journalnameabbreviation{J. Name}
25892615
\newcommand\@journalnameshort{JN}
25902616
\newcommand\@journalnameshortlower{jn}
25912617
\newcommand\@journalurl{www.jn.net}
25922618
\newcommand\@journalpublisher{Copernicus Publications}
25932619
\newcommand\@journalcopyright{%
2594-
\copyright\ Author(s)\ \@cyear. %
2620+
%\copyright\ Author(s)\ \@cyear. %
25952621
\if!\@texlicencestatement!%
25962622
\CopernicusError{\string\texlicencestatement{} must have content}{Say, e.g., "\string\texlicencestatement{CC Attribution 4.0 License.}"}%
25972623
\else
25982624
\@texlicencestatement
2625+
\if!\@texlicencelogo!\else
2626+
\def\@optarg{width=1.5cm}%
2627+
\\[1mm]
2628+
\expandafter\expandafter\expandafter\includegraphics\expandafter\expandafter\expandafter[\expandafter\@optarg\expandafter]\expandafter{\@texlicencelogo}
2629+
\fi
25992630
\fi}
26002631
\newcommand\@journalstartyear{2013}
26012632
\newcommand\@journallogo{Journallogo}

man/copernicus_article.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)