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 template from 7.3 to 7.5 #551

Merged
merged 2 commits into from
Nov 3, 2023
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
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
- The format is now only compatible with `natbib` citation processor when Pandoc 3.1.7+ is used, because Frontiers documentclass requires usage of `natbib` and it conflicts with pandoc Citeproc.

- Update `mnras_article()` and `lncs_article()` to work with the Pandoc 3.1.7+ citeproc change.

## BUG FIXES

- Update Copernicus Publications template to version 7.5 from 2023-10-20 (@RLumSK, #551).

# rticles 0.25

## BREAKING CHANGES
Expand Down
2 changes: 1 addition & 1 deletion R/copernicus_article.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#'
#' 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.
#'
#' **Version:** Based on `copernicus_package.zip` in the version 7.3, 15 March 2023, using `copernicus.cls` in version 10.1.4, 5 December 2022.
#' **Version:** Based on `copernicus_package.zip` in the version 7.5, 20 October 2023, using `copernicus.cls` in version 10.1.9, 16 October 2023.
#'
#' **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.
#'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
File: README_copernicus_package_7_3.txt
File: README_copernicus_package_7_5.txt
-------------------------------------------------------------------------
This is a README file for the Copernicus Publications LaTeX Macro Package
copernicus_package.zip in the version 7.3, 15 March 2023
copernicus_package.zip in the version 7.5, 20 October 2023
-------------------------------------------------------------------------
It consists of several files, each with its separate copyright.
This specific archive is collected for journals published by
Expand All @@ -15,8 +15,8 @@ URL: https://publications.copernicus.org


Content:
- copernicus.cls: The LaTeX2e class file designed for Copernicus Publications journals. Current Version 10.1.4, 5 December 2022
- copernicus.cls: The LaTeX2e class file designed for Copernicus Publications journals. Current Version 10.1.9, 16 October 2023
- copernicus.cfg: The configuration file containing journal-specific information used by the class file. Last update 15 March 2023
- copernicus.bst: The bibliographic style file for BibTeX. Current Version 1.4, March 2022
- copernicus.bst: The bibliographic style file for BibTeX. Current Version 1.6, 20 October 2023
- pdfscreencop.sty / pdfscreen.sty
- template.tex: A LaTeX template in journal style.
105 changes: 73 additions & 32 deletions inst/rmarkdown/templates/copernicus/skeleton/copernicus.bst
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
%%
%% This is file `copernicus.bst', version 1.4 (March 2022),
%% This is file `copernicus.bst', version 1.6 (October 2023)
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% merlin.mbs (with options: `head,ay,nat,seq-key,nm-rev,ed-rev,keyxyr,blkyear,dt-end,note-yr,atit-u,jttl-rm,vnum-x,volp-com,pgsep-s,num-xser,btit-rm,bt-rm,agu-doi,doi,edby,blk-com,au-col,in-col,pp,ed,abr,xedn,jabr,url,url-nt,{}')
%% physjour.mbs (with options: `ay,nat,seq-key,nm-rev,ed-rev,keyxyr,blkyear,dt-end,note-yr,atit-u,jttl-rm,vnum-x,volp-com,pgsep-s,num-xser,btit-rm,bt-rm,agu-doi,doi,edby,blk-com,au-col,in-col,pp,ed,abr,xedn,jabr,url,url-nt,{}')
%% geojour.mbs (with options: `ay,nat,seq-key,nm-rev,ed-rev,keyxyr,blkyear,dt-end,note-yr,atit-u,jttl-rm,vnum-x,volp-com,pgsep-s,num-xser,btit-rm,bt-rm,agu-doi,doi,edby,blk-com,au-col,in-col,pp,ed,abr,xedn,jabr,url,url-nt,{}')
%% merlin.mbs (with options: `tail,ay,nat,seq-key,nm-rev,ed-rev,keyxyr,blkyear,dt-end,note-yr,atit-u,jttl-rm,vnum-x,volp-com,pgsep-s,num-xser,btit-rm,bt-rm,agu-doi,doi,edby,blk-com,au-col,in-col,pp,ed,abr,xedn,jabr,url,url-nt,{}')
%% merlin.mbs (with options: `head,ay,nat,seq-key,nm-rev,ed-rev,keyxyr,blkyear,dt-end,note-yr,atit-u,jttl-rm,vnum-x,volp-com,pgsep-s,num-xser,btit-rm,bt-rm,isbn,issn,doi,url-doi,edby,blk-com,au-col,in-col,pp,ed,abr,xedn,jabr,url,url-nt,nfss,')
%% ----------------------------------------
%% *** For journals of Copernicus Publications ***
%%
%% Copyright 1994-2006 Patrick W Daly
%% Copyright 1994-2011 Patrick W Daly
% ===============================================================
% IMPORTANT NOTICE:
% This bibliographic style (bst) file has been generated from one or
Expand All @@ -23,7 +20,7 @@
% version 1 of the License, or any later version.
% ===============================================================
% Name and version information of the main mbs file:
% \ProvidesFile{merlin.mbs}[2006/02/15 4.16 (PWD, AO, DPC)]
% \ProvidesFile{merlin.mbs}[2011/11/18 4.33 (PWD, AO, DPC)]
% For use with BibTeX version 0.99a or later
%-------------------------------------------------------------------
% This bibliography style file is intended for texts in ENGLISH
Expand All @@ -48,14 +45,16 @@
% \citep*{key} ==>> (Jones, Baker, and Smith, 1990)
% \citep[chap. 2]{key} ==>> (Jones et al., 1990, chap. 2)
% \citep[e.g.][]{key} ==>> (e.g. Jones et al., 1990)
% \citep[e.g.][p. 32]{key} ==>> (e.g. Jones et al., p. 32)
% \citealp{key} ==>> Jones et al., 1990
% \citep[e.g.][p. 32]{key} ==>> (e.g. Jones et al., 1990, p. 32)
% \citeauthor{key} ==>> Jones et al.
% \citeauthor*{key} ==>> Jones, Baker, and Smith
% \citeyear{key} ==>> 1990
%---------------------------------------------------------------------


%% Rolf Sander (2023):
%% - ISBN also for phdthesis and techreport
%% - urlprefix is now empty

ENTRY
{ address
author
Expand All @@ -67,6 +66,8 @@ ENTRY
eid
howpublished
institution
isbn
issn
journal
key
month
Expand Down Expand Up @@ -196,7 +197,7 @@ FUNCTION {field.or.null}
FUNCTION {emphasize}
{ duplicate$ empty$
{ pop$ "" }
{ "{\em " swap$ * "\/}" * }
{ "\emph{" swap$ * "}" * }
if$
}
FUNCTION {tie.or.space.prefix}
Expand Down Expand Up @@ -502,8 +503,7 @@ MACRO {ww} {"Weatherwise"}
MACRO {wmob} {"WMO Bull."}
MACRO {zeitmet} {"Z. Meteorol."}
% End module: geojour.mbs
%% Copyright 1994-2006 Patrick W Daly
MACRO {acmcs} {"ACM Comput. Surv."}
%% Copyright 1994-2006 Patrick W DalyMACRO {acmcs} {"ACM Comput. Surv."}

MACRO {acta} {"Acta Inf."}

Expand Down Expand Up @@ -659,6 +659,24 @@ FUNCTION {format.editors}
}
if$
}
FUNCTION {format.isbn}
{ isbn "isbn" bibinfo.check
duplicate$ empty$ 'skip$
{
"ISBN " swap$ *
}
if$
}

FUNCTION {format.issn}
{ issn "issn" bibinfo.check
duplicate$ empty$ 'skip$
{
"ISSN " swap$ *
}
if$
}

FUNCTION {format.doi}
{ doi "doi" bibinfo.check
duplicate$ empty$ 'skip$
Expand Down Expand Up @@ -1138,7 +1156,7 @@ FUNCTION {article}
"journal" bibinfo.check
"journal" output.check
format.vol.num.pages output
format.doi output
format.doi output
}
{ format.article.crossref output.nonnull
format.pages output
Expand Down Expand Up @@ -1174,6 +1192,7 @@ FUNCTION {book}
}
if$
format.edition output
format.isbn output
format.doi output
format.note output
format.date "year" output.check
Expand All @@ -1187,6 +1206,7 @@ FUNCTION {booklet}
format.title "title" output.check
howpublished "howpublished" bibinfo.check output
address "address" bibinfo.check output
format.isbn output
format.doi output
format.note output
format.date "year" output.check
Expand Down Expand Up @@ -1222,6 +1242,10 @@ FUNCTION {inbook}
}
if$
format.edition output
crossref missing$
{ format.isbn output }
'skip$
if$
format.doi output
format.note output
format.date "year" output.check
Expand All @@ -1241,6 +1265,7 @@ FUNCTION {incollection}
format.chapter.pages output
format.publisher.address output
format.edition output
format.isbn output
}
{ format.incoll.inproc.crossref output.nonnull
format.chapter.pages output
Expand Down Expand Up @@ -1268,6 +1293,8 @@ FUNCTION {inproceedings}
format.publisher.address output
}
if$
format.isbn output
format.issn output
}
{ format.incoll.inproc.crossref output.nonnull
format.pages output
Expand Down Expand Up @@ -1332,6 +1359,8 @@ FUNCTION {phdthesis}
bbl.phdthesis format.thesis.type output.nonnull
school "school" bibinfo.warn output
address "address" bibinfo.check output
format.isbn output
format.issn output
format.doi output
format.note output
format.date "year" output.check
Expand All @@ -1352,6 +1381,8 @@ FUNCTION {proceedings}
format.publisher.address output
}
if$
format.isbn output
format.issn output
format.doi output
format.note output
format.date "year" output.check
Expand All @@ -1368,6 +1399,8 @@ FUNCTION {techreport}
format.tr.number output.nonnull
institution "institution" bibinfo.warn output
address "address" bibinfo.check output
format.isbn output
format.issn output
format.doi output
format.note output
format.date "year" output.check
Expand Down Expand Up @@ -1504,14 +1537,15 @@ FUNCTION {sort.format.names}
{
" " *
namesleft #1 = t "others" = and
{ "zzzzz" * }
{ numnames #2 > nameptr #2 = and
{ "zz" * year field.or.null * " " * }
'skip$
if$
t sortify *
{ "zzzzz" 't := }
'skip$
if$
numnames #2 > nameptr #2 = and
{ "zz" * year field.or.null * " " *
}
'skip$
if$
t sortify *
}
{ t sortify * }
if$
Expand Down Expand Up @@ -1590,28 +1624,38 @@ FUNCTION {presort}
'sort.label :=
sort.label
*
" "
*
cite$
*
" " * cite$ *
#1 entry.max$ substring$
'sort.key$ :=
}

ITERATE {presort}
SORT
STRINGS { last.label next.extra }
INTEGERS { last.extra.num number.label }
INTEGERS { last.extra.num last.extra.num.extended last.extra.num.blank number.label }
FUNCTION {initialize.extra.label.stuff}
{ #0 int.to.chr$ 'last.label :=
"" 'next.extra :=
#0 'last.extra.num :=
"a" chr.to.int$ #1 - 'last.extra.num.blank :=
last.extra.num.blank 'last.extra.num.extended :=
#0 'number.label :=
}
FUNCTION {forward.pass}
{ last.label label =
{ last.extra.num #1 + 'last.extra.num :=
last.extra.num int.to.chr$ 'extra.label :=
last.extra.num "z" chr.to.int$ >
{ "a" chr.to.int$ 'last.extra.num :=
last.extra.num.extended #1 + 'last.extra.num.extended :=
}
'skip$
if$
last.extra.num.extended last.extra.num.blank >
{ last.extra.num.extended int.to.chr$
last.extra.num int.to.chr$
* 'extra.label := }
{ last.extra.num int.to.chr$ 'extra.label := }
if$
}
{ "a" chr.to.int$ 'last.extra.num :=
"" 'extra.label :=
Expand Down Expand Up @@ -1643,10 +1687,7 @@ FUNCTION {bib.sort.order}
*
year field.or.null sortify
*
" "
*
cite$
*
" " * cite$ *
#1 entry.max$ substring$
'sort.key$ :=
}
Expand All @@ -1661,9 +1702,9 @@ FUNCTION {begin.bib}
write$ newline$
"\providecommand{\natexlab}[1]{#1}"
write$ newline$
"\providecommand{\url}[1]{{\tt #1}}"
"\providecommand{\url}[1]{\texttt{#1}}"
write$ newline$
"\providecommand{\urlprefix}{URL }"
"\providecommand{\urlprefix}{}"
write$ newline$
"\expandafter\ifx\csname urlstyle\endcsname\relax"
write$ newline$
Expand Down
Loading