-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathimperialmathnotes.sty
108 lines (94 loc) · 2.71 KB
/
imperialmathnotes.sty
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
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{imperialmathnotes}[2021/04/03 Imperial College London Course Notes in Mathematics title page.]
\RequirePackage{fontspec}
\setsansfont{TeX Gyre Heros}
\RequirePackage[british]{babel}
\RequirePackage[utf8]{inputenc}
\RequirePackage[absolute]{textpos}
\RequirePackage{xcolor}
\RequirePackage{graphicx}
\RequirePackage{etoolbox}
\RequirePackage[
type={CC},
modifier={by},
version={4.0},
]{doclicense}
\RequirePackage{fmtcount}
\RequirePackage{hyperref}
\RequirePackage{titling}
\newcounter{volcnt}
\setcounter{volcnt}{0}
\newcommand{\imperialmathnotesvolume}[1]{\setcounter{volcnt}{#1}}
\newcommand{\editions}{}
\newcommand{\edition}[1]{\listadd{\editions}{#1}}
\makeatletter
\providecommand\subtitle[1]{\renewcommand\thesubtitle{#1}}
\newcommand\thesubtitle{\@latex@error{No \noexpand\subtitle given}\@ehc}
\makeatother
\setlength{\TPHorizModule}{1mm}
\setlength{\TPVertModule}{\TPHorizModule}
\textblockorigin{0mm}{0mm}
\definecolor{imperialblue}{cmyk}{1,.61,0,.45}
\newcommand{\imperialmathnotestitlepages}{
\clearpage
\thispagestyle{empty}
\newcounter{edcnt}
\setcounter{edcnt}{0}
\renewcommand*{\do}[1]{\stepcounter{edcnt}
\ifdefined\thisedition
\renewcommand{\thisedition}{\Ordinalstring{edcnt} edition}
\else
\newcommand{\thisedition}{}
\fi
}
\dolistloop{\editions}
\begin{textblock}{70}(17.5,17.5)
\noindent\includegraphics[width=70mm]{imperial.pdf}
\end{textblock}
\begin{textblock}{210}(0,279)
\noindent\rule{210mm}{.5mm}
\end{textblock}
\begin{textblock}{30}(190,-5)
{\color{imperialblue}
\noindent\rule[-5mm]{21mm}{300mm}}
\end{textblock}
\begin{textblock}{210}(17.5,284.5)
{\sffamily\fontsize{25}{30}\selectfont
\noindent Course Notes in Mathematics}
\end{textblock}
\begin{textblock}{30}(185,284.5)
{\sffamily\fontsize{25}{30}\selectfont\centering\color{white}\bfseries
\thevolcnt
}
%\rule{15mm,297mm}
\end{textblock}
\begin{textblock}{175}(17.5,74.25)
\setlength{\parskip}{2ex}
{\sffamily\fontsize{25}{30}\selectfont\noindent\thetitle}
{\sffamily\fontsize{17}{20}\selectfont\noindent\thesubtitle
\vspace{\parskip}
\noindent\Large\theauthor
\vspace{7\parskip}
\noindent{\itshape\thisedition}}
\end{textblock}
\mbox{}
\pagebreak
\begin{textblock}{175}[0,1](17.5,282.5)
{
\hypersetup{urlcolor=imperialblue}
\sffamily\fontsize{12}{14}\selectfont
\setcounter{edcnt}{0}
\renewcommand*{\do}[1]{\stepcounter{edcnt}\noindent\Ordinalstring{edcnt} edition: ##1
\vspace{1ex}
}
\dolistloop{\editions}
\vspace{2ex}
\noindent\copyright\ \theauthor
\doclicenseThis
}
\end{textblock}
\mbox{}
\setcounter{page}{0}
\thispagestyle{empty}
\clearpage
}