-
Notifications
You must be signed in to change notification settings - Fork 1
/
thesis.tex
123 lines (103 loc) · 2.48 KB
/
thesis.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
\documentclass{my_thesis}
% MUST BE COMPILED IN PDF, NOT DVI
\def\defcolor{goldfish} % Definition color
\def\theocolor{pond} % Theorem color
\def\excolor{pond} % Example color
\def\generaltheocolor{beach} % Color for corollaries, lemmas, propositions, etc
%% Tables
\def\tableheadcolorA{pond}
\def\tableheadcolorB{beach!80}
\def\shade{beach!70} % For alternating table colors
\renewcommand{\arraystretch}{1.1} % for more space between rows of tables
% For alternating colors in table columns
\newcolumntype{C}{>{\columncolor{\shade}}c} % center
\newcolumntype{L}{>{\columncolor{\shade}}l} % left
\usepackage{lipsum}
\title{The title}
\author{The author}
\date{The date}
\begin{document}
\maketitle
\chapter{A chapter}
\section{Theorem environments}
\begin{theorem}
{Description}
{refthis}
This is a theorem.
\end{theorem}
\begin{proof}
This is the proof.
\end{proof}
Reference to \Cref{theorem:refthis}
\begin{lemma}
{Description}
{refthis}
This is a lemma.
\end{lemma}
Reference to \Cref{lemma:refthis}
\begin{proposition}
{Description}
{refthis}
This is a proposition.
\end{proposition}
Reference to \Cref{proposition:refthis}
\begin{definition}
{Description}
{refthis}
This is a definition.
\end{definition}
Reference to \Cref{definition:refthis}
\begin{corollary}
{Description}
{refthis}
This is a corollary.
\end{corollary}
Reference to \Cref{corollary:refthis}
\begin{example}
{Description}
{refthis}
This is a example.
\end{example}
Reference to \Cref{example:refthis}
\begin{remark}
{Description}
{refthis}
This is a remark.
\end{remark}
Reference to \Cref{remark:refthis}
\section{Tables}
Using tableheadcolorA
\[
\rowcolors{2}{\shade}{white} % Alternating row colors, starting from row 2
\begin{array}{llll}
\rowcolor{\tableheadcolorA} % Header color
1 & 2 & 3 & 4\\
a & b & c & d\\
a & b & c & d\\
a & b & c & d\\
a & b & c & d\\
a & b & c & d\\
a & b & c & d\\
a & b & c & d\\
a & b & c & d\\
a & b & c & d
\end{array}
\]
Using tableheadcolorB
\[
\rowcolors{2}{\shade}{white} % Alternating row colors, starting from row 2
\begin{array}{llll}
\rowcolor{\tableheadcolorB} % Header color
1 & 2 & 3 & 4\\
a & b & c & d\\
a & b & c & d\\
a & b & c & d\\
a & b & c & d\\
a & b & c & d\\
a & b & c & d\\
a & b & c & d\\
a & b & c & d\\
a & b & c & d
\end{array}
\]
\end{document}