[Style] Actually add shortcut & build
This commit is contained in:
104
dist/full.tex
vendored
104
dist/full.tex
vendored
@@ -30,7 +30,6 @@
|
|||||||
\usepackage{dsfont}
|
\usepackage{dsfont}
|
||||||
\usepackage{amssymb}
|
\usepackage{amssymb}
|
||||||
\usepackage{mathrsfs}
|
\usepackage{mathrsfs}
|
||||||
\usepackage{lipsum}
|
|
||||||
\usepackage{ulem}
|
\usepackage{ulem}
|
||||||
\usepackage{soul}
|
\usepackage{soul}
|
||||||
\usepackage{parskip}
|
\usepackage{parskip}
|
||||||
@@ -214,35 +213,35 @@
|
|||||||
|
|
||||||
% Global style configs for tcolorbox (to reduce bloat)
|
% Global style configs for tcolorbox (to reduce bloat)
|
||||||
\newcommand{\usetcolorboxes}{
|
\newcommand{\usetcolorboxes}{
|
||||||
\tcbset{
|
\tcbset{
|
||||||
mainboxstyle/.style={
|
mainboxstyle/.style={
|
||||||
arc=3mm,
|
arc=3mm,
|
||||||
colback=red!5!white,
|
colback=red!5!white,
|
||||||
colframe=red!75!black,
|
colframe=red!75!black,
|
||||||
colbacktitle=red!75!black,
|
colbacktitle=red!75!black,
|
||||||
fonttitle=\bfseries,
|
fonttitle=\bfseries,
|
||||||
enhanced,
|
enhanced,
|
||||||
attach boxed title to top left={yshift=-2mm,xshift=5mm},
|
attach boxed title to top left={yshift=-2mm,xshift=5mm},
|
||||||
breakable,
|
breakable,
|
||||||
top=0.4cm,
|
top=0.4cm,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
\tikzset{
|
\tikzset{
|
||||||
overlaystyle/.style={
|
overlaystyle/.style={
|
||||||
draw=red!75!black,
|
draw=red!75!black,
|
||||||
thick,
|
thick,
|
||||||
fill=red!75!black,
|
fill=red!75!black,
|
||||||
left,
|
left,
|
||||||
anchor=east,
|
anchor=east,
|
||||||
text=white,
|
text=white,
|
||||||
rounded corners=1mm,
|
rounded corners=1mm,
|
||||||
font=\bfseries,
|
font=\bfseries,
|
||||||
xshift=-5mm,
|
xshift=-5mm,
|
||||||
yshift=1mm,
|
yshift=1mm,
|
||||||
inner xsep=3mm,
|
inner xsep=3mm,
|
||||||
inner ysep=1.5mm
|
inner ysep=1.5mm
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
% -------------------- %
|
% -------------------- %
|
||||||
@@ -265,20 +264,22 @@
|
|||||||
\renewcommand{\footrulewidth}{0.4pt}
|
\renewcommand{\footrulewidth}{0.4pt}
|
||||||
\newcommand{\TODO}{\color{red} \hl{TODO:} \color{black}}
|
\newcommand{\TODO}{\color{red} \hl{TODO:} \color{black}}
|
||||||
\newcommand{\bi}[1]{\textbf{\textit{#1}}}
|
\newcommand{\bi}[1]{\textbf{\textit{#1}}}
|
||||||
|
\newcommand{\i}[1]{\textit{#1}}
|
||||||
|
\newcommand{\b}[1]{\textbf{#1}}
|
||||||
\renewcommand{\quote}[1]{``\textit{#1}''}
|
\renewcommand{\quote}[1]{``\textit{#1}''}
|
||||||
|
|
||||||
% Add a color shade (similar to \fhlc, but nicer boxes)
|
% Add a color shade (similar to \fhlc, but nicer boxes)
|
||||||
\newcommand{\background}[3]{\tcbox[on line,
|
\newcommand{\background}[3]{\tcbox[on line,
|
||||||
boxsep=2pt,
|
boxsep=2pt,
|
||||||
left=0pt,
|
left=0pt,
|
||||||
right=0pt,
|
right=0pt,
|
||||||
top=0pt,
|
top=0pt,
|
||||||
bottom=0pt,
|
bottom=0pt,
|
||||||
colframe=white,
|
colframe=white,
|
||||||
frame empty,
|
frame empty,
|
||||||
colback=#1!#2!white,
|
colback=#1!#2!white,
|
||||||
highlight math style={enhanced}
|
highlight math style={enhanced}
|
||||||
] {\textbf{#3}}}
|
] {\textbf{#3}}}
|
||||||
|
|
||||||
% Abstraction of background, where the brightness is set to 20%
|
% Abstraction of background, where the brightness is set to 20%
|
||||||
\newcommand{\shade}[2]{\background{#1}{\arabic{shadeStrength}}{#2}}
|
\newcommand{\shade}[2]{\background{#1}{\arabic{shadeStrength}}{#2}}
|
||||||
@@ -296,6 +297,12 @@
|
|||||||
% Add a colorbox around your text with the color specified. Text is bold and underlined
|
% Add a colorbox around your text with the color specified. Text is bold and underlined
|
||||||
\newcommand{\fhlc}[2]{\textbf{\underline{\colorbox{#1}{#2}}}}
|
\newcommand{\fhlc}[2]{\textbf{\underline{\colorbox{#1}{#2}}}}
|
||||||
|
|
||||||
|
% Draw box around links. First arg link, second arg display
|
||||||
|
\newcommand{\hlhref}[2]{\color{MidnightBlue}\fbox{\href{#1}{#2}}\color{black}}
|
||||||
|
|
||||||
|
% Same for urls (just one arg tho)
|
||||||
|
\newcommand{\hlurl}[1]{\color{MidnightBlue}\fbox{\url{#1}}\color{black}}
|
||||||
|
|
||||||
% Spacing (horizontal)
|
% Spacing (horizontal)
|
||||||
\newcommand{\smallhspace}{\hspace{2mm}}
|
\newcommand{\smallhspace}{\hspace{2mm}}
|
||||||
\newcommand{\mediumhspace}{\hspace{5mm}}
|
\newcommand{\mediumhspace}{\hspace{5mm}}
|
||||||
@@ -307,14 +314,14 @@
|
|||||||
|
|
||||||
% Print a table of contents as a tcolorbox
|
% Print a table of contents as a tcolorbox
|
||||||
\newcommand{\printtoc}[1]{
|
\newcommand{\printtoc}[1]{
|
||||||
\renewcommand{\cfttoctitlefont}{}
|
\renewcommand{\cfttoctitlefont}{}
|
||||||
\renewcommand{\cftaftertoctitle}{\vspace{-0.75cm}}
|
\renewcommand{\cftaftertoctitle}{\vspace{-0.75cm}}
|
||||||
\renewcommand{\contentsname}{}
|
\renewcommand{\contentsname}{}
|
||||||
\begin{tcolorbox}[colback=black!5!white,colbacktitle=#1!75!black,coltitle=black,enhanced,attach boxed title to top center={yshift=-2mm},
|
\begin{tcolorbox}[colback=black!5!white,colbacktitle=#1!75!black,coltitle=black,enhanced,attach boxed title to top center={yshift=-2mm},
|
||||||
title={\Large \ifnum\value{lang}<2{Contents}\else {Inhaltsverzeichnis}\fi},fonttitle=\bfseries,breakable]
|
title={\Large \ifnum\value{lang}<2{Contents}\else {Inhaltsverzeichnis}\fi},fonttitle=\bfseries,breakable]
|
||||||
\hspace{1cm}
|
\hspace{1cm}
|
||||||
\tableofcontents
|
\tableofcontents
|
||||||
\end{tcolorbox}
|
\end{tcolorbox}
|
||||||
}
|
}
|
||||||
|
|
||||||
%▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
|
%▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
|
||||||
@@ -977,7 +984,6 @@
|
|||||||
|
|
||||||
|
|
||||||
\usepackage{booktabs}
|
\usepackage{booktabs}
|
||||||
\usepackage{tabulary}
|
|
||||||
|
|
||||||
% Create new table. #1 Layout, #2 title row
|
% Create new table. #1 Layout, #2 title row
|
||||||
\newenvironment{tables}[2]{
|
\newenvironment{tables}[2]{
|
||||||
|
|||||||
101
dist/minimal.tex
vendored
101
dist/minimal.tex
vendored
@@ -30,7 +30,6 @@
|
|||||||
\usepackage{dsfont}
|
\usepackage{dsfont}
|
||||||
\usepackage{amssymb}
|
\usepackage{amssymb}
|
||||||
\usepackage{mathrsfs}
|
\usepackage{mathrsfs}
|
||||||
\usepackage{lipsum}
|
|
||||||
\usepackage{ulem}
|
\usepackage{ulem}
|
||||||
\usepackage{soul}
|
\usepackage{soul}
|
||||||
\usepackage{parskip}
|
\usepackage{parskip}
|
||||||
@@ -214,35 +213,35 @@
|
|||||||
|
|
||||||
% Global style configs for tcolorbox (to reduce bloat)
|
% Global style configs for tcolorbox (to reduce bloat)
|
||||||
\newcommand{\usetcolorboxes}{
|
\newcommand{\usetcolorboxes}{
|
||||||
\tcbset{
|
\tcbset{
|
||||||
mainboxstyle/.style={
|
mainboxstyle/.style={
|
||||||
arc=3mm,
|
arc=3mm,
|
||||||
colback=red!5!white,
|
colback=red!5!white,
|
||||||
colframe=red!75!black,
|
colframe=red!75!black,
|
||||||
colbacktitle=red!75!black,
|
colbacktitle=red!75!black,
|
||||||
fonttitle=\bfseries,
|
fonttitle=\bfseries,
|
||||||
enhanced,
|
enhanced,
|
||||||
attach boxed title to top left={yshift=-2mm,xshift=5mm},
|
attach boxed title to top left={yshift=-2mm,xshift=5mm},
|
||||||
breakable,
|
breakable,
|
||||||
top=0.4cm,
|
top=0.4cm,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
\tikzset{
|
\tikzset{
|
||||||
overlaystyle/.style={
|
overlaystyle/.style={
|
||||||
draw=red!75!black,
|
draw=red!75!black,
|
||||||
thick,
|
thick,
|
||||||
fill=red!75!black,
|
fill=red!75!black,
|
||||||
left,
|
left,
|
||||||
anchor=east,
|
anchor=east,
|
||||||
text=white,
|
text=white,
|
||||||
rounded corners=1mm,
|
rounded corners=1mm,
|
||||||
font=\bfseries,
|
font=\bfseries,
|
||||||
xshift=-5mm,
|
xshift=-5mm,
|
||||||
yshift=1mm,
|
yshift=1mm,
|
||||||
inner xsep=3mm,
|
inner xsep=3mm,
|
||||||
inner ysep=1.5mm
|
inner ysep=1.5mm
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
% -------------------- %
|
% -------------------- %
|
||||||
@@ -271,16 +270,16 @@
|
|||||||
|
|
||||||
% Add a color shade (similar to \fhlc, but nicer boxes)
|
% Add a color shade (similar to \fhlc, but nicer boxes)
|
||||||
\newcommand{\background}[3]{\tcbox[on line,
|
\newcommand{\background}[3]{\tcbox[on line,
|
||||||
boxsep=2pt,
|
boxsep=2pt,
|
||||||
left=0pt,
|
left=0pt,
|
||||||
right=0pt,
|
right=0pt,
|
||||||
top=0pt,
|
top=0pt,
|
||||||
bottom=0pt,
|
bottom=0pt,
|
||||||
colframe=white,
|
colframe=white,
|
||||||
frame empty,
|
frame empty,
|
||||||
colback=#1!#2!white,
|
colback=#1!#2!white,
|
||||||
highlight math style={enhanced}
|
highlight math style={enhanced}
|
||||||
] {\textbf{#3}}}
|
] {\textbf{#3}}}
|
||||||
|
|
||||||
% Abstraction of background, where the brightness is set to 20%
|
% Abstraction of background, where the brightness is set to 20%
|
||||||
\newcommand{\shade}[2]{\background{#1}{\arabic{shadeStrength}}{#2}}
|
\newcommand{\shade}[2]{\background{#1}{\arabic{shadeStrength}}{#2}}
|
||||||
@@ -298,6 +297,12 @@
|
|||||||
% Add a colorbox around your text with the color specified. Text is bold and underlined
|
% Add a colorbox around your text with the color specified. Text is bold and underlined
|
||||||
\newcommand{\fhlc}[2]{\textbf{\underline{\colorbox{#1}{#2}}}}
|
\newcommand{\fhlc}[2]{\textbf{\underline{\colorbox{#1}{#2}}}}
|
||||||
|
|
||||||
|
% Draw box around links. First arg link, second arg display
|
||||||
|
\newcommand{\hlhref}[2]{\color{MidnightBlue}\fbox{\href{#1}{#2}}\color{black}}
|
||||||
|
|
||||||
|
% Same for urls (just one arg tho)
|
||||||
|
\newcommand{\hlurl}[1]{\color{MidnightBlue}\fbox{\url{#1}}\color{black}}
|
||||||
|
|
||||||
% Spacing (horizontal)
|
% Spacing (horizontal)
|
||||||
\newcommand{\smallhspace}{\hspace{2mm}}
|
\newcommand{\smallhspace}{\hspace{2mm}}
|
||||||
\newcommand{\mediumhspace}{\hspace{5mm}}
|
\newcommand{\mediumhspace}{\hspace{5mm}}
|
||||||
@@ -309,14 +314,14 @@
|
|||||||
|
|
||||||
% Print a table of contents as a tcolorbox
|
% Print a table of contents as a tcolorbox
|
||||||
\newcommand{\printtoc}[1]{
|
\newcommand{\printtoc}[1]{
|
||||||
\renewcommand{\cfttoctitlefont}{}
|
\renewcommand{\cfttoctitlefont}{}
|
||||||
\renewcommand{\cftaftertoctitle}{\vspace{-0.75cm}}
|
\renewcommand{\cftaftertoctitle}{\vspace{-0.75cm}}
|
||||||
\renewcommand{\contentsname}{}
|
\renewcommand{\contentsname}{}
|
||||||
\begin{tcolorbox}[colback=black!5!white,colbacktitle=#1!75!black,coltitle=black,enhanced,attach boxed title to top center={yshift=-2mm},
|
\begin{tcolorbox}[colback=black!5!white,colbacktitle=#1!75!black,coltitle=black,enhanced,attach boxed title to top center={yshift=-2mm},
|
||||||
title={\Large \ifnum\value{lang}<2{Contents}\else {Inhaltsverzeichnis}\fi},fonttitle=\bfseries,breakable]
|
title={\Large \ifnum\value{lang}<2{Contents}\else {Inhaltsverzeichnis}\fi},fonttitle=\bfseries,breakable]
|
||||||
\hspace{1cm}
|
\hspace{1cm}
|
||||||
\tableofcontents
|
\tableofcontents
|
||||||
\end{tcolorbox}
|
\end{tcolorbox}
|
||||||
}
|
}
|
||||||
|
|
||||||
%▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
|
%▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
|
||||||
|
|||||||
104
dist/most.tex
vendored
104
dist/most.tex
vendored
@@ -30,7 +30,6 @@
|
|||||||
\usepackage{dsfont}
|
\usepackage{dsfont}
|
||||||
\usepackage{amssymb}
|
\usepackage{amssymb}
|
||||||
\usepackage{mathrsfs}
|
\usepackage{mathrsfs}
|
||||||
\usepackage{lipsum}
|
|
||||||
\usepackage{ulem}
|
\usepackage{ulem}
|
||||||
\usepackage{soul}
|
\usepackage{soul}
|
||||||
\usepackage{parskip}
|
\usepackage{parskip}
|
||||||
@@ -214,35 +213,35 @@
|
|||||||
|
|
||||||
% Global style configs for tcolorbox (to reduce bloat)
|
% Global style configs for tcolorbox (to reduce bloat)
|
||||||
\newcommand{\usetcolorboxes}{
|
\newcommand{\usetcolorboxes}{
|
||||||
\tcbset{
|
\tcbset{
|
||||||
mainboxstyle/.style={
|
mainboxstyle/.style={
|
||||||
arc=3mm,
|
arc=3mm,
|
||||||
colback=red!5!white,
|
colback=red!5!white,
|
||||||
colframe=red!75!black,
|
colframe=red!75!black,
|
||||||
colbacktitle=red!75!black,
|
colbacktitle=red!75!black,
|
||||||
fonttitle=\bfseries,
|
fonttitle=\bfseries,
|
||||||
enhanced,
|
enhanced,
|
||||||
attach boxed title to top left={yshift=-2mm,xshift=5mm},
|
attach boxed title to top left={yshift=-2mm,xshift=5mm},
|
||||||
breakable,
|
breakable,
|
||||||
top=0.4cm,
|
top=0.4cm,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
\tikzset{
|
\tikzset{
|
||||||
overlaystyle/.style={
|
overlaystyle/.style={
|
||||||
draw=red!75!black,
|
draw=red!75!black,
|
||||||
thick,
|
thick,
|
||||||
fill=red!75!black,
|
fill=red!75!black,
|
||||||
left,
|
left,
|
||||||
anchor=east,
|
anchor=east,
|
||||||
text=white,
|
text=white,
|
||||||
rounded corners=1mm,
|
rounded corners=1mm,
|
||||||
font=\bfseries,
|
font=\bfseries,
|
||||||
xshift=-5mm,
|
xshift=-5mm,
|
||||||
yshift=1mm,
|
yshift=1mm,
|
||||||
inner xsep=3mm,
|
inner xsep=3mm,
|
||||||
inner ysep=1.5mm
|
inner ysep=1.5mm
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
% -------------------- %
|
% -------------------- %
|
||||||
@@ -265,20 +264,22 @@
|
|||||||
\renewcommand{\footrulewidth}{0.4pt}
|
\renewcommand{\footrulewidth}{0.4pt}
|
||||||
\newcommand{\TODO}{\color{red} \hl{TODO:} \color{black}}
|
\newcommand{\TODO}{\color{red} \hl{TODO:} \color{black}}
|
||||||
\newcommand{\bi}[1]{\textbf{\textit{#1}}}
|
\newcommand{\bi}[1]{\textbf{\textit{#1}}}
|
||||||
|
\newcommand{\i}[1]{\textit{#1}}
|
||||||
|
\newcommand{\b}[1]{\textbf{#1}}
|
||||||
\renewcommand{\quote}[1]{``\textit{#1}''}
|
\renewcommand{\quote}[1]{``\textit{#1}''}
|
||||||
|
|
||||||
% Add a color shade (similar to \fhlc, but nicer boxes)
|
% Add a color shade (similar to \fhlc, but nicer boxes)
|
||||||
\newcommand{\background}[3]{\tcbox[on line,
|
\newcommand{\background}[3]{\tcbox[on line,
|
||||||
boxsep=2pt,
|
boxsep=2pt,
|
||||||
left=0pt,
|
left=0pt,
|
||||||
right=0pt,
|
right=0pt,
|
||||||
top=0pt,
|
top=0pt,
|
||||||
bottom=0pt,
|
bottom=0pt,
|
||||||
colframe=white,
|
colframe=white,
|
||||||
frame empty,
|
frame empty,
|
||||||
colback=#1!#2!white,
|
colback=#1!#2!white,
|
||||||
highlight math style={enhanced}
|
highlight math style={enhanced}
|
||||||
] {\textbf{#3}}}
|
] {\textbf{#3}}}
|
||||||
|
|
||||||
% Abstraction of background, where the brightness is set to 20%
|
% Abstraction of background, where the brightness is set to 20%
|
||||||
\newcommand{\shade}[2]{\background{#1}{\arabic{shadeStrength}}{#2}}
|
\newcommand{\shade}[2]{\background{#1}{\arabic{shadeStrength}}{#2}}
|
||||||
@@ -296,6 +297,12 @@
|
|||||||
% Add a colorbox around your text with the color specified. Text is bold and underlined
|
% Add a colorbox around your text with the color specified. Text is bold and underlined
|
||||||
\newcommand{\fhlc}[2]{\textbf{\underline{\colorbox{#1}{#2}}}}
|
\newcommand{\fhlc}[2]{\textbf{\underline{\colorbox{#1}{#2}}}}
|
||||||
|
|
||||||
|
% Draw box around links. First arg link, second arg display
|
||||||
|
\newcommand{\hlhref}[2]{\color{MidnightBlue}\fbox{\href{#1}{#2}}\color{black}}
|
||||||
|
|
||||||
|
% Same for urls (just one arg tho)
|
||||||
|
\newcommand{\hlurl}[1]{\color{MidnightBlue}\fbox{\url{#1}}\color{black}}
|
||||||
|
|
||||||
% Spacing (horizontal)
|
% Spacing (horizontal)
|
||||||
\newcommand{\smallhspace}{\hspace{2mm}}
|
\newcommand{\smallhspace}{\hspace{2mm}}
|
||||||
\newcommand{\mediumhspace}{\hspace{5mm}}
|
\newcommand{\mediumhspace}{\hspace{5mm}}
|
||||||
@@ -307,14 +314,14 @@
|
|||||||
|
|
||||||
% Print a table of contents as a tcolorbox
|
% Print a table of contents as a tcolorbox
|
||||||
\newcommand{\printtoc}[1]{
|
\newcommand{\printtoc}[1]{
|
||||||
\renewcommand{\cfttoctitlefont}{}
|
\renewcommand{\cfttoctitlefont}{}
|
||||||
\renewcommand{\cftaftertoctitle}{\vspace{-0.75cm}}
|
\renewcommand{\cftaftertoctitle}{\vspace{-0.75cm}}
|
||||||
\renewcommand{\contentsname}{}
|
\renewcommand{\contentsname}{}
|
||||||
\begin{tcolorbox}[colback=black!5!white,colbacktitle=#1!75!black,coltitle=black,enhanced,attach boxed title to top center={yshift=-2mm},
|
\begin{tcolorbox}[colback=black!5!white,colbacktitle=#1!75!black,coltitle=black,enhanced,attach boxed title to top center={yshift=-2mm},
|
||||||
title={\Large \ifnum\value{lang}<2{Contents}\else {Inhaltsverzeichnis}\fi},fonttitle=\bfseries,breakable]
|
title={\Large \ifnum\value{lang}<2{Contents}\else {Inhaltsverzeichnis}\fi},fonttitle=\bfseries,breakable]
|
||||||
\hspace{1cm}
|
\hspace{1cm}
|
||||||
\tableofcontents
|
\tableofcontents
|
||||||
\end{tcolorbox}
|
\end{tcolorbox}
|
||||||
}
|
}
|
||||||
|
|
||||||
%▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
|
%▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
|
||||||
@@ -977,7 +984,6 @@
|
|||||||
|
|
||||||
|
|
||||||
\usepackage{booktabs}
|
\usepackage{booktabs}
|
||||||
\usepackage{tabulary}
|
|
||||||
|
|
||||||
% Create new table. #1 Layout, #2 title row
|
% Create new table. #1 Layout, #2 title row
|
||||||
\newenvironment{tables}[2]{
|
\newenvironment{tables}[2]{
|
||||||
|
|||||||
104
dist/recommended.tex
vendored
104
dist/recommended.tex
vendored
@@ -30,7 +30,6 @@
|
|||||||
\usepackage{dsfont}
|
\usepackage{dsfont}
|
||||||
\usepackage{amssymb}
|
\usepackage{amssymb}
|
||||||
\usepackage{mathrsfs}
|
\usepackage{mathrsfs}
|
||||||
\usepackage{lipsum}
|
|
||||||
\usepackage{ulem}
|
\usepackage{ulem}
|
||||||
\usepackage{soul}
|
\usepackage{soul}
|
||||||
\usepackage{parskip}
|
\usepackage{parskip}
|
||||||
@@ -214,35 +213,35 @@
|
|||||||
|
|
||||||
% Global style configs for tcolorbox (to reduce bloat)
|
% Global style configs for tcolorbox (to reduce bloat)
|
||||||
\newcommand{\usetcolorboxes}{
|
\newcommand{\usetcolorboxes}{
|
||||||
\tcbset{
|
\tcbset{
|
||||||
mainboxstyle/.style={
|
mainboxstyle/.style={
|
||||||
arc=3mm,
|
arc=3mm,
|
||||||
colback=red!5!white,
|
colback=red!5!white,
|
||||||
colframe=red!75!black,
|
colframe=red!75!black,
|
||||||
colbacktitle=red!75!black,
|
colbacktitle=red!75!black,
|
||||||
fonttitle=\bfseries,
|
fonttitle=\bfseries,
|
||||||
enhanced,
|
enhanced,
|
||||||
attach boxed title to top left={yshift=-2mm,xshift=5mm},
|
attach boxed title to top left={yshift=-2mm,xshift=5mm},
|
||||||
breakable,
|
breakable,
|
||||||
top=0.4cm,
|
top=0.4cm,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
\tikzset{
|
\tikzset{
|
||||||
overlaystyle/.style={
|
overlaystyle/.style={
|
||||||
draw=red!75!black,
|
draw=red!75!black,
|
||||||
thick,
|
thick,
|
||||||
fill=red!75!black,
|
fill=red!75!black,
|
||||||
left,
|
left,
|
||||||
anchor=east,
|
anchor=east,
|
||||||
text=white,
|
text=white,
|
||||||
rounded corners=1mm,
|
rounded corners=1mm,
|
||||||
font=\bfseries,
|
font=\bfseries,
|
||||||
xshift=-5mm,
|
xshift=-5mm,
|
||||||
yshift=1mm,
|
yshift=1mm,
|
||||||
inner xsep=3mm,
|
inner xsep=3mm,
|
||||||
inner ysep=1.5mm
|
inner ysep=1.5mm
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
% -------------------- %
|
% -------------------- %
|
||||||
@@ -265,20 +264,22 @@
|
|||||||
\renewcommand{\footrulewidth}{0.4pt}
|
\renewcommand{\footrulewidth}{0.4pt}
|
||||||
\newcommand{\TODO}{\color{red} \hl{TODO:} \color{black}}
|
\newcommand{\TODO}{\color{red} \hl{TODO:} \color{black}}
|
||||||
\newcommand{\bi}[1]{\textbf{\textit{#1}}}
|
\newcommand{\bi}[1]{\textbf{\textit{#1}}}
|
||||||
|
\newcommand{\i}[1]{\textit{#1}}
|
||||||
|
\newcommand{\b}[1]{\textbf{#1}}
|
||||||
\renewcommand{\quote}[1]{``\textit{#1}''}
|
\renewcommand{\quote}[1]{``\textit{#1}''}
|
||||||
|
|
||||||
% Add a color shade (similar to \fhlc, but nicer boxes)
|
% Add a color shade (similar to \fhlc, but nicer boxes)
|
||||||
\newcommand{\background}[3]{\tcbox[on line,
|
\newcommand{\background}[3]{\tcbox[on line,
|
||||||
boxsep=2pt,
|
boxsep=2pt,
|
||||||
left=0pt,
|
left=0pt,
|
||||||
right=0pt,
|
right=0pt,
|
||||||
top=0pt,
|
top=0pt,
|
||||||
bottom=0pt,
|
bottom=0pt,
|
||||||
colframe=white,
|
colframe=white,
|
||||||
frame empty,
|
frame empty,
|
||||||
colback=#1!#2!white,
|
colback=#1!#2!white,
|
||||||
highlight math style={enhanced}
|
highlight math style={enhanced}
|
||||||
] {\textbf{#3}}}
|
] {\textbf{#3}}}
|
||||||
|
|
||||||
% Abstraction of background, where the brightness is set to 20%
|
% Abstraction of background, where the brightness is set to 20%
|
||||||
\newcommand{\shade}[2]{\background{#1}{\arabic{shadeStrength}}{#2}}
|
\newcommand{\shade}[2]{\background{#1}{\arabic{shadeStrength}}{#2}}
|
||||||
@@ -296,6 +297,12 @@
|
|||||||
% Add a colorbox around your text with the color specified. Text is bold and underlined
|
% Add a colorbox around your text with the color specified. Text is bold and underlined
|
||||||
\newcommand{\fhlc}[2]{\textbf{\underline{\colorbox{#1}{#2}}}}
|
\newcommand{\fhlc}[2]{\textbf{\underline{\colorbox{#1}{#2}}}}
|
||||||
|
|
||||||
|
% Draw box around links. First arg link, second arg display
|
||||||
|
\newcommand{\hlhref}[2]{\color{MidnightBlue}\fbox{\href{#1}{#2}}\color{black}}
|
||||||
|
|
||||||
|
% Same for urls (just one arg tho)
|
||||||
|
\newcommand{\hlurl}[1]{\color{MidnightBlue}\fbox{\url{#1}}\color{black}}
|
||||||
|
|
||||||
% Spacing (horizontal)
|
% Spacing (horizontal)
|
||||||
\newcommand{\smallhspace}{\hspace{2mm}}
|
\newcommand{\smallhspace}{\hspace{2mm}}
|
||||||
\newcommand{\mediumhspace}{\hspace{5mm}}
|
\newcommand{\mediumhspace}{\hspace{5mm}}
|
||||||
@@ -307,14 +314,14 @@
|
|||||||
|
|
||||||
% Print a table of contents as a tcolorbox
|
% Print a table of contents as a tcolorbox
|
||||||
\newcommand{\printtoc}[1]{
|
\newcommand{\printtoc}[1]{
|
||||||
\renewcommand{\cfttoctitlefont}{}
|
\renewcommand{\cfttoctitlefont}{}
|
||||||
\renewcommand{\cftaftertoctitle}{\vspace{-0.75cm}}
|
\renewcommand{\cftaftertoctitle}{\vspace{-0.75cm}}
|
||||||
\renewcommand{\contentsname}{}
|
\renewcommand{\contentsname}{}
|
||||||
\begin{tcolorbox}[colback=black!5!white,colbacktitle=#1!75!black,coltitle=black,enhanced,attach boxed title to top center={yshift=-2mm},
|
\begin{tcolorbox}[colback=black!5!white,colbacktitle=#1!75!black,coltitle=black,enhanced,attach boxed title to top center={yshift=-2mm},
|
||||||
title={\Large \ifnum\value{lang}<2{Contents}\else {Inhaltsverzeichnis}\fi},fonttitle=\bfseries,breakable]
|
title={\Large \ifnum\value{lang}<2{Contents}\else {Inhaltsverzeichnis}\fi},fonttitle=\bfseries,breakable]
|
||||||
\hspace{1cm}
|
\hspace{1cm}
|
||||||
\tableofcontents
|
\tableofcontents
|
||||||
\end{tcolorbox}
|
\end{tcolorbox}
|
||||||
}
|
}
|
||||||
|
|
||||||
%▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
|
%▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
|
||||||
@@ -977,7 +984,6 @@
|
|||||||
|
|
||||||
|
|
||||||
\usepackage{booktabs}
|
\usepackage{booktabs}
|
||||||
\usepackage{tabulary}
|
|
||||||
|
|
||||||
% Create new table. #1 Layout, #2 title row
|
% Create new table. #1 Layout, #2 title row
|
||||||
\newenvironment{tables}[2]{
|
\newenvironment{tables}[2]{
|
||||||
|
|||||||
@@ -10,35 +10,35 @@
|
|||||||
|
|
||||||
% Global style configs for tcolorbox (to reduce bloat)
|
% Global style configs for tcolorbox (to reduce bloat)
|
||||||
\newcommand{\usetcolorboxes}{
|
\newcommand{\usetcolorboxes}{
|
||||||
\tcbset{
|
\tcbset{
|
||||||
mainboxstyle/.style={
|
mainboxstyle/.style={
|
||||||
arc=3mm,
|
arc=3mm,
|
||||||
colback=red!5!white,
|
colback=red!5!white,
|
||||||
colframe=red!75!black,
|
colframe=red!75!black,
|
||||||
colbacktitle=red!75!black,
|
colbacktitle=red!75!black,
|
||||||
fonttitle=\bfseries,
|
fonttitle=\bfseries,
|
||||||
enhanced,
|
enhanced,
|
||||||
attach boxed title to top left={yshift=-2mm,xshift=5mm},
|
attach boxed title to top left={yshift=-2mm,xshift=5mm},
|
||||||
breakable,
|
breakable,
|
||||||
top=0.4cm,
|
top=0.4cm,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
\tikzset{
|
\tikzset{
|
||||||
overlaystyle/.style={
|
overlaystyle/.style={
|
||||||
draw=red!75!black,
|
draw=red!75!black,
|
||||||
thick,
|
thick,
|
||||||
fill=red!75!black,
|
fill=red!75!black,
|
||||||
left,
|
left,
|
||||||
anchor=east,
|
anchor=east,
|
||||||
text=white,
|
text=white,
|
||||||
rounded corners=1mm,
|
rounded corners=1mm,
|
||||||
font=\bfseries,
|
font=\bfseries,
|
||||||
xshift=-5mm,
|
xshift=-5mm,
|
||||||
yshift=1mm,
|
yshift=1mm,
|
||||||
inner xsep=3mm,
|
inner xsep=3mm,
|
||||||
inner ysep=1.5mm
|
inner ysep=1.5mm
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
% -------------------- %
|
% -------------------- %
|
||||||
@@ -61,20 +61,22 @@
|
|||||||
\renewcommand{\footrulewidth}{0.4pt}
|
\renewcommand{\footrulewidth}{0.4pt}
|
||||||
\newcommand{\TODO}{\color{red} \hl{TODO:} \color{black}}
|
\newcommand{\TODO}{\color{red} \hl{TODO:} \color{black}}
|
||||||
\newcommand{\bi}[1]{\textbf{\textit{#1}}}
|
\newcommand{\bi}[1]{\textbf{\textit{#1}}}
|
||||||
|
\newcommand{\i}[1]{\textit{#1}}
|
||||||
|
\newcommand{\b}[1]{\textbf{#1}}
|
||||||
\renewcommand{\quote}[1]{``\textit{#1}''}
|
\renewcommand{\quote}[1]{``\textit{#1}''}
|
||||||
|
|
||||||
% Add a color shade (similar to \fhlc, but nicer boxes)
|
% Add a color shade (similar to \fhlc, but nicer boxes)
|
||||||
\newcommand{\background}[3]{\tcbox[on line,
|
\newcommand{\background}[3]{\tcbox[on line,
|
||||||
boxsep=2pt,
|
boxsep=2pt,
|
||||||
left=0pt,
|
left=0pt,
|
||||||
right=0pt,
|
right=0pt,
|
||||||
top=0pt,
|
top=0pt,
|
||||||
bottom=0pt,
|
bottom=0pt,
|
||||||
colframe=white,
|
colframe=white,
|
||||||
frame empty,
|
frame empty,
|
||||||
colback=#1!#2!white,
|
colback=#1!#2!white,
|
||||||
highlight math style={enhanced}
|
highlight math style={enhanced}
|
||||||
] {\textbf{#3}}}
|
] {\textbf{#3}}}
|
||||||
|
|
||||||
% Abstraction of background, where the brightness is set to 20%
|
% Abstraction of background, where the brightness is set to 20%
|
||||||
\newcommand{\shade}[2]{\background{#1}{\arabic{shadeStrength}}{#2}}
|
\newcommand{\shade}[2]{\background{#1}{\arabic{shadeStrength}}{#2}}
|
||||||
@@ -109,12 +111,12 @@
|
|||||||
|
|
||||||
% Print a table of contents as a tcolorbox
|
% Print a table of contents as a tcolorbox
|
||||||
\newcommand{\printtoc}[1]{
|
\newcommand{\printtoc}[1]{
|
||||||
\renewcommand{\cfttoctitlefont}{}
|
\renewcommand{\cfttoctitlefont}{}
|
||||||
\renewcommand{\cftaftertoctitle}{\vspace{-0.75cm}}
|
\renewcommand{\cftaftertoctitle}{\vspace{-0.75cm}}
|
||||||
\renewcommand{\contentsname}{}
|
\renewcommand{\contentsname}{}
|
||||||
\begin{tcolorbox}[colback=black!5!white,colbacktitle=#1!75!black,coltitle=black,enhanced,attach boxed title to top center={yshift=-2mm},
|
\begin{tcolorbox}[colback=black!5!white,colbacktitle=#1!75!black,coltitle=black,enhanced,attach boxed title to top center={yshift=-2mm},
|
||||||
title={\Large \ifnum\value{lang}<2{Contents}\else {Inhaltsverzeichnis}\fi},fonttitle=\bfseries,breakable]
|
title={\Large \ifnum\value{lang}<2{Contents}\else {Inhaltsverzeichnis}\fi},fonttitle=\bfseries,breakable]
|
||||||
\hspace{1cm}
|
\hspace{1cm}
|
||||||
\tableofcontents
|
\tableofcontents
|
||||||
\end{tcolorbox}
|
\end{tcolorbox}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user