blob: ca8b331795232b3f7f4d4994b2b2197f82b5c592 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
|
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{SciPost} % SciPost Latex Template (2021-08)
\LoadClass[11pt,a4paper]{article}
% Layout
\RequirePackage[top=12mm,bottom=12mm,left=30mm,right=30mm,head=12mm,includeheadfoot]{geometry}
\bigskipamount 6mm
% For table of contents: remove trailing dots
\RequirePackage{tocloft}
\renewcommand{\cftdot}{}
% Add References to TOC
\RequirePackage[nottoc,notlot,notlof]{tocbibind}
% Spacings between (sub)sections:
\RequirePackage{titlesec}
\titlespacing*{\section}{0pt}{1.8\baselineskip}{\baselineskip}
% Unicode characters
\RequirePackage[utf8]{inputenc}
% doi links in references
\RequirePackage{doi}
% Math formulas and symbols
%\RequirePackage{amsmath,amssymb} % Redundant (clashes with mathdesign)
\RequirePackage{amsmath}
% Hyperrefs
\RequirePackage{hyperref}
% Include line numbers in submissions
\RequirePackage{lineno}
% SciPost BiBTeX style
\bibliographystyle{SciPost_bibstyle}
% SciPost header and footer
\RequirePackage{fancyhdr}
\pagestyle{fancy}
\makeatletter
\let\ps@plain\ps@fancy
\makeatother
\RequirePackage{xcolor}
\definecolor{scipostdeepblue}{HTML}{002B49}
\definecolor{scipostphys}{HTML}{0019A2}
\definecolor{scipostastro}{HTML}{946E13}
\definecolor{scipostbio}{HTML}{2B7E13}
\definecolor{scipostchem}{HTML}{605AAF}
\definecolor{scipostcompsci}{HTML}{0AADAB}
\definecolor{scipostmath}{HTML}{A10800}
\RequirePackage{graphicx}
\RequirePackage{cite}
\RequirePackage[width=.90\textwidth]{caption}
%% Patch lineno when used with amsmath
\newcommand*\patchAmsMathEnvironmentForLineno[1]{%
\expandafter\let\csname old#1\expandafter\endcsname\csname #1\endcsname
\expandafter\let\csname oldend#1\expandafter\endcsname\csname end#1\endcsname
\renewenvironment{#1}%
{\linenomath\csname old#1\endcsname}%
{\csname oldend#1\endcsname\endlinenomath}}%
\newcommand*\patchBothAmsMathEnvironmentsForLineno[1]{%
\patchAmsMathEnvironmentForLineno{#1}%
\patchAmsMathEnvironmentForLineno{#1*}}%
\AtBeginDocument{%
\patchBothAmsMathEnvironmentsForLineno{equation}%
\patchBothAmsMathEnvironmentsForLineno{align}%
\patchBothAmsMathEnvironmentsForLineno{flalign}%
\patchBothAmsMathEnvironmentsForLineno{alignat}%
\patchBothAmsMathEnvironmentsForLineno{gather}%
\patchBothAmsMathEnvironmentsForLineno{multline}%
}
%% End patch lineno
\DeclareOption{submission}{
\rhead{
{\bf \color{scipostdeepblue} ~Submission }
}
}
%%%%%%%%%% Physics
\DeclareOption{Phys}{
\lhead{
\colorbox{scipostphys}{\bf \color{white} ~SciPost Physics }
}
}
\DeclareOption{PhysCore}{
\lhead{
\colorbox{scipostphys}{\bf \color{white} ~SciPost Physics Core}
}
}
\DeclareOption{PhysLectNotes}{
\lhead{
\colorbox{scipostphys}{\strut \bf \color{white} ~SciPost Physics Lecture Notes }
}
}
\DeclareOption{PhysProc}{
\lhead{
\colorbox{scipostphys}{\strut \bf \color{white} ~SciPost Physics Proceedings }
}
}
\DeclareOption{PhysCodeb}{
\lhead{
\colorbox{scipostphys}{\strut \bf \color{white} ~SciPost Physics Codebases }
}
}
%%%%%%%%%%% Astronomy
\DeclareOption{Astro}{
\lhead{
\colorbox{scipostastro}{\strut \bf \color{white} ~SciPost Astronomy }
}
}
%%%%%%%%%%% Biology
\DeclareOption{Bio}{
\lhead{
\colorbox{scipostbio}{\strut \bf \color{white} ~SciPost Biology }
}
}
%%%%%%%%%%% Chemistry
\DeclareOption{Chem}{
\lhead{
\colorbox{scipostchem}{\strut \bf \color{white} ~SciPost Chemistry }
}
}
%%%%%%%%%%% Computer Science
\DeclareOption{CompSci}{
\lhead{
\colorbox{scipostcompsci}{\strut \bf \color{white} ~SciPost Computer Science }
}
}
%%%%%%%%%%% Mathematics
\DeclareOption{Math}{
\lhead{
\colorbox{scipostmath}{\strut \bf \color{white} ~SciPost Mathematics }
}
}
\ProcessOptions\relax
|