summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/gammas/gammas.cls
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/gammas/gammas.cls')
-rw-r--r--macros/latex/contrib/gammas/gammas.cls84
1 files changed, 71 insertions, 13 deletions
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 %