-
Notifications
You must be signed in to change notification settings - Fork 13
/
poem.cls
52 lines (46 loc) · 1.52 KB
/
poem.cls
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
% Auth: Nicklas Vraa
% Docs: https://github.com/NicklasVraa/LiX
% ------------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{poem}[2023/02/10 For academic research papers]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions\relax
\LoadClass[12pt]{article}
% SETUP: -----------------------------------------------------------------------
\RequirePackage[basics, formatting, header, headings, metadata, ornaments, size]{lix}
\RequirePackage{miama}
% OVERRIDES: -------------------------------------------------------------------
\setlength\parindent{0pt}
\authorfont{\scriptsize}
\geometry{a5paper, top=40mm, left=35mm, right=35mm, bottom=35mm}
\setlength{\droptitle}{-5em}
\RenewDocumentCommand{\l}{mg}{
\lettrine[lines=1, loversize=-0.3, lraise=-0.1, findent=-2pt]{#1}{\IfValueTF{#2}{#2}{}}
}
% HEADER AND FOOTER: -----------------------------------------------------------
\fancypagestyle{plain}{%
\renewcommand{\headrulewidth}{0pt}%
\fancyhead[C]{%
\fmmfamily\scriptsize\theAuthor\ %
\@ifundefined{theDate}{}{%
- \theDate%
}
}%
\fancyfoot{}%
}
% LAYOUT: ----------------------------------------------------------------------
\wrap{%
\fmmfamily
\@ifundefined{theTitle}{}{%
\oldtitle{\Large\textbf{\theTitle}\vspace*{-12.5ex}}%
}
\oldauthor{}%
\olddate{}%
\@ifundefined{theTitle}{}{%
\maketitle%
}
\addMetadata
\addCorners
\addBorders
\centering
}