Repository navigation
Expand file tree
/
Copy pathelements.tex
More file actions
71 lines (58 loc) · 2.02 KB
/
Copy pathelements.tex
File metadata and controls
71 lines (58 loc) · 2.02 KB
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
%!TEX root = main.tex
% !TeX program = xelatex
%% CUSTOM ELEMENTS
% totally preventing pagebreaks inside this environement
\newenvironment{absolutelynopagebreak}
{\par\nobreak\vfil\penalty0\vfilneg
\vtop\bgroup}
{\par\xdef\tpd{\the\prevdepth}\egroup
\prevdepth=\tpd}
% for marking sections which are incomplete with a ToDo-Message
\newcommand{\incompletemarker}[1]{
\begin{quote}
\colorbox{SupportingDeepOrange}{ \textcolor{white}{\MineSign \vspace{0.01cm} INCOMPLETE {\scriptsize ToDo: #1}} }
\end{quote}
}
% pack entries in a list more tightly together
\providecommand{\tightlist}{
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}
}
% create fancy tables
\newcolumntype{$}{>{\global\let\currentrowstyle\relax}}
\newcolumntype{^}{>{\currentrowstyle}}
\newcommand{\rowstyle}[1]{\gdef\currentrowstyle{#1}%
#1\ignorespaces
}
\newcommand\stripedtablecaptionsave{} % makes sure \stripedtablecaptionsave is not in use
\newcommand\stripedtablelabelsave{} % makes sure \stripedtablecaptionsave is not in use
\newenvironment{stripedtable}[5]
{
\def\stripedtablecaptionsave{#1}%copies the value of the arguments for save use later
\def\stripedtablelabelsave{#2}%copies the value of the arguments for save use later
\begin{table}[htbp]
\begin{center}
\rowcolors{2}{#3!7}{white}
\begin{tabular}{$#4}
\arrayrulecolor{#3}
\toprule
\rowstyle{\bfseries}#5\\
\midrule
}
{
\bottomrule
\end{tabular}
\end{center}
\vspace{-0.5cm}
\caption{\stripedtablecaptionsave}
\stripedtablelabelsave
\end{table}
}
\newenvironment{stripedacenttable}[4]
{
\begin{stripedtable}{#1}{#2}{TertiaryAccentColor!15!Gray!70!White}{#3}{#4}
}
{
\end{stripedtable}
}
% put sources more easily into your footnotes
\newcommand{\footnotecite}[1]{\footnote{\emph{\cite{#1}}}}