summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/gammas
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-09-23 03:03:31 +0000
committerNorbert Preining <norbert@preining.info>2020-09-23 03:03:31 +0000
commit6639178e654b36f7065a0cdbab783d687550e896 (patch)
tree409157d10a0e6d3d9c828b926a60d23195eb4abb /macros/latex/contrib/gammas
parent1a37a060977fa92be44dcee0fb99c59e46023afe (diff)
CTAN sync 202009230303
Diffstat (limited to 'macros/latex/contrib/gammas')
-rw-r--r--macros/latex/contrib/gammas/README8
-rw-r--r--macros/latex/contrib/gammas/example_bibliography.bib18
-rw-r--r--macros/latex/contrib/gammas/gammas.cls84
-rw-r--r--macros/latex/contrib/gammas/gammas_template.tex37
4 files changed, 104 insertions, 43 deletions
diff --git a/macros/latex/contrib/gammas/README b/macros/latex/contrib/gammas/README
index 0bf325af8d..36ffce4d29 100644
--- a/macros/latex/contrib/gammas/README
+++ b/macros/latex/contrib/gammas/README
@@ -1,16 +1,16 @@
This directory contains the LaTeX2e class `gammas'.
- Version: 1.0; February 11, 2019
+ Version: 1.1; September 22, 2020
This is the official document class for typesetting journal articles
-for GAMM Archive for Students (GAMMAS), the open-access online yournal
+for GAMM Archive for Students (GAMMAS), the open-access online journal
run by the GAMM Juniors.
A small template (gammas_template.tex) is provided to show the usage
-of the documentclass. For more details we refer to the educational
+of the documentclass. For more details, we refer to the educational
sample article 'How to write an article for GAMMAS and a longer title'
available at the journal webpage under
https://doi.org/10.14464/gammas.v1i1.417
-Copyright 2019, GAMM Juniors. This ma­te­rial is sub­ject to the LaTeX
+Copyright 2020, GAMM Juniors. This ma­te­rial is sub­ject to the LaTeX
Project Public Li­cense 1.3c.
diff --git a/macros/latex/contrib/gammas/example_bibliography.bib b/macros/latex/contrib/gammas/example_bibliography.bib
index 0ceaaed622..ae038bed6f 100644
--- a/macros/latex/contrib/gammas/example_bibliography.bib
+++ b/macros/latex/contrib/gammas/example_bibliography.bib
@@ -1,12 +1,14 @@
-@book{higham1998handbook,
- title={Handbook of Writing for the Mathematical Sciences},
- author={Higham, N.J.},
- isbn={978-0-898714-20-3},
+@book{higham2020handbook,
+ author = {Nicholas J. Higham},
+ title = {Handbook of Writing for the Mathematical Sciences},
+ publisher = {Society for Industrial and Applied Mathematics},
series={Miscellaneous Titles in Applied Mathematics Series},
- year={1998},
- publisher={Society for Industrial and Applied Mathematics},
- doi={10.1137/1.9780898719550}
-}
+ address = {Philadelphia, PA, USA},
+ edition = {Third},
+ year = {2020},
+ isbn = {978-1-611976-09-0},
+ pages = {xxi+353}
+ }
@article{fehr2016best,
title={Best practices for replicability, reproducibility and reusability of computer-based experiments exemplified by model reduction software},
diff --git a/macros/latex/contrib/gammas/gammas.cls b/macros/latex/contrib/gammas/gammas.cls
index 1da7df12d1..ca9f93640b 100644
--- a/macros/latex/contrib/gammas/gammas.cls
+++ b/macros/latex/contrib/gammas/gammas.cls
@@ -1,8 +1,8 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% Copyright of Matthias Bartelt, Benjamin Unger and Dominik Kern %
-% email: dominik.kern@mb.tu-chemnitz.de %
-% This work may be distributed and/or modified under the %
-% conditions of the LaTeX Project Public License version 1.3c %
+% Copyright of Matthias Bartelt, Benjamin Unger and Dominik Kern %
+% email cf. website https://www.bibliothek.tu-chemnitz.de/ojs/index.php/GAMMAS/about/contact %
+% This work may be distributed and/or modified under the %
+% conditions of the LaTeX Project Public License version 1.3c %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -12,7 +12,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{gammas}[2019/02/11 v1.0 class definition for GAMM Archiv for Students]
+\ProvidesClass{gammas}[2020/09/22 v1.1 class definition for GAMM Archiv for Students]
\LoadClass[11pt, twoside, numbers=noenddot]{scrartcl}
@@ -38,6 +38,7 @@
\RequirePackage{amsthm}
\RequirePackage{mathtools}
\RequirePackage{mathrsfs}
+\RequirePackage{subdepth} % all subscripts at the same position
% graphics/color packages
\RequirePackage{graphicx}
@@ -56,7 +57,12 @@
\setitemize{parsep=0pt,itemsep=0pt}
\setenumerate{parsep=0pt,itemsep=0pt}
\setdescription{parsep=0pt,itemsep=0pt,labelindent=1em,font=\textit}
-\RequirePackage{lastpage}
+\RequirePackage[margin=10pt,font=small,labelfont=bf,labelsep=endash]{caption}
+
+% lastpage can be referred to with this label instead of loading package lastpage
+\AtEndDocument{%
+ \label{LastPage}%
+}
% Packages for units
\RequirePackage[binary-units=true]{siunitx}
@@ -166,6 +172,13 @@
\def\gammauthore#1{\def\GAMMAUTHORE{#1}} \def\GAMMAUTHORE{}
\def\gammauthorf#1{\def\GAMMAUTHORF{#1}} \def\GAMMAUTHORF{}
+\def\gammauthoraorcid#1{\def\GAMMAUTHORAORCID{#1}} \def\GAMMAUTHORAORCID{}
+\def\gammauthorborcid#1{\def\GAMMAUTHORBORCID{#1}} \def\GAMMAUTHORBORCID{}
+\def\gammauthorcorcid#1{\def\GAMMAUTHORCORCID{#1}} \def\GAMMAUTHORCORCID{}
+\def\gammauthordorcid#1{\def\GAMMAUTHORDORCID{#1}} \def\GAMMAUTHORDORCID{}
+\def\gammauthoreorcid#1{\def\GAMMAUTHOREORCID{#1}} \def\GAMMAUTHOREORCID{}
+\def\gammauthorforcid#1{\def\GAMMAUTHORFORCID{#1}} \def\GAMMAUTHORFORCID{}
+
\def\gammaddressa#1{\def\GAMMADDRESSA{#1}} \def\GAMMADDRESSA{}
\def\gammaddressb#1{\def\GAMMADDRESSB{#1}} \def\GAMMADDRESSB{}
\def\gammaddressc#1{\def\GAMMADDRESSC{#1}} \def\GAMMADDRESSC{}
@@ -176,10 +189,20 @@
\newcommand{\inst}[1]{\textsuperscript{\textit{#1}}}
\newcommand{\corauth}{\textsuperscript{,$\star$}}
-
\def\gammauthorhead#1{\def\GAMMAUTHORHEAD{#1}} \def\GAMMAUTHORHEAD{}
\def\gammcorrespondence#1{\def\GAMMCORRESPONDENCE{#1}} \def\GAMMCORRESPONDENCE{}
-\def\gammsupervisor#1{\def\GAMMSUPERVISOR{#1}} \def\GAMMSUPERVISOR{}
+
+\def\gammsupervisor{\@ifnextchar[{\@gammsupervisors}{\@gammsupervisor}}
+\def\@gammsupervisor#1{\def\GAMMSUPERVISOR{#1}}
+\def\@gammsupervisors[#1]#2{\@gammsupervisortext{#1}\def\GAMMSUPERVISOR{#2}}
+\def\GAMMSUPERVISOR{}
+\def\GAMMSUPERVISORTEXT{supervisor}
+\newcommand{\@gammsupervisortext}[1]{%
+ \ifthenelse{\equal{#1}{multiple}}%
+ {\def\GAMMSUPERVISORTEXT{supervisors}}
+ {}
+ }
+
\def\gammotherpublication#1{\def\GAMMOTHERPUBLICATION{#1}} \def\GAMMOTHERPUBLICATION{}
\def\gammbibfilename#1{\def\GAMMBIBFILENAME{#1}} \def\GAMMBIBFILENAME{mybibfile}
@@ -192,7 +215,8 @@
% definition for title this option must be set
\newcommand*{\gammtitle}[1]{\def\gammtitle{#1}}
-
+% command for ORCiD - ORCiD logo is included by publisher
+\newcommand{\orcid}[1]{\,\href{https://orcid.org/#1}{$\bigcirc$}\,}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
@@ -203,7 +227,7 @@
\newenvironment{gammabstract}{\indent\textbf{Abstract:}\begin{itshape}}{\end{itshape}\par}
\newenvironment{gammkeywords}{\indent\textbf{Keywords:}}{\par}
\newenvironment{gammacknowledgement}{\bigskip\indent\textbf{Acknowledgements:}}{\par}
-\newenvironment{gammacode}{\bigskip\indent\textbf{Code Availability:}}{\par}
+\newenvironment{gammacode}{\bigskip\indent\hypertarget{gammasSec:codeAvailability}{\textbf{Code Availability:}}}{\par}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
@@ -286,26 +310,50 @@
\begin{center}%
{\LARGE \textbf{\gammtitle{}}\par}%
\vspace{1cm}%
- \GAMMAUTHORA{}%
+ \GAMMAUTHORA{}%
+ \ifx \GAMMAUTHORAORCID\empty%
+ \else%
+ \orcid{\GAMMAUTHORAORCID}
+ \fi%
\ifx\GAMMAUTHORB\empty%
\else%
, \GAMMAUTHORB{}%
+ \ifx \GAMMAUTHORBORCID\empty%
+ \else%
+ \orcid{\GAMMAUTHORBORCID}
+ \fi%
\fi%
\ifx\GAMMAUTHORC\empty%
\else%
, \GAMMAUTHORC{}%
+ \ifx \GAMMAUTHORCORCID\empty%
+ \else%
+ \orcid{\GAMMAUTHORCORCID}
+ \fi%
\fi%
\ifx\GAMMAUTHORD\empty%
\else%
, \GAMMAUTHORD{}%
+ \ifx \GAMMAUTHORDORCID\empty%
+ \else%
+ \orcid{\GAMMAUTHORDORCID}
+ \fi%
\fi%
\ifx\GAMMAUTHORE\empty%
\else%
, \GAMMAUTHORE{}%
+ \ifx \GAMMAUTHOREORCID\empty%
+ \else%
+ \orcid{\GAMMAUTHOREORCID}
+ \fi%
\fi%
\ifx\GAMMAUTHORF\empty%
\else%
, \GAMMAUTHORF{}%
+ \ifx \GAMMAUTHORFORCID\empty%
+ \else%
+ \orcid{\GAMMAUTHORFORCID}
+ \fi%
\fi%
\\\vspace{0.5cm}\par%
\ifx\GAMMADDRESSA\empty%
@@ -341,7 +389,7 @@
{\footnotesize * corresponding author: \GAMMCORRESPONDENCE}\par%
\ifx\GAMMSUPERVISOR\empty%
\else%
- {\footnotesize supervisor: \GAMMSUPERVISOR}\par%
+ {\footnotesize \GAMMSUPERVISORTEXT: \GAMMSUPERVISOR}\par%
\fi%
\ifx\GAMMOTHERPUBLICATION\empty%
\else%
@@ -428,11 +476,21 @@
\ifx\GAMMLOADOPTBIBTEX\empty%
\else% for bibtex
\RequirePackage[numbers,sort]{natbib}
- \newcommand{\setbib}[1]{\bibliographystyle{gammas}\begingroup \hbadness 10000\relax\bibliography{#1}\endgroup}%
+ \newcommand{\setbib}[1]{\bibliographystyle{gammas}
+ \begingroup
+ \hypersetup{urlcolor=GAMMgreen}
+ \hbadness 10000\relax\bibliography{#1}
+ \endgroup}%
\newcommand{\setbiber}[1]{}%
\fi%
+\AtBeginDocument{%
+ \setbiber{\GAMMBIBFILENAME}%
+}
+\AtEndDocument{%
+ \setbib{\GAMMBIBFILENAME}%
+}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% end %
diff --git a/macros/latex/contrib/gammas/gammas_template.tex b/macros/latex/contrib/gammas/gammas_template.tex
index 7e8aebaa43..48ac3a4ab7 100644
--- a/macros/latex/contrib/gammas/gammas_template.tex
+++ b/macros/latex/contrib/gammas/gammas_template.tex
@@ -3,7 +3,6 @@
% class options %
% options can be modified %
% %
-% %
% -> usebiber - default option: uses the biblatex package %
% -> usebibtex - use the classical bibtex with plain format %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -26,26 +25,30 @@
\gammauthorb{Author two\inst{a}}
\gammauthorc{Author three\inst{b}}
+% authors are encouraged to include their orcid in the manuscript
+% a circle placeholder will appear next to the author in the header
+\gammauthoraorcid{1234-5678-1234-5678}
+
% Use the short forms of the author names for the header
\gammauthorhead{O.~Author, T.~Author, T.~Author}
-% author affiliations (full postal adress must be provided in the online form but not on the manuscript)
+% author affiliations (full postal address must be provided in the online form but not on the manuscript)
\gammaddressb{Technische Universität Berlin, Berlin, Germany}
\gammaddressa{Technische Universität Chemnitz, Chemnitz, Germany} %
% additional information of the corresponding author
\gammcorrespondence{email@example.com}
-% Supervisor
-\gammsupervisor{FirstName LastName, TU Gammburg, Asymtopia} % optional, if supervisor wants to be mentioned
+% Supervisor: optional, if the supervisor wants to be mentioned
+\gammsupervisor{FirstName LastName, TU Gammburg, Asymtopia}
% name of the bibfile without '.bib'
\gammbibfilename{example_bibliography}
-
+\usepackage{blindtext}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% newcommands %
-% this is optional but it makes live very easy %
+% this is optional but it makes live very easy %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Theorem-like environments
@@ -58,12 +61,11 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% begindocument start %
% do not modify this %
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\setbiber{\GAMMBIBFILENAME}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\begin{document}
\maketitle
-
+%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% begindocument end %
% do not modify this %
@@ -84,7 +86,7 @@
\end{gammkeywords}
\section{Introduction}
-This is the introduction.
+This is the introduction. The authors are encouraged to include their \textsf{ORCiD} in the manuscript. The circle next to the author will be replaced by the logo during copyediting.
\section{Contents}
This is some scientific content. Make sure to use the commands from the \texttt{siunitx} package for all numbers. For instance, we have
@@ -93,10 +95,10 @@ This is some scientific content. Make sure to use the commands from the \texttt{
{\sisetup{fixed-exponent=-9,scientific-notation=fixed}\SIrange{80e-9}{120e-9}{\kilogram}}, \qquad \num{5.4321e-9}.
\end{gather*}
For more details about the typesetting in GAMMAS, we refer to \cite{kern2019gammas}. For a concise introduction to scientific writing
-in mathematics we refer to the excellent monograph \cite{higham1998handbook}. Consult the documentation of the \texttt{amsmath}\footnote{\url{https://ctan.org/pkg/amsmath}} package for useful hints on typesetting equations in \LaTeX{}.
+in mathematics we refer to the excellent monograph~\cite{higham2020handbook}. Consult the documentation of the \texttt{amsmath}\footnote{\url{https://ctan.org/pkg/amsmath}} package for useful hints on typesetting equations in \LaTeX{}.
\section{Summary}
-This is a great summary.
+This is a great summary.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% code availability block (not optional) %
@@ -104,13 +106,13 @@ This is a great summary.
% Every accepted article for GAMMAS must contain a code availability statement.
% You can modify the following example to account for your requirements.
\begin{gammacode}
- The source code of the implementations used to compute the presented results is available as supplementary material and can be obtained under the
+ Both, the \LaTeX{} source code for reference~\cite{kern2019gammas} as well as the python-script for the simulation, are available as supplementary material and can be obtained under the
\begin{center}
- \href{https://doi.org/10.14464/gammas.v1i1.417}{doi:~10.14464/gammas.v1i1.417}.
+ \href{https://doi.org/10.14464/gammas.v1i1.417}{DOI:~10.14464/gammas.v1i1.417}.
\end{center}
- % If you want to attach the code as supplementary material, then this doi will be the same as the doi for your article and inserted by the copyeditor. Otherwise you can use another stable location.
+ % If you want to attach the code as supplementary material, then this DOI will be the same as the DOI for your article and inserted by the copyeditor. Otherwise, you can use another stable location.
%
- If the source code is not shared, a simple statement should be given for explanation, e.g.\ for license issues, non-disclosure agreements or trade secrets. For \emph{best practices} for code we refer to \cite{fehr2016best}.
+ If the source code is not shared, a simple statement should be given for explanation, e.g., for license issues, non-disclosure agreements or trade secrets. For \emph{best practices} for code we refer to \cite{fehr2016best}.
\end{gammacode}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -126,11 +128,10 @@ This is a great summary.
\appendix
\section{Appendix}
-This is an (optional) appendix
+This is an (optional) appendix.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% enddocument start %
% do not modify this %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\setbib{\GAMMBIBFILENAME}
\end{document} \ No newline at end of file