43 lines
1.1 KiB
TeX
43 lines
1.1 KiB
TeX
% My commands
|
|
|
|
% simply change font
|
|
\newcommand{\changefont}[3]{\fontfamily{#1} \fontseries{#2} \fontshape{#3} \selectfont}
|
|
|
|
% shortcuts with correct spacing
|
|
\newcommand{\ua}{\mbox{u.\,a.\ }}
|
|
\newcommand{\zB}{\mbox{z.\,B.\ }}
|
|
\newcommand{\dahe}{\mbox{d.\,h.\ }}
|
|
\newcommand{\Vgl}{Vgl.\ }
|
|
\newcommand{\bzw}{bzw.\ }
|
|
\newcommand{\evtl}{evtl.\ }
|
|
|
|
\newcommand{\bs}{$\backslash$}
|
|
|
|
% list element with bold headline
|
|
\newcommand{\itemd}[2]{\item{\textbf{#1}}\\{#2}}
|
|
|
|
% my cites
|
|
\newcommand{\fsCite}[2][\empty]{\ifthenelse{\equal{#1}{\empty}}{\citep{#2}}{\citep[#1]{#2}}}
|
|
\newcommand{\fsCiteYear}[1]{\citeyear{#1}}
|
|
|
|
% print authors
|
|
\newcommand{\fsAuthorName}[1]{\textsc{#1}}
|
|
\newcommand{\fsAuthor}[1]{\fsAuthorName{\citeauthor{#1}}}
|
|
|
|
% tables (booktabs)
|
|
\renewcommand{\arraystretch}{1.3}
|
|
|
|
% misc
|
|
|
|
\newcommand{\fsInput}[1]{\texttt{#1}}
|
|
\newcommand{\fsCode}[1]{\texttt{#1}}
|
|
\newcommand{\fsFile}[1]{\texttt{#1}}
|
|
\newcommand{\fsDatatype}[1]{\textsf{#1}}
|
|
\newcommand{\fsXML}[1]{\textsf{#1}}
|
|
|
|
\newcommand{\glossar}{Glossary}
|
|
|
|
% if you want to change language, redefine \lstlistlistingname here
|
|
%\renewcommand{\lstlistlistingname}{Verzeichnis der Listings}
|
|
|