| 1 |
% Copyright 2021 by FIZ-Karlsruhe |
| 2 |
% |
| 3 |
% This file is part of the ctan package zbmath-review-template |
| 4 |
% and may be distributed and/or modified under the |
| 5 |
% conditions of the GNU General Public License, version 3: |
| 6 |
% |
| 7 |
% https://www.gnu.org/licenses/gpl-3.0.en.html |
| 8 |
% |
| 9 |
% It defines the class zbMATH. |
| 10 |
% |
| 11 |
|
| 12 |
|
| 13 |
\NeedsTeXFormat{LaTeX2e} |
| 14 |
\ProvidesClass{zbMATH} |
| 15 |
|
| 16 |
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scartcl}} |
| 17 |
\ProcessOptions\relax |
| 18 |
|
| 19 |
\LoadClass[a4paper,10pt,leqno]{scrartcl} |
| 20 |
|
| 21 |
\RequirePackage[margin=2.5cm,tmargin=2cm,bmargin=3cm]{geometry} |
| 22 |
|
| 23 |
\RequirePackage{xcolor} |
| 24 |
|
| 25 |
\RequirePackage[UKenglish]{babel} |
| 26 |
|
| 27 |
\RequirePackage{scrlayer-scrpage} |
| 28 |
|
| 29 |
\RequirePackage{graphicx} |
| 30 |
\RequirePackage{enumitem} |
| 31 |
|
| 32 |
\RequirePackage{xparse} |
| 33 |
\RequirePackage{etoolbox} |
| 34 |
|
| 35 |
\RequirePackage[hyphens]{url} |
| 36 |
|
| 37 |
% Font selection |
| 38 |
\RequirePackage[no-math]{fontspec} |
| 39 |
\setmainfont{cmun}[ |
| 40 |
Extension = .otf, |
| 41 |
UprightFont = *rm, |
| 42 |
BoldFont = *bx, |
| 43 |
ItalicFont = *ti, |
| 44 |
BoldItalicFont = *ti, |
| 45 |
SlantedFont = *sl, |
| 46 |
SmallCapsFont = *rm, |
| 47 |
SmallCapsFeatures = {Letters=SmallCaps}, |
| 48 |
] |
| 49 |
|
| 50 |
\RequirePackage{zb-basics} |
| 51 |
|
| 52 |
% make footer |
| 53 |
\newcommand{\makefooter}{ |
| 54 |
\pagestyle{scrheadings} |
| 55 |
\setkomafont{pageheadfoot}{ |
| 56 |
\rmfamily |
| 57 |
\footnotesize |
| 58 |
\color[rgb]{.5,.5,.5} |
| 59 |
} |
| 60 |
\lofoot{% |
| 61 |
\makebox[\linewidth][s]{Edited by FIZ Karlsruhe, the European Mathematical Society and the Heidelberg Academy of Sciences and Humanities}\\ |
| 62 |
\copyright{} \the\year{} FIZ Karlsruhe GmbH |
| 63 |
} |
| 64 |
\cofoot{} |
| 65 |
\rofoot{\\Page \thepage} |
| 66 |
|
| 67 |
\setlength{\parindent}{0cm} |
| 68 |
\setlength{\parskip}{1ex} |
| 69 |
\setlength{\parfillskip}{0pt plus 1fill} |
| 70 |
\setlength{\footheight}{19pt} |
| 71 |
} |
| 72 |
|
| 73 |
% write text in zbMath Blue |
| 74 |
\definecolor{zbMATHBlue}{rgb}{0, 0.289, 0.6} |
| 75 |
\newcommand{\blue}[1]{\textcolor{zbMATHBlue}{#1}} |
| 76 |
|
| 77 |
% make title |
| 78 |
\renewcommand{\maketitle}{ |
| 79 |
\vspace{7ex} |
| 80 |
\noindent {\bfseries \blue{\@author}}\\ |
| 81 |
\textbf{\@title.}\\ |
| 82 |
\vspace{2ex} |
| 83 |
} |
| 84 |
|
| 85 |
% Helper macros |
| 86 |
\providetoggle{first} |
| 87 |
\toggletrue{first} |
| 88 |
\newcommand{\helper}[1]{% |
| 89 |
\iftoggle{first}{\blue{#1}\togglefalse{first}}{; \blue{#1}}% |
| 90 |
} |
| 91 |
\NewDocumentCommand{\kwx}{>{\SplitList{;}}m}{ |
| 92 |
\ProcessList{#1}{\helper} |
| 93 |
} |
| 94 |
|
| 95 |
% Keywords |
| 96 |
\newcommand{\keywords}[1]{ |
| 97 |
\vspace{2ex} |
| 98 |
\textbf{Keywords:}\par\nopagebreak |
| 99 |
\kwx{#1} |
| 100 |
} |
| 101 |
|
| 102 |
% MSC |
| 103 |
\newsavebox{\citationbox} |
| 104 |
\newdimen{\msclen} |
| 105 |
\NewDocumentCommand{\msc}{>{\SplitList{ }}m}{ |
| 106 |
\vspace{2ex} |
| 107 |
\msclen=\textwidth |
| 108 |
\advance\msclen by -\wd\citationbox |
| 109 |
\advance\msclen by -5em |
| 110 |
\textbf{MSC:}\par\nopagebreak |
| 111 |
\begin{tabular}[t]{@{}lp{\msclen}} |
| 112 |
\ProcessList{#1}{\blueitem} |
| 113 |
\end{tabular} |
| 114 |
} |
| 115 |
\newcommand\blueitem[1]{\textcolor{zbMATHBlue}{#1}\\} |
| 116 |
|
| 117 |
% Reviewer |
| 118 |
\newcommand{\reviewer}[1]{ |
| 119 |
\par\nopagebreak\hspace*{0pt plus 1filll} Reviewer: \blue{#1} |
| 120 |
} |
| 121 |
|
| 122 |
\frenchspacing |