Skip to content
Snippets Groups Projects
Commit 67554d7e authored by Gregor Bellach's avatar Gregor Bellach
Browse files

move styling to preamble.tex

parent 15ee5e8e
Branches
No related tags found
No related merge requests found
% What belongs here?
%% Command definitions and redefinitions.
% Date calculation
\newcommand{\storeDate}[2]{
......@@ -10,24 +13,20 @@
\DTMsaveddateoffsettojulianday{#1}{#2}{\temp}
\DTMsavejulianday{#3}{\number\temp}
}
% Time format
\DTMnewtimestyle{hhmm}{%
% \DTMdisplaytime{<hh>}{<mm>}{<ss>}
\renewcommand{\DTMdisplaytime}[3]{\DTMtwodigits{##1}:\DTMtwodigits{##2} Uhr}
}
\DTMsettimestyle{hhmm} % sets style
\newcommand{\Time}[1]{\DTMusetime{#1}} % Shorthand for \DTMusetime
% Location Format
\newcommand{\loc}[1]{
#1\
%inserts a blank after each location
}
% Make use of the included custom font.
\newcommand{\customfont}[1]{{\usefont{T1}{custom}{m}{n} #1 }}
% Section labeling
\titleformat{\section}[display]{\Huge}{\thesection}{2em}
{
......@@ -39,6 +38,7 @@
\newcommand{\sectionSubtitle}[1]{\vspace{-1.4cm}\hspace{0.56cm}\large{#1}\normalsize\vspace{1.4cm}}
\newcommand{\mysection}[2]{\section{#1}\sectionSubtitle{\ #2}} % TODO: check whether section labelling works correctly. %%\label{sec:#1}}
\WithSuffix\newcommand\mysection*[2]{\section*{#1}\sectionSubtitle{\ #2}} % TODO: check whether section labelling works correctly. %%\label{sec:#1}}
%% Subsections
\newcommand{\mysubsection}[2]{
\subsection{\underline{#1}}
\vspace*{-.14cm}
......@@ -52,6 +52,7 @@
\vspace{\baselineskip}\\
}
% For the "Schedule" section
%% Use like \schedItem{Time}{Place}{What}{} if for everyone
%% Use like \schedItem{Time}{Place}{What}{AI, Info} if for some
......@@ -70,7 +71,7 @@
}
\end{minipage}\\
}
%% This is a prove of concept for the use with makros and DTM times. The above one might be easier
%% This is a proof of concept for the use with makros and DTM times. The above one might be easier
\WithSuffix\newcommand\schedItem*[4]{
\hspace*{.45cm} \textbullet \hspace{.15cm}
\begin{minipage}[t]{.8\columnwidth}
......@@ -93,6 +94,7 @@
\end{minipage}\\
}
% For the "Tipps & Tricks" section.
\newcommand{\tip}{
\parpic(1cm,1cm){\Huge \textbf{\ifnum\value{tip}<10 0\fi\thetip}}\stepcounter{tip}\noindent}
......@@ -100,10 +102,12 @@
\newcounter{tip}
\setcounter{tip}{0}
% For the "Glossary" section.
\newcommand{\illuminate}[1]{
\parpic(0cm,0.6cm){\Large \textbf{#1}}\noindent}
% Some German abbreviations
\newcommand{\zb}{z.\,B.\ }
\newcommand{\Zb}{Z.\,B.\ }
......@@ -112,5 +116,6 @@
\renewcommand{\dh}{d.\,h.\ } % The actual \dh just prints some stupid symbol. Fuck that symbol.
\newcommand{\Dh}{D.\,h.\ }
% Create empty pages
\newcommand{\emptypage}{\newpage\null\thispagestyle{empty}\clearpage}
\ No newline at end of file
\newcommand{\emptypage}{\newpage\null\thispagestyle{empty}\clearpage}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment