-
Notifications
You must be signed in to change notification settings - Fork 1
/
layoutsetup.tex
109 lines (88 loc) · 2.97 KB
/
layoutsetup.tex
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
%% Memoir layout setup
%% NOTE: You are strongly advised not to change any of them unless you
%% know what you are doing. These settings strongly interact in the
%% final look of the document.
% Dependencies
\usepackage{UCHILElogo}
% Turn extra space before chapter headings off.
\setlength{\beforechapskip}{0pt}
\nonzeroparskip
\parindent=0pt
\defaultlists
% Chapter style redefinition
\makeatletter
\if@twoside
\pagestyle{Ruled}
\copypagestyle{chapter}{Ruled}
\else
\pagestyle{ruled}
\copypagestyle{chapter}{ruled}
\fi
\makeoddhead{chapter}{}{}{}
\makeevenhead{chapter}{}{}{}
\makeheadrule{chapter}{\textwidth}{0pt}
\copypagestyle{abstract}{empty}
\makechapterstyle{bianchimod}{%
\chapterstyle{default}
\renewcommand*{\chapnamefont}{\normalfont\Large\sffamily}
\renewcommand*{\chapnumfont}{\normalfont\Large\sffamily}
\renewcommand*{\printchaptername}{%
\chapnamefont\centering\@chapapp}
\renewcommand*{\printchapternum}{\chapnumfont {\thechapter}}
\renewcommand*{\chaptitlefont}{\normalfont\huge\sffamily}
\renewcommand*{\printchaptertitle}[1]{%
\hrule\vskip\onelineskip \centering \chaptitlefont\textbf{\vphantom{gyM}##1}\par}
\renewcommand*{\afterchaptertitle}{\vskip\onelineskip \hrule\vskip
\afterchapskip}
\renewcommand*{\printchapternonum}{%
\vphantom{\chapnumfont {9}}\afterchapternum}}
% Use the newly defined style
\chapterstyle{bianchimod}
\setsecheadstyle{\Large\bfseries\sffamily}
\setsubsecheadstyle{\large\bfseries\sffamily}
\setsubsubsecheadstyle{\bfseries\sffamily}
\setparaheadstyle{\normalsize\bfseries\sffamily}
\setsubparaheadstyle{\normalsize\itshape\sffamily}
\setsubparaindent{0pt}
% Set captions to a more separated style for clearness
\captionnamefont{\sffamily\bfseries\footnotesize}
\captiontitlefont{\sffamily\footnotesize}
\setlength{\intextsep}{16pt}
\setlength{\belowcaptionskip}{1pt}
% Set section and TOC numbering depth to subsection
\setsecnumdepth{subsection}
\settocdepth{subsection}
%% Titlepage adjustments
\pretitle{\vspace{0pt plus 0.7fill}\begin{center}\HUGE\sffamily\bfseries}
\posttitle{\end{center}\par}
\preauthor{\par\begin{center}\let\and\\\Large\sffamily}
\postauthor{\end{center}}
\predate{\par\begin{center}\Large\sffamily}
\postdate{\end{center}}
\def\@advisors{}
\newcommand{\advisors}[1]{\def\@advisors{#1}}
\def\@department{}
\newcommand{\department}[1]{\def\@department{#1}}
\def\@thesistype{}
\newcommand{\thesistype}[1]{\def\@thesistype{#1}}
\renewcommand{\maketitlehooka}{\noindent\ETHlogo[2in]}
\renewcommand{\maketitlehookb}{\vspace{1in}%
\par\begin{center}\Large\sffamily\@thesistype\end{center}}
\renewcommand{\maketitlehookd}{%
\vfill\par
\begin{flushright}
\sffamily
\@advisors\par
\@department, Universidad de Chile
\end{flushright}
}
\checkandfixthelayout
\setlength{\droptitle}{-48pt}
\makeatother
% This defines how theorems should look. Best leave as is.
\theoremstyle{plain}
\setlength\theorempostskipamount{0pt}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "thesis"
%%% End: