-
Notifications
You must be signed in to change notification settings - Fork 70
/
appendix.sty
52 lines (37 loc) · 1.37 KB
/
appendix.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
% ---- Format table of contents ----
% Customize table of contents
\usepackage[subfigure]{tocloft}
% Eliminate "Table of Contents"
\renewcommand{\contentsname}{}
% Set font size for content
\renewcommand{\cftsecfont}{\normalfont}
% Set font size for page numbers
\renewcommand{\cftsecpagefont}{\normalfont}
% Set separator after labels
\renewcommand{\cftsecaftersnum}{.}
\renewcommand{\cftsubsecaftersnum}{.}
% Set spacing between dots
\renewcommand{\cftdotsep}{10}
% Set spacing between sections
\setlength{\cftbeforesecskip}{0em}
% ---- Format sections ----
% Format section headings
\titleformat{\section}{\centering\large\bfseries}{Appendix~\thesection.}{1em}{}
% Format section labels
\renewcommand{\thesection}{\Alph{section}}
% Insert page break after each section
\newcommand{\sectionbreak}{\clearpage}
% ---- Format labels ----
% Add "A" in front of labels
\renewcommand{\thetheorem}{A\arabic{theorem}}
\renewcommand{\theproposition}{A\arabic{proposition}}
\renewcommand{\thelemma}{A\arabic{lemma}}
\renewcommand{\thecorollary}{A\arabic{corollary}}
\renewcommand{\thedefinition}{A\arabic{definition}}
\renewcommand{\theassumption}{A\arabic{assumption}}
\renewcommand{\theremark}{A\arabic{remark}}
\renewcommand{\thetable}{A\arabic{table}}
\renewcommand{\thefigure}{A\arabic{figure}}
\renewcommand{\theequation}{A\arabic{equation}}
% ---- Enable crossreferences ----
\usepackage{xr}