-
Notifications
You must be signed in to change notification settings - Fork 3
/
responseletter.cls
110 lines (84 loc) · 4.16 KB
/
responseletter.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
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
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{responseletter}[2016/06/21 v1.0]
% https://www.sharelatex.com/blog/2011/03/27/how-to-write-a-latex-class-file-and-design-your-own-cv.html
% https://www.sharelatex.com/blog/2013/06/28/how-to-write-a-latex-class-file-and-design-your-own-cv.html
\LoadClass[a4paper,11pt,
backaddress=false,
fromalign=right,
fromemail,
foldmarks=false,
foldmarks=blmtP,
fromlogo,
parskip=full]{scrlttr2}
\RequirePackage{iftex}
\input{config/font.inc.tex}
\RequirePackage{tangocolors}
\RequirePackage{xcolor}
% http://tex.stackexchange.com/questions/26071/how-can-i-have-colored-and-underlined-links-with-hyperref
\colorlet{linkcolor}{TangoAluminium4}
\RequirePackage[colorlinks=false,allbordercolors=linkcolor,breaklinks=true]{hyperref}
\RequirePackage{amsmath}
\RequirePackage{amssymb}
\RequirePackage{mathtools}
\RequirePackage{braket}
\newenvironment{figure}{\vspace{1em}}{\vspace{1em}}
\renewcommand{\caption}[2][]{\par Figure~#1:~#2.\par}
% http://tex.stackexchange.com/questions/26071/how-can-i-have-colored-and-underlined-links-with-hyperref
\makeatletter
\Hy@AtBeginDocument{%
\def\@pdfborder{0 0 1}% Overrides border definition set with colorlinks=true
\def\@pdfborderstyle{/S/U}% Overrides border style set with colorlinks=true
% Hyperlink border style will be underline of width 1pt
}
\makeatother
\input{config/definitions.tex}
\input{config/bib.inc.tex}
% http://tex.stackexchange.com/questions/203764/reduce-font-size-of-bibliography-overfull-bibliography
\renewcommand*{\bibfont}{\footnotesize}
\definecolor{quote}{named}{TangoAluminium4}
\definecolor{light}{named}{TangoAluminium4}
\definecolor{verylight}{named}{TangoAluminium3}
\definecolor{old}{named}{TangoScarletRed3}
\definecolor{answer}{named}{TangoSkyBlue2}
\definecolor{new}{named}{TangoChameleon3}
\definecolor{saying}{named}{TangoAluminium6}
\definecolor{action}{named}{TangoSkyBlue3}
\newcommand{\shortname}[1]{{\scshape\MakeLowercase{#1}}}
\newcommand{\showinitial}[1]{{\color{verylight}(\shortname{#1})}}
\addtokomafont{addressee}{\color{light}\sffamily}
\addtokomafont{placeanddate}{\color{light}\sffamily}
\addtokomafont{fromname}{\color{light}\sffamily}
\addtokomafont{fromaddress}{\color{light}\sffamily}
\addtokomafont{pagenumber}{\color{light}\sffamily}
\renewcommand{\TODO}[1]{{\color{red} \textbf{TODO:} #1}}
\newcommand{\replace}[2]{#2} % from Koen Tiels
\newcommand{\answer}[1]{{\color{answer}\shortname{EG:} #1\\}}
\newcommand{\question}[1]{#1}
\newcommand{\ans}[1]{\begin{answer}#1\end{answer}}
\newcommand{\action}[1]{{\color{action}\textbf{Action:} #1}}
\newcommand{\old}[1]{{\color{old}#1}}
\newcommand{\new}[1]{{\color{new}#1}}
\newcommand{\replacedBy}{{\large\ensuremath{\;\to\;}}}
% http://tex.stackexchange.com/questions/16141/align-marginpar-with-beginning-of-paragraph
\newcommand{\ifBothFilled}[3]{\notblank{#1}{\notblank{#2}{#3}{}}{}}
\newcommand{\oldnew}[3][]{\leavevmode\marginpar{\footnotesize\textsf{{\color{verylight}#1 {\color{old}#2}\ifBothFilled{#2}{#3}{ | }{\color{new}#3}}}}}
\newcommand{\oldnewpage}[2]{\oldnew[p.]{#1}{#2}}
\newcommand{\oldnewsection}[2]{\oldnew[§]{#1}{#2}}
\newcommand{\says}[2]{{\color{saying}{\shortname{{#1}}:} #2}\newline}
\makeatletter
% http://tex.stackexchange.com/questions/98740/if-i-redefine-a-command-that-has-a-starred-variant-will-that-always-disable-the
\newcommand{\section}{\@ifstar\@ssection\@ssection}
\newcommand{\@ssection}[1]{\par{\sffamily\Large\textbf{#1}}\par}
\newcommand{\subsection}[1]{\par{\sffamily\large\textbf{#1}}\par}
\makeatother
\newcommand{\omission}{{\color{light}[\ldots]}}
\newenvironment{assumption}[1]{{\par\textbf{Assumption #1:}}}{}
\newenvironment{remark}[1]{{\par\textbf{Remark #1:}}}{}
\newenvironment{property}[1]{{\par\textbf{Property #1:}}}{}
\newenvironment{oldquote}{\begin{quote}\color{old}}{\normalcolor \end{quote}}
\newenvironment{newquote}{\begin{quote}\color{new}}{\normalcolor \end{quote}}
\newcommand{\gls}[1]{#1}
\newcommand{\glspl}[1]{#1s}
\setkomavar{fromlogo}{\includegraphics[height=1.5cm]{VUB_logo}}
\setkomavar{enclseparator}[Attached]{:\,}
\setkomavar{firstfoot}{}