This repository has been archived by the owner on Mar 31, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
stabsmemoir.sty
89 lines (79 loc) · 2.51 KB
/
stabsmemoir.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
% ---------------------------------------------------------- [ stabsmemoir.sty ]
% Module : stabsmemoir.sty
% Copyright : (c) Jan de Muijnck-Hughes
% License : see LICENSE
% Version : v2016.03.09
% ---------------------------------------------------------------------- [ EOH ]
%%
%% Memoir based beamerarticle notes style.
%%
%% ----------------------------------------------------------- [ Begin Package ]
\ProvidesPackage{stabsmemoir}
%% ---------------------------------------------------------------- [ Packages ]
\RequirePackage{enumitem}
\RequirePackage{memhfixc}
\RequirePackage{sta-colours}
%% ----------------------------------------------------------------- [ Styling ]
\mode<article>{
%% Headers
\counterwithout{section}{chapter}
\setsecnumdepth{subsubsection}
\headstyles{komalike}
\chapterstyle{madsen}
\pagestyle{Ruled}
%% margins
\setlength{\trimtop}{0pt}
\setlength{\trimedge}{\stockwidth}
\addtolength{\trimedge}{-\paperwidth}
\settypeblocksize{634pt}{448.13pt}{*}
\setulmargins{4cm}{*}{*}
\setlrmargins{*}{*}{1}
\setmarginnotes{17pt}{51pt}{\onelineskip}
\setheadfoot{\onelineskip}{2\onelineskip}
\setheaderspaces{*}{2\onelineskip}{*}
\checkandfixthelayout
%% Paragraphs
\setlength{\parskip}{1.3ex plus 0.2ex minus 0.2ex}
\setlength{\parindent}{0pt}
\fixpdflayout
%% ------------------------------------------------------------------- [ Lists ]
\newlist{inparaenum}{enumerate*}{1}
\setlist[inparaenum,1]{label=(\alph*)}
\newlist{inparadesc}{description*}{1}
\setlist[inparadesc,1]{font=\bfseries}
% Compact Lists
\newlist{compactitem}{itemize}{3}
\setlist[compactitem]{topsep=0pt,partopsep=0pt,itemsep=0pt,parsep=0pt}
\setlist[compactitem,1]{label=\textbullet}
\setlist[compactitem,2]{label=--}
\setlist[compactitem,3]{label=*}
\newlist{compactdesc}{description}{3}
\setlist[compactdesc]{topsep=0pt,partopsep=0pt,itemsep=0pt,parsep=0pt}
\newlist{compactenum}{enumerate}{3}
\setlist[compactenum]{topsep=0pt,partopsep=0pt,itemsep=0pt,parsep=0pt}
\setlist[compactenum,1]{label=\arabic*}
\setlist[compactenum,2]{label=\alph*}
\setlist[compactenum,3]{label=\roman*}
%% ------------------------------------------------------------------- [ Title ]
\setlength{\droptitle}{-12em}
\pretitle{%
\begin{flushright}\LARGE\sffamily
}
\posttitle{%
\par\end{flushright}
}
\preauthor{%
\begin{flushright}\large\vskip 0.25em
}
\postauthor{%
\par\end{flushright}
}
\predate{%
\begin{flushright}\large
}
\postdate{%
\par\end{flushright}
}
}
\endinput
%% --------------------------------------------------------------------- [ EOF ]