summaryrefslogtreecommitdiff
path: root/SciPost.cls
diff options
context:
space:
mode:
Diffstat (limited to 'SciPost.cls')
-rw-r--r--SciPost.cls116
1 files changed, 17 insertions, 99 deletions
diff --git a/SciPost.cls b/SciPost.cls
index ca8b331..2808a40 100644
--- a/SciPost.cls
+++ b/SciPost.cls
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{SciPost} % SciPost Latex Template (2021-08)
+\ProvidesClass{SciPost} % SciPost Latex Template v1f(2023-10)
\LoadClass[11pt,a4paper]{article}
@@ -45,17 +45,13 @@
\pagestyle{fancy}
\makeatletter
- \let\ps@plain\ps@fancy
+\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}
+\definecolor{scipostblue}{HTML}{0019A2}
+
\RequirePackage{graphicx}
@@ -66,101 +62,23 @@
%% 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}}%
+ \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*}}%
+ \patchAmsMathEnvironmentForLineno{#1}%
+ \patchAmsMathEnvironmentForLineno{#1*}}%
\AtBeginDocument{%
-\patchBothAmsMathEnvironmentsForLineno{equation}%
-\patchBothAmsMathEnvironmentsForLineno{align}%
-\patchBothAmsMathEnvironmentsForLineno{flalign}%
-\patchBothAmsMathEnvironmentsForLineno{alignat}%
-\patchBothAmsMathEnvironmentsForLineno{gather}%
-\patchBothAmsMathEnvironmentsForLineno{multline}%
+ \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