aboutsummaryrefslogtreecommitdiff
path: root/main.tex
blob: 8b0f3e402023e08e2f5dc69d87f98229de3625dd (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
% APORIA 2025
% For licence: see LICENSE

\documentclass[twoside]{book}

\title{Aporia 25}
\author{University of St Andrews Philosophy Society}
\date{2025}

% Paper size and margins
\usepackage[
    a4paper,
    outer=1.625in,
    inner=1.125in,
    top=1.5in,
    bottom=1.5in
]{geometry}
% Fonts
\usepackage{ebgaramond-maths}
\usepackage{amssymb}                    % Math symbols (e.g. therefore)
\usepackage{enumitem}                   % indenting next line of list
\usepackage[scale=0.78]{plex-mono}      % Monospace font
\usepackage[T1]{fontenc}                % T1 character encoding
\usepackage{microtype}
\usepackage{hanging}                    % For bibliographies
\usepackage{ragged2e}
% Columns
\usepackage{multicol}
% Include PDFs
\usepackage[final]{pdfpages}
% Links
\usepackage[anythingbreaks]{breakurl}
\usepackage[hyphens]{url}
\usepackage{hyperref}
\hypersetup{
    colorlinks,
    linkcolor={red!50!black},
    citecolor={blue!50!black},
    urlcolor={blue!80!black}
    }
\urlstyle{tt}
% Headers
\usepackage{fancyhdr}
% Headings
\usepackage[raggedright]{titlesec}
% for cftchapleader and cftdotsep in Table of Contents
\usepackage{tocloft}
% for WithSuffix
\usepackage{suffix}
% for list processing tools
\usepackage{etoolbox}

% Gap definitions
\def \hangingindent {3em}
\def \credgap {15pt}
\def \ackgap {10pt}
% Table of contents
%   depth = 0 ; only display article entries in ToC (not other
%   headings)
\setcounter{tocdepth}{0}
%   dots in the listing for chapters
\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}}
% Heading styles
\renewcommand\thesection{\arabic{section}}

\titleformat{\chapter}[display]{\sffamily\LARGE\bfseries\raggedright}{}{0em}{}
\titlespacing*{\chapter}{0pt}{-50pt}{40pt}
\titleformat{\section}{\large\bfseries\raggedright}{{\sf\thesection}}{2em}{}
\titleformat{\subsection}{\bfseries}{{\sf\thesubsection}}{1.5em}{}
% Header style
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{%
\markboth{#1}{}}
\renewcommand{\headrulewidth}{0pt} % remove line under header
\fancyhead{}
\fancyhead[RO]{\small\sc\itshape\leftmark}
\fancyhead[LE]{\small\sc Aporia Vol. 25}
\fancyhead[RE]{\small\sc\itshape\leftmark}
\fancyhead[LO]{\small\sc Aporia Vol. 25}

% Define chapterauthor
\newcommand\chapterauthor[1]{\authortoc{#1}\printchapterauthor{#1}}
\WithSuffix\newcommand\chapterauthor*[1]{\printchapterauthor{#1}}
\makeatletter
\newcommand{\printchapterauthor}[1]{%
    {\parindent0pt\vspace*{-25pt}%
    \linespread{1.1}\large\scshape#1%
    \par\nobreak\vspace*{35pt}}
    \@afterheading%
}
\newcommand{\authortoc}[1]{%
    \addtocontents{toc}{\vskip-00pt}%
    \addtocontents{toc}{%
        \protect\contentsline{chapter}%
        {\hskip1.3em\mdseries\scshape\protect\normalsize#1}{}{}}
    \addtocontents{toc}{\vskip5pt}%
}
\makeatother
% Define acknowledgementlist
\makeatletter
\newcommand\acknowledgementlist[1]{%
    \forcsvlist{\acknowledgementlist@item}{#1}
}
\newcommand\acknowledgementlist@item[1]{
    \noindent#1%
    \par
    \vspace{\credgap}
}
\makeatother

% MAIN
\begin{document}
\frontmatter
\include{00-titlepage}
\include{01-foreword}
\include{02-letter-ed}
\include{03-acknowledgements}
\tableofcontents

\mainmatter
\include{papers/1}
\include{papers/4}

\backmatter
\include{90-contributors}
\cleardoublepage
\include{99-rear-cover}
\end{document}