doc/jnsao.cls

Fri, 28 Mar 2025 10:34:40 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Fri, 28 Mar 2025 10:34:40 -0500
changeset 61
dee25743b84a
parent 59
743984f4664e
permissions
-rw-r--r--

Added tag v0.1.0 for changeset 680e7ec7c7f8

59
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
1 %% jnsao.cls
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
2 %% Copyright (c) Christian Clason and Tuomo Valkonen, 2019-2025.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
3 %
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
4 % LaTeX class file for articles in the
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
5 %
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
6 % Journal of Nonsmooth Analysis and Optimization
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
7 %
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
8 % Web: http://jnsao.episciences.org
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
9 % E-mail: jnsao@episciences.org
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
10 %
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
11 % This work may be distributed and/or modified under the
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
12 % conditions of the LaTeX Project Public License, either version 1.3c
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
13 % of this license or (at your option) any later version.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
14 % The latest version of this license is in the file
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
15 %
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
16 % http://www.latex-project.org/lppl.txt
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
17 %
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
18 % This file is part of the "JNSAO journal template" (The work in LPPL)
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
19 % and all files in that bundle must be distributed together.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
20 %
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
21 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
22
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
23 \NeedsTeXFormat{LaTeX2e}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
24 \ProvidesClass{jnsao}[2025/01/28 v0.12 JNSAO article]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
25
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
26 \ProcessOptions\relax
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
27
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
28 \LoadClass[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
29 a4paper,
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
30 fontsize=11pt,
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
31 oneside
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
32 ]{scrartcl}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
33 \KOMAoptions{DIV=12}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
34
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
35 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
36 % Define colors
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
37 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
38 \RequirePackage[svgnames]{xcolor}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
39 \definecolor{hrefcolor}{rgb}{0.0,0.4,0.7}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
40 \definecolor{citecolor}{rgb}{0.0,0.35,0.2}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
41 \definecolor{structure}{rgb}{0.09,0.09,0.44}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
42 \definecolor{halfgray}{gray}{0.55}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
43
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
44 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
45 % Load amsmath, amsthm, thmtools, mathtools, hyperref (in this order!)
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
46 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
47 \RequirePackage[leqno,tbtags]{amsmath} % This *must* be *before* cleveref!
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
48 \RequirePackage{amsthm}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
49 \RequirePackage{thmtools}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
50 \RequirePackage[centercolon]{mathtools}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
51 \numberwithin{equation}{section} % This *must* be *before* cleveref!
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
52
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
53 \RequirePackage[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
54 colorlinks=true,
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
55 linkcolor=citecolor,
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
56 citecolor=citecolor,
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
57 filecolor=hrefcolor,
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
58 urlcolor=hrefcolor,
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
59 pdfencoding=auto,
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
60 hypertexnames=false,
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
61 ]{hyperref}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
62
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
63 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
64 % Load and set up fonts
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
65 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
66 \RequirePackage[T1]{fontenc}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
67 \RequirePackage[proportional]{libertine}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
68 \RequirePackage[libertine,liby,vvarbb]{newtxmath}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
69 \RequirePackage[scaled=0.95,varqu,varl]{inconsolata}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
70 \useosf
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
71 \frenchspacing
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
72 \RequirePackage[kerning,spacing]{microtype}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
73
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
74 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
75 % Format: title, sectioning in colored sans smallcaps
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
76 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
77 \renewcommand*{\sectfont}{\color{structure}\sffamily}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
78 \setkomafont{title}{\color{structure}\normalfont\sffamily\scshape}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
79 \setkomafont{author}{\large\normalfont\sffamily}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
80 \setkomafont{date}{\large\normalfont\sffamily}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
81 \addtokomafont{section}{\scshape}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
82 \addtokomafont{subsection}{\scshape}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
83 \addtokomafont{subsubsection}{\scshape\itshape}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
84 %\addtokomafont{footnote}{\sffamily}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
85
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
86 % title in small caps (requires lowercasing, label abstract
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
87 \RequirePackage[overload]{textcase}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
88
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
89 % Prefix appendices with "Appendix"
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
90 \newcommand{\jnsao@appname}{\relax}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
91 \newcommand*{\appendixmore}{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
92 \renewcommand{\jnsao@appname}{Appendix~}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
93 \renewcommand{\thesection}{{\scshape\alph{section}}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
94 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
95
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
96 % section headers in small caps (requires lowercasing)
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
97 \renewcommand*\sectionformat{\MakeLowercase{\jnsao@appname\thesection}\enskip}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
98 \renewcommand*\subsectionformat{\MakeLowercase{\jnsao@appname\thesubsection}\enskip}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
99 \renewcommand*\subsectionformat{\MakeLowercase{\jnsao@appname\thesubsection}\enskip}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
100 \renewcommand*\subsubsectionformat{\upshape\MakeLowercase{\jnsao@appname\thesubsubsection}\enskip}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
101
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
102 \let\jnsao@old@section\section
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
103 \renewcommand*{\section}{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
104 \@ifstar {\star@section}{\@dblarg\nonstar@section}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
105 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
106 \newcommand*{\star@section}[1]{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
107 \jnsao@old@section*{\MakeLowercase{#1}}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
108 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
109 \newcommand*{\nonstar@section}[2][]{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
110 \jnsao@old@section[{#1}]{\MakeLowercase{#2}}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
111 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
112 \let\jnsao@old@subsection\subsection
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
113 \renewcommand*{\subsection}{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
114 \@ifstar {\star@subsection}{\@dblarg\nonstar@subsection}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
115 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
116 \newcommand*{\star@subsection}[1]{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
117 \jnsao@old@subsection*{\MakeLowercase{#1}}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
118 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
119 \newcommand*{\nonstar@subsection}[2][]{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
120 \jnsao@old@subsection[{#1}]{\MakeLowercase{#2}}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
121 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
122 \let\jnsao@old@subsubsection\subsubsection
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
123 \renewcommand*{\subsubsection}{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
124 \@ifstar {\star@subsubsection}{\@dblarg\nonstar@subsubsection}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
125 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
126 \newcommand*{\star@subsubsection}[1]{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
127 \jnsao@old@subsubsection*{\MakeLowercase{#1}}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
128 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
129 \newcommand*{\nonstar@subsubsection}[2][]{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
130 \jnsao@old@subsubsection[{#1}]{\MakeLowercase{#2}}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
131 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
132
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
133 % Format (sub) figure labels
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
134 \RequirePackage[labelfont={color=structure,sf}]{caption}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
135 \RequirePackage[labelfont={color=structure,sf}]{subcaption}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
136
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
137 % Url
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
138 \renewcommand{\UrlFont}{\normalfont\sffamily}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
139
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
140 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
141 % Format of theorem-like environments.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
142 % These used to have to be *after* the loading of cleveref, but no longer
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
143 % (2018-12-15) seems to be the case.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
144 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
145
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
146 \def\jnsao@thmformat{\NAME~{\scshape{\NUMBER}}\NOTE}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
147
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
148 \declaretheoremstyle[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
149 headfont={\upshape\sffamily\color{structure}},
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
150 headformat=\jnsao@thmformat,
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
151 bodyfont={\normalfont\itshape},
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
152 ]{plain}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
153
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
154 \declaretheoremstyle[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
155 headfont={\upshape\sffamily\color{structure}},
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
156 headformat=\jnsao@thmformat,
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
157 bodyfont={\normalfont\upshape},
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
158 ]{definition}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
159
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
160 \declaretheoremstyle[
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
161 headfont={\upshape\sffamily\color{structure}},
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
162 headformat=\jnsao@thmformat,
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
163 bodyfont={\normalfont\upshape},
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
164 ]{remark}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
165
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
166 % Define basic theorem-like environments
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
167 \theoremstyle{plain}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
168 \newtheorem{theorem}{Theorem}[section]
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
169 \newtheorem{proposition}[theorem]{Proposition}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
170 \newtheorem{corollary}[theorem]{Corollary}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
171 \newtheorem{lemma}[theorem]{Lemma}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
172
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
173 \theoremstyle{remark}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
174 \newtheorem{remark}[theorem]{Remark}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
175
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
176 \theoremstyle{definition}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
177 \newtheorem{definition}[theorem]{Definition}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
178 \newtheorem{example}[theorem]{Example}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
179
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
180 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
181 % Footnotes: separation, special format for \thanks
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
182 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
183
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
184 % Store length in base font size
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
185 \newlength{\jnsao@footnotesep}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
186 \newlength{\jnsao@footnotetopsep}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
187 \newlength{\jnsao@standardfootins}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
188 \setlength{\jnsao@footnotesep}{0.5\baselineskip}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
189 \setlength{\jnsao@footnotetopsep}{\jnsao@footnotesep}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
190 \setlength{\jnsao@standardfootins}{\jnsao@footnotesep+\baselineskip}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
191 \setlength{\footnotesep}{\baselineskip}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
192
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
193 % Footnote rule for other pages than the first page
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
194 \def\jnsao@footnoterule{\relax%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
195 \vskip-\jnsao@footnotesep%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
196 {\color{gray}\hrule\@width 1cm}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
197 \vskip\jnsao@footnotetopsep%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
198 }%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
199
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
200 % Footnote rule for the first page
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
201 \def\jnsao@footnoterule@firstpage{\relax%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
202 \jnsao@headfootrule%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
203 %\vskip 2pt
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
204 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
205
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
206 % Change font for \thanks
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
207 \def\thanks#1{\footnotemark
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
208 \protected@xdef\@thanks{\@thanks
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
209 \protect\jnsao@thankstext[\the\c@footnote]{\sffamily #1}}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
210 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
211 \def\jnsao@thankstext{\sffamily%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
212 \@ifnextchar [\@xfootnotenext
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
213 {\protected@xdef\@thefnmark{\thempfn}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
214 \@footnotetext}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
215
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
216 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
217 % Vertical alignment. This hacks and wraps \@outputpage and
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
218 % and latex.ltx limitations to have different geometry for
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
219 % the first page
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
220 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
221
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
222 % Flush to bottom
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
223 \flushbottom
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
224
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
225 % Various lengths
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
226 \newlength{\jnsao@fullheight}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
227 \newlength{\jnsao@headsep}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
228 \newlength{\jnsao@firstpagehead}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
229 \newlength{\jnsao@firstpageheadplus}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
230 \newlength{\jnsao@headheight}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
231 \newlength{\jnsao@headlineheight}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
232
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
233 % Maximum available space for text, header, and footer
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
234 \setlength{\jnsao@fullheight}{\textheight+\footskip+\headheight+\headsep}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
235 % Space between header and text
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
236 \setlength{\jnsao@headsep}{\baselineskip}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
237 % Height of text lines in header/footer font
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
238 \setlength{\jnsao@headlineheight}{11pt}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
239 % First page header height
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
240 \setlength{\jnsao@firstpagehead}{2\jnsao@headlineheight}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
241 % ... plus extra for rule and separation
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
242 \setlength{\jnsao@firstpageheadplus}{\jnsao@firstpagehead+2.4pt}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
243 % Other pages header (and footer) height plus extra for rule and separation
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
244 \setlength{\jnsao@headheight}{\jnsao@headlineheight+2.4pt}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
245
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
246 % Recalculate header, footer, and text area heights from:
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
247 % #1: header material height
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
248 % #2: header separator white space
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
249 % #3: footer material height
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
250 % #4: footer separator white space
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
251 \def\jnsao@setheadfoot#1#2#3#4{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
252 \global\headheight=#1%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
253 \global\headsep=#2%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
254 \global\footskip=#3%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
255 \global\advance\footskip by #4%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
256 \global\footheight=#3% KOMA-script seems to blow up things without this
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
257 \global\textheight=\jnsao@fullheight%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
258 \global\advance\textheight by -\footskip%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
259 \global\advance\textheight by -\headheight%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
260 \global\advance\textheight by -\headsep%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
261 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
262
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
263 % First page settings
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
264 \setlength{\skip\footins}{\jnsao@footnotesep+0.5\splittopskip}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
265 \let\footnoterule\jnsao@footnoterule@firstpage
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
266 \jnsao@setheadfoot{\jnsao@firstpageheadplus}{\jnsao@headsep}{0em}{0em}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
267
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
268 % Other pages' settings
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
269 \def\jnsao@geometry@otherpages{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
270 % Set up geometry of following pages
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
271 \global\skip\footins=\jnsao@standardfootins
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
272 \global\let\footnoterule\jnsao@footnoterule
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
273 \jnsao@setheadfoot{\jnsao@headheight}{\jnsao@headsep}{\jnsao@headheight}{\jnsao@headsep}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
274 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
275
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
276 % \@outputpage hack to reset settings after first page
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
277 \let\jnsao@old@outputpage\@outputpage
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
278 \def\jnsao@output@firstpage{
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
279 \jnsao@old@outputpage%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
280 \jnsao@geometry@otherpages%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
281 % This is needed for something to actually happen after the reset above,
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
282 % as standard \@outputpage does the same thing at the end
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
283 \global\@colht\textheight%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
284 % Reset page output routine
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
285 \global\let\jnsao@output@page\jnsao@old@outputpage%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
286 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
287
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
288 \def\@outputpage{\jnsao@output@page}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
289 \let\jnsao@output@page\jnsao@output@firstpage
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
290
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
291 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
292 % Date
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
293 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
294
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
295 \RequirePackage{scrdate}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
296 \date{\ISOToday}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
297
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
298 % Over-ride \today with \ISOdate when we insert it. This is needed because Babel
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
299 % reset \date{\ISOToday} into a locale format.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
300 \def\jnsao@insertdate{{\let\today\ISOToday\@date}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
301 %\def\date#1{\gdef\@date{\let\today\ISOToday#1}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
302
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
303 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
304 % Publication information
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
305 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
306
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
307 \let\jnsao@submitted\empty
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
308 \let\jnsao@accepted\empty
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
309 \let\jnsao@journal\empty
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
310 \let\jnsao@volume\empty
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
311 \let\jnsao@number\empty
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
312 \let\jnsao@year\empty
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
313 \let\jnsao@doi\empty
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
314 \let\jnsao@eprinttype\empty
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
315 \let\jnsao@eprint\empty
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
316 \let\jnsao@shortauthor\empty
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
317 \let\jnsao@shorttitle\empty
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
318 \let\jnsao@ack\empty
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
319 \def\jnsao@journal{Journal of Nonsmooth Analysis and Optimization}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
320 \def\jnsao@journalabbrev{J.~Nonsmooth Anal.~Optim.}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
321 \def\jnsao@license{CC-BY-SA 4.0}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
322 \def\jnsao@copyright{{\copyright} the authors}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
323 \def\jnsao@status{Manuscript}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
324
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
325 \newcommand{\manuscriptsubmitted}[1]{\gdef\jnsao@submitted{#1}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
326 \newcommand{\manuscriptaccepted}[1]{\gdef\jnsao@accepted{#1}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
327 \newcommand{\manuscriptvolume}[1]{\gdef\jnsao@volume{#1}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
328 \newcommand{\manuscriptnumber}[1]{\gdef\jnsao@number{#1}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
329 \newcommand{\manuscriptjournal}[1]{\gdef\jnsao@journal{#1}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
330 \newcommand{\manuscriptlicense}[1]{\gdef\jnsao@license{#1}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
331 \newcommand{\manuscriptcopyright}[1]{\gdef\jnsao@copyright{#1}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
332 \newcommand{\manuscriptyear}[1]{\gdef\jnsao@year{#1}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
333 \newcommand{\manuscriptdoi}[1]{\gdef\jnsao@doi{#1}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
334 \newcommand{\manuscripteprinttype}[1]{\gdef\jnsao@eprinttype{#1}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
335 \newcommand{\manuscripteprint}[1]{\gdef\jnsao@eprint{#1}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
336 \newcommand{\manuscriptstatus}[1]{\gdef\jnsao@status{#1}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
337 \newcommand{\shortauthor}[1]{\gdef\jnsao@shortauthor{#1}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
338 \newcommand{\shorttitle}[1]{\gdef\jnsao@shorttitle{#1}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
339 \newcommand{\acknowledgements}[1]{\gdef\jnsao@ack{#1}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
340 \newcommand{\acknowledgments}[1]{\gdef\jnsao@ack{#1}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
341
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
342 \def\jnsao@licenseurl#1#2{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
343 \expandafter\def\csname jnsao@licenseurl@#1 \endcsname{#2}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
344 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
345
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
346 \RequirePackage{xstring}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
347 \def\jnsao@printeprint{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
348 % lowercase is not expandable, so we have to be tricky (https://tex.stackexchange.com/a/87130)
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
349 \lowercase\expandafter{\expandafter\def\expandafter\@tempe\expandafter{\jnsao@eprinttype}}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
350 \IfStrEqCase{\@tempe}{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
351 {arxiv}{\arxiv{\jnsao@eprint}}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
352 {hal}{\hal{\jnsao@eprint}}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
353 }[{\sffamily \textsc{\MakeLowercase{\jnsao@eprinttype:}}\,\jnsao@eprint}]%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
354 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
355 \jnsao@licenseurl{CC-BY}{https://creativecommons.org/licenses/by/4.0/}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
356 \jnsao@licenseurl{CC-BY 4.0}{https://creativecommons.org/licenses/by/4.0/}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
357 \jnsao@licenseurl{CC-BY-SA}{https://creativecommons.org/licenses/by-sa/4.0/}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
358 \jnsao@licenseurl{CC-BY-SA 4.0}{https://creativecommons.org/licenses/by-sa/4.0/}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
359 \jnsao@licenseurl{CC-BY-NC-SA}{https://creativecommons.org/licenses/by-nc-sa/4.0/}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
360 \jnsao@licenseurl{CC-BY-NC-SA 4.0}{https://creativecommons.org/licenses/by-nc-sa/4.0/}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
361 \jnsao@licenseurl{CC-BY-NC}{https://creativecommons.org/licenses/by-nc/4.0/}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
362 \jnsao@licenseurl{CC-BY-NC 4.0}{https://creativecommons.org/licenses/by-nc/4.0/}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
363 \jnsao@licenseurl{CC-BY-NC-ND}{https://creativecommons.org/licenses/by-nc-nd/4.0/}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
364 \jnsao@licenseurl{CC-BY-NC-ND 4.0}{https://creativecommons.org/licenses/by-nc-nd/4.0/}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
365
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
366 \def\jnsao@linklicense#1{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
367 \ifcsname jnsao@licenseurl@#1 \endcsname%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
368 \expandafter\let\expandafter\@tempa\csname jnsao@licenseurl@#1 \endcsname%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
369 \href{\@tempa}{\scshape \MakeLowercase{#1}}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
370 \else%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
371 #1%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
372 \fi
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
373 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
374
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
375 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
376 % Headers and footers
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
377 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
378
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
379 \RequirePackage{lastpage}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
380 \RequirePackage[fit]{truncate}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
381
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
382 \addtokomafont{pageheadfoot}{\normalfont\sffamily\footnotesize}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
383
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
384 \def\jnsao@headfootrule{\hrule width \textwidth height 0.4pt}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
385 \def\jnsao@ruledhead#1{\vbox to \headheight{\usekomafont{pageheadfoot}\hbox to \textwidth{#1}\vskip 2pt\jnsao@headfootrule\vfill}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
386 \def\jnsao@ruledfoot#1{\vbox to \footheight{\usekomafont{pageheadfoot}\vfill\jnsao@headfootrule\vskip 2pt\hbox to \textwidth{#1}}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
387
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
388 \def\ps@jnsao{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
389 \def\@oddhead{\jnsao@ruledhead{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
390 \ifx\jnsao@accepted\empty{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
391 \ifx\jnsao@eprint\empty{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
392 \jnsao@status, \jnsao@insertdate%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
393 }\else{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
394 \jnsao@printeprint, \jnsao@insertdate%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
395 }\fi%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
396 }\else{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
397 \jnsao@journalabbrev%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
398 \ifx\jnsao@volume\empty{\relax}\else{ \jnsao@volume}\fi%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
399 \ifx\jnsao@year\empty{\relax}\else{ (\jnsao@year)}\fi%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
400 \ifx\jnsao@number\empty{\relax}\else{, \jnsao@number}\fi%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
401 }\fi%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
402 \hfill%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
403 page~\thepage~of~\pageref*{LastPage}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
404 }}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
405 \def\@oddfoot{\jnsao@ruledfoot{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
406 \truncate{0.5\textwidth}{\ifx\jnsao@shortauthor\empty{}\else{\jnsao@shortauthor}\fi}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
407 \hfill%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
408 \truncate{0.5\textwidth}{\ifx\jnsao@shorttitle\empty{\@title}\else{\jnsao@shorttitle}\fi}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
409 }}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
410 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
411
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
412 \pagestyle{jnsao}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
413
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
414 \def\ps@jnsaotitlepage{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
415 \def\@oddhead{\jnsao@ruledhead{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
416 \parbox[b][\jnsao@firstpagehead][t]{0.75\textwidth}{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
417 \ifx\jnsao@accepted\empty{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
418 \ifx\jnsao@eprint\empty{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
419 \jnsao@status\\
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
420 date: \jnsao@insertdate \\
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
421 }\else{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
422 \jnsao@printeprint\\
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
423 date: \jnsao@insertdate \\
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
424 }\fi%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
425 }\else{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
426 \jnsao@journalabbrev%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
427 \ifx\jnsao@volume\empty{\relax}\else{ \jnsao@volume}\fi%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
428 \ifx\jnsao@year\empty{\relax}\else{ (\jnsao@year)}\fi%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
429 \ifx\jnsao@number\empty{\relax}\else{, \jnsao@number}\fi%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
430 \ifx\jnsao@doi\empty{\relax}\else{, \expandafter\doi\expandafter{\jnsao@doi}}\fi%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
431 \\%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
432 \ifx\jnsao@date\empty{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
433 \ifx\jnsao@accepted\empty{\relax}\else{Accepted: \jnsao@accepted}\fi%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
434 }\else{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
435 Submitted: \jnsao@submitted\ifx\jnsao@accepted\empty{}\else, accepted: \jnsao@accepted\fi%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
436 }\fi%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
437 \\
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
438 }\fi%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
439 }%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
440 \hfill%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
441 \parbox[b][\jnsao@firstpagehead][t]{0.25\textwidth}{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
442 \hfill page~1~of~\pageref*{LastPage}\\%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
443 \null\hfill\jnsao@copyright
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
444 \ifx\jnsao@license\empty{\relax}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
445 \else{, \jnsao@linklicense{\jnsao@license}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
446 \fi
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
447 }%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
448 }}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
449 \def\@oddfoot{}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
450 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
451
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
452 \renewcommand{\titlepagestyle}{jnsaotitlepage}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
453
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
454 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
455 % Abstract and article title
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
456 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
457
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
458 % \maketitle customisations:
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
459 % - Locally convert \@title to lower case for ``all small caps'' to work right
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
460 % - Reset \@date to stop babel from messing things up with its silly enforced
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
461 % date formats.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
462 % - Include acknowledgements before \thanks footnotes
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
463 % This version \@maketitle is simply based on scrartcl.cls with unsupported
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
464 % features removed.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
465
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
466 \def\jnsao@insert@ack{\insert\footins{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
467 \reset@font\footnotesize%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
468 \interlinepenalty\interfootnotelinepenalty%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
469 \splittopskip\footnotesep%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
470 \splitmaxdepth \dp\strutbox \floatingpenalty \@MM%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
471 \hsize\columnwidth \@parboxrestore%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
472 \color@begingroup%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
473 \hb@xt@1.8em{\rule\z@\footnotesep\ignorespaces\parbox[t]{\textwidth}{\jnsao@ack}\@finalstrut\strutbox}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
474 \color@endgroup}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
475
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
476 \renewcommand*{\@maketitle}{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
477 \global\@topnum=\z@
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
478 \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
479 \null
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
480 \vskip 2em%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
481 \if\jnsao@ack\empty\else\jnsao@insert@ack\fi%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
482 \begin{center}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
483 {\usekomafont{title}{\huge \MakeLowercase{\@title} \par}}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
484 \vskip .5em
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
485 {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
486 \vskip 1em
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
487 {%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
488 \usekomafont{author}{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
489 \lineskip .5em%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
490 \begin{tabular}[t]{c}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
491 \@author
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
492 \end{tabular}\par
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
493 }%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
494 }%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
495 \vskip \z@ \@plus 2em
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
496 \ifx\@dedication\@empty \else
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
497 \vskip 2em
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
498 {\usekomafont{dedication}{\@dedication \par}}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
499 \fi
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
500 \end{center}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
501 \par
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
502 \vskip 2em
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
503 }%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
504
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
505 % Set up abstract formatting
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
506 \renewenvironment{abstract}{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
507 \vspace*{-0.75cm}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
508 \small%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
509 \quotation%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
510 \noindent%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
511 {\normalfont\sectfont\nobreak\abstractname\quad}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
512 }{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
513 \endquotation%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
514 \vskip 0.7cm
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
515 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
516
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
517 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
518 % Possibly missing commands
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
519 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
520
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
521 \providecommand{\arxiv}[1]{\mbox{\scshape\sffamily arxiv:}\,\href{https://arxiv.org/abs/#1}{#1}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
522 \providecommand{\hal}[1]{\href{https://hal.archives-ouvertes.fr/#1}{#1}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
523 \providecommand{\doi}[1]{\mbox{\scshape\sffamily doi:}\,\href{https://dx.doi.org/#1}{\detokenize{#1}}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
524 \providecommand{\orcid}[1]{\mbox{\scshape\sffamily orcid:}\,\href{https://orcid.org/#1}{\detokenize{#1}}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
525 \def\email#1{\href{mailto:#1}{\sffamily#1}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
526
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
527 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
528 % Potential additional customizations
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
529 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
530 % \RequirePackage{mdframed}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
531 %
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
532 % \mdfdefinestyle{examplebg}{
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
533 % backgroundcolor=structure!7,%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
534 % hidealllines=true,%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
535 % innertopmargin=-.3em,%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
536 % innerbottommargin=.7em,%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
537 % innerleftmargin=.7em,%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
538 % innerrightmargin=.7em,%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
539 % }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
540 %
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
541 % \surroundwithmdframed[style=examplebg]{example}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
542 % \surroundwithmdframed[style=examplebg]{algorithm}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
543
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
544 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
545 % Adaptations of optional packages on startup.
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
546 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
547
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
548 \PassOptionsToPackage{nameinlink,capitalise}{cleveref}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
549 \AfterPackage{cleveref}{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
550 % cleveref: tell it about the plural of Figure
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
551 \crefname{figure}{Figure}{Figures}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
552
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
553 % cleveref: fix "Eq. (1)" to "(1)"
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
554 \crefname{equation}{}{}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
555
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
556 % cleveref: fix "Item. (i)" to "(i)"
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
557 \crefname{enumi}{}{}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
558
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
559 % fix for broken hyperref hooks on Nov-2024 kernel
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
560 \AddToHook{env/proposition/begin}{\crefalias{theorem}{proposition}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
561 \AddToHook{env/corollary/begin}{\crefalias{theorem}{corollary}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
562 \AddToHook{env/lemma/begin}{\crefalias{theorem}{lemma}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
563 \AddToHook{env/remark/begin}{\crefalias{theorem}{remark}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
564 \AddToHook{env/definition/begin}{\crefalias{theorem}{definition}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
565 \AddToHook{env/example/begin}{\crefalias{theorem}{example}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
566 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
567
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
568 % patch incompatible AMS environments for lineno
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
569 \AfterPackage{lineno}{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
570 \newcommand*\patchAmsMathEnvironmentForLineno[1]{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
571 \expandafter\let\csname old#1\expandafter\endcsname\csname #1\endcsname
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
572 \expandafter\let\csname oldend#1\expandafter\endcsname\csname end#1\endcsname
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
573 \renewenvironment{#1}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
574 {\linenomath\csname old#1\endcsname}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
575 {\csname oldend#1\endcsname\endlinenomath}}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
576 \newcommand*\patchBothAmsMathEnvironmentsForLineno[1]{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
577 \patchAmsMathEnvironmentForLineno{#1}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
578 \patchAmsMathEnvironmentForLineno{#1*}}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
579 \AtBeginDocument{%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
580 \patchBothAmsMathEnvironmentsForLineno{equation}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
581 \patchBothAmsMathEnvironmentsForLineno{align}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
582 \patchBothAmsMathEnvironmentsForLineno{flalign}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
583 \patchBothAmsMathEnvironmentsForLineno{alignat}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
584 \patchBothAmsMathEnvironmentsForLineno{gather}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
585 \patchBothAmsMathEnvironmentsForLineno{multline}%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
586 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
587 \renewcommand{\linenumberfont}{\normalfont\scriptsize\sffamily\color{gray}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
588 \renewcommand\thelinenumber{\tabularnumsf{\arabic{linenumber}}}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
589 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
590
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
591
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
592 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
593 % PDF metadata
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
594 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
595
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
596 \AtBeginDocument{
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
597 \begingroup
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
598 % Override \and and \thanks to clean up author
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
599 \def\and{ and }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
600 \def\thanks#1{\relax}
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
601 \hypersetup{
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
602 pdftitle = {\@title},
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
603 pdfauthor = {\@author},
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
604 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
605 \endgroup
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
606 }
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
607
743984f4664e Add auxiliary results
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff changeset
608

mercurial