fix(tcb): Titles not translating and spacing issues
Update helpers / build_helpers (push) Successful in 41s
Update helpers / build_helpers (push) Successful in 41s
This commit is contained in:
+1
-1
@@ -49,7 +49,7 @@ def generate_labels():
|
|||||||
fill={label}color!75!black
|
fill={label}color!75!black
|
||||||
] at (frame.north east)
|
] at (frame.north east)
|
||||||
{{
|
{{
|
||||||
\\large \\tr{{\\{label}NamingEN}}{{\\{label}NamingDE}}\\printLabel{{{label}}}
|
\\large \\tcbDescriptorTemplate{{{label}}}{{\\printLabel{{{label}}}}}
|
||||||
}};
|
}};
|
||||||
}}, #1
|
}}, #1
|
||||||
}}\n\n"""
|
}}\n\n"""
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
% These are used if no name is provided and argument #4 from above is the missing argument
|
% These are used if no name is provided and argument #4 from above is the missing argument
|
||||||
\newcommand{\anonymousShortDescriptorTemplate}[2]{\bg{#1color}{\shortNamingTranslate{#1} #2}\ }
|
\newcommand{\anonymousShortDescriptorTemplate}[2]{\bg{#1color}{\shortNamingTranslate{#1} #2}\ }
|
||||||
\newcommand{\anonymousInlineDescriptorTemplate}[2]{\bg{#1color}{\namingTranslate{#1} #2}\ }
|
\newcommand{\anonymousInlineDescriptorTemplate}[2]{\bg{#1color}{\namingTranslate{#1} #2}\ }
|
||||||
|
\newcommand{\tcbDescriptorTemplate}[2]{\namingTranslate{#1} #2}
|
||||||
|
|
||||||
% background command config (draws a small box around the content)
|
% background command config (draws a small box around the content)
|
||||||
\newcommand{\backgroundPadding}{2pt}
|
\newcommand{\backgroundPadding}{2pt}
|
||||||
|
|||||||
+305
-302
@@ -95,6 +95,78 @@
|
|||||||
\colorlet{propertiescolor}{purple}
|
\colorlet{propertiescolor}{purple}
|
||||||
|
|
||||||
|
|
||||||
|
% ┌ ┐
|
||||||
|
% │ General config │
|
||||||
|
% └ ┘
|
||||||
|
% Configure your author name here
|
||||||
|
\newcommand{\authorTitle}{Janis Hutz\\\url{https://janishutz.com}}
|
||||||
|
\newcommand{\authorHeaders}{Janis Hutz}
|
||||||
|
|
||||||
|
|
||||||
|
% ┌ ┐
|
||||||
|
% │ Rendering │
|
||||||
|
% └ ┘
|
||||||
|
% This is used to render the optional name argument in the descriptors
|
||||||
|
% Updating this function only has an effect if you are using the
|
||||||
|
% unmodified templates below or have updated them, but still use this function
|
||||||
|
\newcommand{\descriptorNameDisplay}[1]{\textit{(#1)}}
|
||||||
|
|
||||||
|
% Specify how the inline and short descriptors (e.g. Lemma, etc) are rendered.
|
||||||
|
% - #1 is the name of the descriptor
|
||||||
|
% - #2 is the number (correctly rendered according to settings and preceded with space if not disabled)
|
||||||
|
% - #3 is the name passed (non-empty asserted)
|
||||||
|
\newcommand{\shortDescriptorTemplate}[3]{\bg{#1color}{\shortNamingTranslate{#1} #2} \descriptorNameDisplay{#3}}
|
||||||
|
\newcommand{\inlineDescriptorTemplate}[3]{\bg{#1color}{\namingTranslate{#1} #2} \descriptorNameDisplay{#3}}
|
||||||
|
|
||||||
|
% These are used if no name is provided and argument #4 from above is the missing argument
|
||||||
|
\newcommand{\anonymousShortDescriptorTemplate}[2]{\bg{#1color}{\shortNamingTranslate{#1} #2}\ }
|
||||||
|
\newcommand{\anonymousInlineDescriptorTemplate}[2]{\bg{#1color}{\namingTranslate{#1} #2}\ }
|
||||||
|
\newcommand{\tcbDescriptorTemplate}[2]{\namingTranslate{#1} #2}
|
||||||
|
|
||||||
|
% background command config (draws a small box around the content)
|
||||||
|
\newcommand{\backgroundPadding}{2pt}
|
||||||
|
\newcommand{\backgroundRounding}{1pt}
|
||||||
|
|
||||||
|
|
||||||
|
% ┌ ┐
|
||||||
|
% │ Numbering │
|
||||||
|
% └ ┘
|
||||||
|
% Set a preset, can be combined, separate or off.
|
||||||
|
% If set to custom, all type specific commands need to be set below.
|
||||||
|
\newcommand{\numberingpreset}{combined}
|
||||||
|
|
||||||
|
% Specify how elements are to be numbered. Can be (X is the current number of the element):
|
||||||
|
% - none (X)
|
||||||
|
% - section (section.X)
|
||||||
|
% - subsection (section.subsection.X)
|
||||||
|
% - subsubsection (section.subsection.subsubsection.X)
|
||||||
|
% - paragraph (section.subsection.subsubsection.paragraph.X)
|
||||||
|
\newcommand{\subsectionnumbering}{subsection}
|
||||||
|
|
||||||
|
|
||||||
|
% Set for a specific type. Can each be combined, separate, default or off:
|
||||||
|
% If set to anything but 'default', it will override the overarching style
|
||||||
|
% set by \numberingpreset
|
||||||
|
\newcommand{\definitionnumbering}{default}
|
||||||
|
\newcommand{\theoremnumbering}{default}
|
||||||
|
\newcommand{\lemmanumbering}{default}
|
||||||
|
\newcommand{\corollarynumbering}{default}
|
||||||
|
\newcommand{\axiomnumbering}{default}
|
||||||
|
\newcommand{\factnumbering}{default}
|
||||||
|
\newcommand{\propositionnumbering}{default}
|
||||||
|
\newcommand{\examplenumbering}{default}
|
||||||
|
\newcommand{\formulanumbering}{default}
|
||||||
|
\newcommand{\remarknumbering}{default}
|
||||||
|
\newcommand{\proofnumbering}{default}
|
||||||
|
\newcommand{\intuitionnumbering}{default}
|
||||||
|
\newcommand{\termnumbering}{default}
|
||||||
|
\newcommand{\notationnumbering}{default}
|
||||||
|
\newcommand{\tasknumbering}{default}
|
||||||
|
\newcommand{\usagenumbering}{default}
|
||||||
|
\newcommand{\recallnumbering}{default}
|
||||||
|
\newcommand{\propertiesnumbering}{default}
|
||||||
|
|
||||||
|
|
||||||
% ┌ ┐
|
% ┌ ┐
|
||||||
% │ Naming │
|
% │ Naming │
|
||||||
% └ ┘
|
% └ ┘
|
||||||
@@ -178,77 +250,6 @@
|
|||||||
\newcommand{\propertiesShortNamingDE}{E}
|
\newcommand{\propertiesShortNamingDE}{E}
|
||||||
|
|
||||||
|
|
||||||
% ┌ ┐
|
|
||||||
% │ Numbering │
|
|
||||||
% └ ┘
|
|
||||||
% Set a preset, can be combined, separate or off.
|
|
||||||
% If set to custom, all type specific commands need to be set below.
|
|
||||||
\newcommand{\numberingpreset}{combined}
|
|
||||||
|
|
||||||
% Specify how elements are to be numbered. Can be (X is the current number of the element):
|
|
||||||
% - none (X)
|
|
||||||
% - section (section.X)
|
|
||||||
% - subsection (section.subsection.X)
|
|
||||||
% - subsubsection (section.subsection.subsubsection.X)
|
|
||||||
% - paragraph (section.subsection.subsubsection.paragraph.X)
|
|
||||||
\newcommand{\subsectionnumbering}{subsection}
|
|
||||||
|
|
||||||
|
|
||||||
% Set for a specific type. Can each be combined, separate, default or off:
|
|
||||||
% If set to anything but 'default', it will override the overarching style
|
|
||||||
% set by \numberingpreset
|
|
||||||
\newcommand{\definitionnumbering}{default}
|
|
||||||
\newcommand{\theoremnumbering}{default}
|
|
||||||
\newcommand{\lemmanumbering}{default}
|
|
||||||
\newcommand{\corollarynumbering}{default}
|
|
||||||
\newcommand{\axiomnumbering}{default}
|
|
||||||
\newcommand{\factnumbering}{default}
|
|
||||||
\newcommand{\propositionnumbering}{default}
|
|
||||||
\newcommand{\examplenumbering}{default}
|
|
||||||
\newcommand{\formulanumbering}{default}
|
|
||||||
\newcommand{\remarknumbering}{default}
|
|
||||||
\newcommand{\proofnumbering}{default}
|
|
||||||
\newcommand{\intuitionnumbering}{default}
|
|
||||||
\newcommand{\termnumbering}{default}
|
|
||||||
\newcommand{\notationnumbering}{default}
|
|
||||||
\newcommand{\tasknumbering}{default}
|
|
||||||
\newcommand{\usagenumbering}{default}
|
|
||||||
\newcommand{\recallnumbering}{default}
|
|
||||||
\newcommand{\propertiesnumbering}{default}
|
|
||||||
|
|
||||||
|
|
||||||
% ┌ ┐
|
|
||||||
% │ General config │
|
|
||||||
% └ ┘
|
|
||||||
% Configure your author name here
|
|
||||||
\newcommand{\authorTitle}{Janis Hutz\\\url{https://janishutz.com}}
|
|
||||||
\newcommand{\authorHeaders}{Janis Hutz}
|
|
||||||
|
|
||||||
|
|
||||||
% ┌ ┐
|
|
||||||
% │ Rendering │
|
|
||||||
% └ ┘
|
|
||||||
% This is used to render the optional name argument in the descriptors
|
|
||||||
% Updating this function only has an effect if you are using the
|
|
||||||
% unmodified templates below or have updated them, but still use this function
|
|
||||||
\newcommand{\descriptorNameDisplay}[1]{\textit{(#1)}}
|
|
||||||
|
|
||||||
% Specify how the inline and short descriptors (e.g. Lemma, etc) are rendered.
|
|
||||||
% - #1 is the name of the descriptor
|
|
||||||
% - #2 is the number (correctly rendered according to settings and preceded with space if not disabled)
|
|
||||||
% - #3 is the name passed (non-empty asserted)
|
|
||||||
\newcommand{\shortDescriptorTemplate}[3]{\bg{#1color}{\shortNamingTranslate{#1} #2} \descriptorNameDisplay{#3}}
|
|
||||||
\newcommand{\inlineDescriptorTemplate}[3]{\bg{#1color}{\namingTranslate{#1} #2} \descriptorNameDisplay{#3}}
|
|
||||||
|
|
||||||
% These are used if no name is provided and argument #4 from above is the missing argument
|
|
||||||
\newcommand{\anonymousShortDescriptorTemplate}[2]{\bg{#1color}{\shortNamingTranslate{#1} #2}\ }
|
|
||||||
\newcommand{\anonymousInlineDescriptorTemplate}[2]{\bg{#1color}{\namingTranslate{#1} #2}\ }
|
|
||||||
|
|
||||||
% background command config (draws a small box around the content)
|
|
||||||
\newcommand{\backgroundPadding}{2pt}
|
|
||||||
\newcommand{\backgroundRounding}{1pt}
|
|
||||||
|
|
||||||
|
|
||||||
\newcounter{definitionnone}
|
\newcounter{definitionnone}
|
||||||
\newcounter{definitionsection}[section]
|
\newcounter{definitionsection}[section]
|
||||||
\renewcommand{\thedefinitionsection}{\thesection.\arabic{definitionsection}}
|
\renewcommand{\thedefinitionsection}{\thesection.\arabic{definitionsection}}
|
||||||
@@ -270,7 +271,7 @@
|
|||||||
fill=definitioncolor!75!black
|
fill=definitioncolor!75!black
|
||||||
] at (frame.north east)
|
] at (frame.north east)
|
||||||
{
|
{
|
||||||
\large \tr{\definitionNamingEN}{\definitionNamingDE}\printLabel{definition}
|
\large \tcbDescriptorTemplate{definition}{\printLabel{definition}}
|
||||||
};
|
};
|
||||||
}, #1
|
}, #1
|
||||||
}
|
}
|
||||||
@@ -296,7 +297,7 @@
|
|||||||
fill=examplecolor!75!black
|
fill=examplecolor!75!black
|
||||||
] at (frame.north east)
|
] at (frame.north east)
|
||||||
{
|
{
|
||||||
\large \tr{\exampleNamingEN}{\exampleNamingDE}\printLabel{example}
|
\large \tcbDescriptorTemplate{example}{\printLabel{example}}
|
||||||
};
|
};
|
||||||
}, #1
|
}, #1
|
||||||
}
|
}
|
||||||
@@ -322,7 +323,7 @@
|
|||||||
fill=theoremcolor!75!black
|
fill=theoremcolor!75!black
|
||||||
] at (frame.north east)
|
] at (frame.north east)
|
||||||
{
|
{
|
||||||
\large \tr{\theoremNamingEN}{\theoremNamingDE}\printLabel{theorem}
|
\large \tcbDescriptorTemplate{theorem}{\printLabel{theorem}}
|
||||||
};
|
};
|
||||||
}, #1
|
}, #1
|
||||||
}
|
}
|
||||||
@@ -348,7 +349,7 @@
|
|||||||
fill=lemmacolor!75!black
|
fill=lemmacolor!75!black
|
||||||
] at (frame.north east)
|
] at (frame.north east)
|
||||||
{
|
{
|
||||||
\large \tr{\lemmaNamingEN}{\lemmaNamingDE}\printLabel{lemma}
|
\large \tcbDescriptorTemplate{lemma}{\printLabel{lemma}}
|
||||||
};
|
};
|
||||||
}, #1
|
}, #1
|
||||||
}
|
}
|
||||||
@@ -374,7 +375,7 @@
|
|||||||
fill=corollarycolor!75!black
|
fill=corollarycolor!75!black
|
||||||
] at (frame.north east)
|
] at (frame.north east)
|
||||||
{
|
{
|
||||||
\large \tr{\corollaryNamingEN}{\corollaryNamingDE}\printLabel{corollary}
|
\large \tcbDescriptorTemplate{corollary}{\printLabel{corollary}}
|
||||||
};
|
};
|
||||||
}, #1
|
}, #1
|
||||||
}
|
}
|
||||||
@@ -400,7 +401,7 @@
|
|||||||
fill=propositioncolor!75!black
|
fill=propositioncolor!75!black
|
||||||
] at (frame.north east)
|
] at (frame.north east)
|
||||||
{
|
{
|
||||||
\large \tr{\propositionNamingEN}{\propositionNamingDE}\printLabel{proposition}
|
\large \tcbDescriptorTemplate{proposition}{\printLabel{proposition}}
|
||||||
};
|
};
|
||||||
}, #1
|
}, #1
|
||||||
}
|
}
|
||||||
@@ -426,7 +427,7 @@
|
|||||||
fill=axiomcolor!75!black
|
fill=axiomcolor!75!black
|
||||||
] at (frame.north east)
|
] at (frame.north east)
|
||||||
{
|
{
|
||||||
\large \tr{\axiomNamingEN}{\axiomNamingDE}\printLabel{axiom}
|
\large \tcbDescriptorTemplate{axiom}{\printLabel{axiom}}
|
||||||
};
|
};
|
||||||
}, #1
|
}, #1
|
||||||
}
|
}
|
||||||
@@ -452,7 +453,7 @@
|
|||||||
fill=factcolor!75!black
|
fill=factcolor!75!black
|
||||||
] at (frame.north east)
|
] at (frame.north east)
|
||||||
{
|
{
|
||||||
\large \tr{\factNamingEN}{\factNamingDE}\printLabel{fact}
|
\large \tcbDescriptorTemplate{fact}{\printLabel{fact}}
|
||||||
};
|
};
|
||||||
}, #1
|
}, #1
|
||||||
}
|
}
|
||||||
@@ -478,7 +479,7 @@
|
|||||||
fill=formulacolor!75!black
|
fill=formulacolor!75!black
|
||||||
] at (frame.north east)
|
] at (frame.north east)
|
||||||
{
|
{
|
||||||
\large \tr{\formulaNamingEN}{\formulaNamingDE}\printLabel{formula}
|
\large \tcbDescriptorTemplate{formula}{\printLabel{formula}}
|
||||||
};
|
};
|
||||||
}, #1
|
}, #1
|
||||||
}
|
}
|
||||||
@@ -504,7 +505,7 @@
|
|||||||
fill=remarkcolor!75!black
|
fill=remarkcolor!75!black
|
||||||
] at (frame.north east)
|
] at (frame.north east)
|
||||||
{
|
{
|
||||||
\large \tr{\remarkNamingEN}{\remarkNamingDE}\printLabel{remark}
|
\large \tcbDescriptorTemplate{remark}{\printLabel{remark}}
|
||||||
};
|
};
|
||||||
}, #1
|
}, #1
|
||||||
}
|
}
|
||||||
@@ -703,20 +704,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
% Add glossaries functionality
|
|
||||||
|
|
||||||
\newcommand{\setupGlossary}{
|
|
||||||
\usepackage[nonumberlist, toc]{glossaries}
|
|
||||||
\usepackage[nottoc, numbib]{tocbibind}
|
|
||||||
\makenoidxglossaries
|
|
||||||
}
|
|
||||||
|
|
||||||
\newcommand{\printGlossary}{
|
|
||||||
\glsaddall
|
|
||||||
\printnoidxglossaries
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
% ┌ ┐
|
% ┌ ┐
|
||||||
% │ Math │
|
% │ Math │
|
||||||
% └ ┘
|
% └ ┘
|
||||||
@@ -858,6 +845,95 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
% ┌ ┐
|
||||||
|
% │ Index │
|
||||||
|
% └ ┘
|
||||||
|
|
||||||
|
% For using index package
|
||||||
|
\newcommand{\prepareIndex}{
|
||||||
|
\usepackage[T1]{fontenc}
|
||||||
|
\usepackage{imakeidx}
|
||||||
|
\makeindex
|
||||||
|
}
|
||||||
|
|
||||||
|
\newcommand{\addIndexBold}[1]{\textbf{\index{\MakeLowercase{#1}} #1}}
|
||||||
|
\newcommand{\addIndexBI}[1]{\textbf\textit{{\index{\MakeLowercase{#1}} #1}}}
|
||||||
|
\newcommand{\addIndexItalic}[1]{\textit{\index{\MakeLowercase{#1}} #1}}
|
||||||
|
\newcommand{\addIndex}[1]{\index{\MakeLowercase{#1}} #1}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
% ┌ ┐
|
||||||
|
% │ Tables │
|
||||||
|
% └ ┘
|
||||||
|
|
||||||
|
\usepackage{booktabs}
|
||||||
|
\usepackage{tabulary}
|
||||||
|
|
||||||
|
% Create new table. #1 Layout, #2 title row
|
||||||
|
\newenvironment{tables}[2]{
|
||||||
|
\begin{center}
|
||||||
|
\begin{tabular}{#1}
|
||||||
|
\toprule
|
||||||
|
#2 \\
|
||||||
|
\midrule
|
||||||
|
}{
|
||||||
|
\bottomrule
|
||||||
|
\end{tabular}
|
||||||
|
\end{center}
|
||||||
|
}
|
||||||
|
|
||||||
|
% Create new table in table env. #1 layout, #2 title row, #3 caption
|
||||||
|
\newenvironment{fullTable}[3]{
|
||||||
|
\edef\tableCaption{#3}
|
||||||
|
\begin{table}[h!]
|
||||||
|
\begin{tables}{#1}{#2}
|
||||||
|
}{
|
||||||
|
\end{tables}
|
||||||
|
\caption{\tableCaption}
|
||||||
|
\end{table}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
% Add glossaries functionality
|
||||||
|
|
||||||
|
\newcommand{\setupGlossary}{
|
||||||
|
\usepackage[nonumberlist, toc]{glossaries}
|
||||||
|
\usepackage[nottoc, numbib]{tocbibind}
|
||||||
|
\makenoidxglossaries
|
||||||
|
}
|
||||||
|
|
||||||
|
\newcommand{\printGlossary}{
|
||||||
|
\glsaddall
|
||||||
|
\printnoidxglossaries
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
% ┌ ┐
|
||||||
|
% │ Translation │
|
||||||
|
% └ ┘
|
||||||
|
\newcommand{\translate}[2]{%
|
||||||
|
\ifthenelse{\equal{\currentLanguage}{en}}{#1}{#2}%
|
||||||
|
}
|
||||||
|
\newcommand{\tr}[2]{\translate{#1}{#2}}
|
||||||
|
\newcommand{\safetr}[2]{\protecting{\translate{#1}{#2}}}
|
||||||
|
\newcommand{\namingTranslate}[1]{\translate{\printTranslationOptionEN{#1}}{\printTranslationOptionDE{#1}}}
|
||||||
|
\newcommand{\shortNamingTranslate}[1]{\translate{\printShortTranslationOptionEN{#1}}{\printShortTranslationOptionDE{#1}}}
|
||||||
|
|
||||||
|
% Translation aids (commonly used)
|
||||||
|
\newcommand{\trif}{\translate{if }{falls }}
|
||||||
|
\newcommand{\trIf}{\translate{If }{Falls }}
|
||||||
|
\newcommand{\trLet}{\translate{Let }{Sei }}
|
||||||
|
\newcommand{\trLets}{\translate{Let }{Seien }}
|
||||||
|
\newcommand{\trFor}{\translate{For }{Für }}
|
||||||
|
\newcommand{\trfor}{\translate{for }{für }}
|
||||||
|
\newcommand{\trand}{\translate{and }{und }}
|
||||||
|
\newcommand{\tror}{\translate{or }{oder }}
|
||||||
|
\newcommand{\trst}{\translate{s.t. }{s.d. }}
|
||||||
|
\newcommand{\trsuchthat}{\translate{such that }{so dass }}
|
||||||
|
\newcommand{\trwith}{\translate{with }{mit }}
|
||||||
|
|
||||||
|
|
||||||
% ┌ ┐
|
% ┌ ┐
|
||||||
% │ Setup │
|
% │ Setup │
|
||||||
% └ ┘
|
% └ ┘
|
||||||
@@ -951,49 +1027,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
% ┌ ┐
|
|
||||||
% │ Translation │
|
|
||||||
% └ ┘
|
|
||||||
\newcommand{\translate}[2]{%
|
|
||||||
\ifthenelse{\equal{\currentLanguage}{en}}{#1}{#2}%
|
|
||||||
}
|
|
||||||
\newcommand{\tr}[2]{\translate{#1}{#2}}
|
|
||||||
\newcommand{\safetr}[2]{\protecting{\translate{#1}{#2}}}
|
|
||||||
\newcommand{\namingTranslate}[1]{\translate{\printTranslationOptionEN{#1}}{\printTranslationOptionDE{#1}}}
|
|
||||||
\newcommand{\shortNamingTranslate}[1]{\translate{\printShortTranslationOptionEN{#1}}{\printShortTranslationOptionDE{#1}}}
|
|
||||||
|
|
||||||
% Translation aids (commonly used)
|
|
||||||
\newcommand{\trif}{\translate{if }{falls }}
|
|
||||||
\newcommand{\trIf}{\translate{If }{Falls }}
|
|
||||||
\newcommand{\trLet}{\translate{Let }{Sei }}
|
|
||||||
\newcommand{\trLets}{\translate{Let }{Seien }}
|
|
||||||
\newcommand{\trFor}{\translate{For }{Für }}
|
|
||||||
\newcommand{\trfor}{\translate{for }{für }}
|
|
||||||
\newcommand{\trand}{\translate{and }{und }}
|
|
||||||
\newcommand{\tror}{\translate{or }{oder }}
|
|
||||||
\newcommand{\trst}{\translate{s.t. }{s.d. }}
|
|
||||||
\newcommand{\trsuchthat}{\translate{such that }{so dass }}
|
|
||||||
\newcommand{\trwith}{\translate{with }{mit }}
|
|
||||||
|
|
||||||
|
|
||||||
% ┌ ┐
|
|
||||||
% │ Index │
|
|
||||||
% └ ┘
|
|
||||||
|
|
||||||
% For using index package
|
|
||||||
\newcommand{\prepareIndex}{
|
|
||||||
\usepackage[T1]{fontenc}
|
|
||||||
\usepackage{imakeidx}
|
|
||||||
\makeindex
|
|
||||||
}
|
|
||||||
|
|
||||||
\newcommand{\addIndexBold}[1]{\textbf{\index{\MakeLowercase{#1}} #1}}
|
|
||||||
\newcommand{\addIndexBI}[1]{\textbf\textit{{\index{\MakeLowercase{#1}} #1}}}
|
|
||||||
\newcommand{\addIndexItalic}[1]{\textit{\index{\MakeLowercase{#1}} #1}}
|
|
||||||
\newcommand{\addIndex}[1]{\index{\MakeLowercase{#1}} #1}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
% ░▒█▀▀▄░▄▀▀▄░█▀▄▀█░▄▀▀▄░█░▒█░▀█▀░█▀▀░█▀▀▄░░░▒█▀▀▀█░█▀▄░░▀░░█▀▀░█▀▀▄░█▀▄░█▀▀
|
% ░▒█▀▀▄░▄▀▀▄░█▀▄▀█░▄▀▀▄░█░▒█░▀█▀░█▀▀░█▀▀▄░░░▒█▀▀▀█░█▀▄░░▀░░█▀▀░█▀▀▄░█▀▄░█▀▀
|
||||||
% ░▒█░░░░█░░█░█░▀░█░█▄▄█░█░▒█░░█░░█▀▀░█▄▄▀░░░░▀▀▀▄▄░█░░░░█▀░█▀▀░█░▒█░█░░░█▀▀
|
% ░▒█░░░░█░░█░█░▀░█░█▄▄█░█░▒█░░█░░█▀▀░█▄▄▀░░░░▀▀▀▄▄░█░░░░█▀░█▀▀░█░▒█░█░░░█▀▀
|
||||||
@@ -1026,109 +1059,6 @@
|
|||||||
\newcommand{\class}{\text{\tr{Cl}{Kl}}}
|
\newcommand{\class}{\text{\tr{Cl}{Kl}}}
|
||||||
|
|
||||||
|
|
||||||
% ┌ ┐
|
|
||||||
% │ Tables │
|
|
||||||
% └ ┘
|
|
||||||
|
|
||||||
\usepackage{booktabs}
|
|
||||||
\usepackage{tabulary}
|
|
||||||
|
|
||||||
% Create new table. #1 Layout, #2 title row
|
|
||||||
\newenvironment{tables}[2]{
|
|
||||||
\begin{center}
|
|
||||||
\begin{tabular}{#1}
|
|
||||||
\toprule
|
|
||||||
#2 \\
|
|
||||||
\midrule
|
|
||||||
}{
|
|
||||||
\bottomrule
|
|
||||||
\end{tabular}
|
|
||||||
\end{center}
|
|
||||||
}
|
|
||||||
|
|
||||||
% Create new table in table env. #1 layout, #2 title row, #3 caption
|
|
||||||
\newenvironment{fullTable}[3]{
|
|
||||||
\edef\tableCaption{#3}
|
|
||||||
\begin{table}[h!]
|
|
||||||
\begin{tables}{#1}{#2}
|
|
||||||
}{
|
|
||||||
\end{tables}
|
|
||||||
\caption{\tableCaption}
|
|
||||||
\end{table}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
% ┌ ┐
|
|
||||||
% │ Counter numbering │
|
|
||||||
% └ ┘
|
|
||||||
\newcommand{\preEnvHook}[1]{%
|
|
||||||
\stepLabelNumber{combined}%
|
|
||||||
\ifthenelse{\equal{\numberingpreset}{combined}}{%
|
|
||||||
\ifthenelse{\equal{\printNumberingConfigForDescriptor{#1}}{default}}{
|
|
||||||
\stepLabelNumber{combined}%
|
|
||||||
}{}%
|
|
||||||
}{%
|
|
||||||
\ifthenelse{\equal{\printNumberingConfigForDescriptor{#1}}{combined}}{%
|
|
||||||
\stepLabelNumber{combined}%
|
|
||||||
}{}%
|
|
||||||
}%
|
|
||||||
}
|
|
||||||
|
|
||||||
% Decides on the numbering to use (combined or not)
|
|
||||||
\newcommand{\loadNumberingConfiguration}{%
|
|
||||||
\ifthenelse{\boolean{numberingDisabled}}{%
|
|
||||||
\renewcommand{\thetable}{\arabic{table}}
|
|
||||||
\renewcommand{\thefigure}{\arabic{figure}}
|
|
||||||
}{
|
|
||||||
\ifthenelse{\equal{\numberingpreset}{combined}}{%
|
|
||||||
\ifthenelse{\equal{\subsectionnumbering}{none}}{
|
|
||||||
\renewcommand{\thetable}{\arabic{combinednone}}
|
|
||||||
\renewcommand{\thefigure}{\arabic{combinednone}}
|
|
||||||
}{%
|
|
||||||
\renewcommand{\thetable}{\ssprinter.\arabic{combined\subsectionnumbering}}
|
|
||||||
\renewcommand{\thefigure}{\ssprinter.\arabic{combined\subsectionnumbering}}
|
|
||||||
}%
|
|
||||||
}{%
|
|
||||||
\ifthenelse{\equal{\numberingpreset}{separate}}{
|
|
||||||
\ifthenelse{\equal{\subsectionnumbering}{none}}{}{
|
|
||||||
\renewcommand{\thetable}{\ssprinter.\arabic{table}}
|
|
||||||
\renewcommand{\thefigure}{\ssprinter.\arabic{figure}}
|
|
||||||
}
|
|
||||||
}{%
|
|
||||||
\renewcommand{\thetable}{\arabic{table}}
|
|
||||||
\renewcommand{\thefigure}{\arabic{figure}}
|
|
||||||
}%
|
|
||||||
}%
|
|
||||||
}%
|
|
||||||
}
|
|
||||||
|
|
||||||
% Prints the preceding subsection numbers
|
|
||||||
\newcommand{\ssprinter}{\thesection}
|
|
||||||
\newcommand{\generateSubsection}{%
|
|
||||||
\ifthenelse{\equal{\subsectionnumbering}{section}}{%
|
|
||||||
\renewcommand{\ssprinter}{\thesection}
|
|
||||||
}{%
|
|
||||||
\ifthenelse{\equal{\subsectionnumbering}{subsection}}{%
|
|
||||||
\renewcommand{\ssprinter}{\thesubsection}
|
|
||||||
}{%
|
|
||||||
\ifthenelse{\equal{\subsectionnumbering}{subsubsection}}{%
|
|
||||||
\renewcommand{\ssprinter}{\thesubsubsection}
|
|
||||||
}{%
|
|
||||||
\ifthenelse{\equal{\subsectionnumbering}{paragraph}}{%
|
|
||||||
\renewcommand{\ssprinter}{\theparagraph}
|
|
||||||
}{
|
|
||||||
\renewcommand{\ssprinter}{}
|
|
||||||
}%
|
|
||||||
}%
|
|
||||||
}%
|
|
||||||
}%
|
|
||||||
}
|
|
||||||
\loadNumberingConfiguration
|
|
||||||
|
|
||||||
\AtBeginEnvironment{table}{\preEnvHook{table}}
|
|
||||||
\AtBeginEnvironment{figure}{\preEnvHook{figure}}
|
|
||||||
|
|
||||||
|
|
||||||
% ── Set the current number of a label ───────────────────────────────
|
% ── Set the current number of a label ───────────────────────────────
|
||||||
\newcommand{\setLabelNumber}[2]{%
|
\newcommand{\setLabelNumber}[2]{%
|
||||||
\setcounter{#1none}{#2}%
|
\setcounter{#1none}{#2}%
|
||||||
@@ -1242,6 +1172,88 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
% ┌ ┐
|
||||||
|
% │ Counter numbering │
|
||||||
|
% └ ┘
|
||||||
|
\newcommand{\preEnvHook}[1]{%
|
||||||
|
\stepLabelNumber{combined}%
|
||||||
|
\ifthenelse{\equal{\numberingpreset}{combined}}{%
|
||||||
|
\ifthenelse{\equal{\printNumberingConfigForDescriptor{#1}}{default}}{
|
||||||
|
\stepLabelNumber{combined}%
|
||||||
|
}{}%
|
||||||
|
}{%
|
||||||
|
\ifthenelse{\equal{\printNumberingConfigForDescriptor{#1}}{combined}}{%
|
||||||
|
\stepLabelNumber{combined}%
|
||||||
|
}{}%
|
||||||
|
}%
|
||||||
|
}
|
||||||
|
|
||||||
|
% Decides on the numbering to use (combined or not)
|
||||||
|
\newcommand{\loadNumberingConfiguration}{%
|
||||||
|
\ifthenelse{\boolean{numberingDisabled}}{%
|
||||||
|
\renewcommand{\thetable}{\arabic{table}}
|
||||||
|
\renewcommand{\thefigure}{\arabic{figure}}
|
||||||
|
}{
|
||||||
|
\ifthenelse{\equal{\numberingpreset}{combined}}{%
|
||||||
|
\ifthenelse{\equal{\subsectionnumbering}{none}}{
|
||||||
|
\renewcommand{\thetable}{\arabic{combinednone}}
|
||||||
|
\renewcommand{\thefigure}{\arabic{combinednone}}
|
||||||
|
}{%
|
||||||
|
\renewcommand{\thetable}{\ssprinter.\arabic{combined\subsectionnumbering}}
|
||||||
|
\renewcommand{\thefigure}{\ssprinter.\arabic{combined\subsectionnumbering}}
|
||||||
|
}%
|
||||||
|
}{%
|
||||||
|
\ifthenelse{\equal{\numberingpreset}{separate}}{
|
||||||
|
\ifthenelse{\equal{\subsectionnumbering}{none}}{}{
|
||||||
|
\renewcommand{\thetable}{\ssprinter.\arabic{table}}
|
||||||
|
\renewcommand{\thefigure}{\ssprinter.\arabic{figure}}
|
||||||
|
}
|
||||||
|
}{%
|
||||||
|
\renewcommand{\thetable}{\arabic{table}}
|
||||||
|
\renewcommand{\thefigure}{\arabic{figure}}
|
||||||
|
}%
|
||||||
|
}%
|
||||||
|
}%
|
||||||
|
}
|
||||||
|
|
||||||
|
% Prints the preceding subsection numbers
|
||||||
|
\newcommand{\ssprinter}{\thesection}
|
||||||
|
\newcommand{\generateSubsection}{%
|
||||||
|
\ifthenelse{\equal{\subsectionnumbering}{section}}{%
|
||||||
|
\renewcommand{\ssprinter}{\thesection}
|
||||||
|
}{%
|
||||||
|
\ifthenelse{\equal{\subsectionnumbering}{subsection}}{%
|
||||||
|
\renewcommand{\ssprinter}{\thesubsection}
|
||||||
|
}{%
|
||||||
|
\ifthenelse{\equal{\subsectionnumbering}{subsubsection}}{%
|
||||||
|
\renewcommand{\ssprinter}{\thesubsubsection}
|
||||||
|
}{%
|
||||||
|
\ifthenelse{\equal{\subsectionnumbering}{paragraph}}{%
|
||||||
|
\renewcommand{\ssprinter}{\theparagraph}
|
||||||
|
}{
|
||||||
|
\renewcommand{\ssprinter}{}
|
||||||
|
}%
|
||||||
|
}%
|
||||||
|
}%
|
||||||
|
}%
|
||||||
|
}
|
||||||
|
\loadNumberingConfiguration
|
||||||
|
|
||||||
|
\AtBeginEnvironment{table}{\preEnvHook{table}}
|
||||||
|
\AtBeginEnvironment{figure}{\preEnvHook{figure}}
|
||||||
|
|
||||||
|
|
||||||
|
% ┌ ┐
|
||||||
|
% │ STYLE: Math │
|
||||||
|
% └ ┘
|
||||||
|
|
||||||
|
% Add shortcuts to commonly used commands
|
||||||
|
\newcommand{\vect}[1]{\overrightarrow{#1}}
|
||||||
|
\renewcommand{\hat}[1]{\widehat{#1}}
|
||||||
|
\renewcommand{\tilde}[1]{\widetilde{#1}}
|
||||||
|
\newcommand{\proven}{$\hspace{17cm}\square$}
|
||||||
|
|
||||||
|
|
||||||
\newcommand{\noverticalspacing}{
|
\newcommand{\noverticalspacing}{
|
||||||
\titlespacing*{\section}{0pt}{2pt plus 2pt minus 1pt}{2pt plus 2pt minus 2pt}
|
\titlespacing*{\section}{0pt}{2pt plus 2pt minus 1pt}{2pt plus 2pt minus 2pt}
|
||||||
\titlespacing*{\subsection}{0pt}{1pt plus 2pt minus 1pt}{1pt plus 2pt minus 1pt}
|
\titlespacing*{\subsection}{0pt}{1pt plus 2pt minus 1pt}{1pt plus 2pt minus 1pt}
|
||||||
@@ -1308,67 +1320,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
% ┌ ┐
|
|
||||||
% │ STYLE: Common tcolorboxes │
|
|
||||||
% └ ┘
|
|
||||||
|
|
||||||
\newtcolorbox{recall}[2][]{mainboxstyle,colback=recallcolor!5!white,colframe=recallcolor!75!black,colbacktitle=recallcolor!75!black,title={\large #2},
|
|
||||||
overlay={\node[overlaystyle,draw=recallcolor!75!black,fill=recallcolor!75!black] at (frame.north east) {\large \translate{Recall }{Repetition }};},#1}
|
|
||||||
|
|
||||||
\newtcolorbox{properties}[2][]{mainboxstyle,colback=propertiescolor!5!white,colframe=propertiescolor!75!black,colbacktitle=propertiescolor!75!black,title={\large #2},
|
|
||||||
overlay={\node[overlaystyle,draw=propertiescolor!75!black,fill=propertiescolor!75!black] at (frame.north east) {\large \translate{Properties }{Eigenschaften }};},#1}
|
|
||||||
|
|
||||||
\newtcolorbox{restrictions}[2][]{mainboxstyle,colback=propertiescolor!5!white,colframe=propertiescolor!75!black,colbacktitle=propertiescolor!75!black,title={\large #2},
|
|
||||||
overlay={\node[overlaystyle,draw=propertiescolor!75!black,fill=propertiescolor!75!black] at (frame.north east) {\large \translate{Restrictions }{Einschränkungen }};},#1}
|
|
||||||
|
|
||||||
\newtcolorbox{limitations}[2][]{mainboxstyle,colback=propertiescolor!5!white,colframe=propertiescolor!75!black,colbacktitle=propertiescolor!75!black,title={\large #2},
|
|
||||||
overlay={\node[overlaystyle,draw=propertiescolor!75!black,fill=propertiescolor!75!black] at (frame.north east) {\large \translate{Limitations }{Limitierungen }};},#1}
|
|
||||||
|
|
||||||
\newtcolorbox{intuition}[2][]{mainboxstyle,colback=intuitioncolor!5!white,colframe=intuitioncolor!75!black,colbacktitle=intuitioncolor!75!black,title={\large #2},
|
|
||||||
overlay={\node[overlaystyle,draw=intuitioncolor!75!black,fill=intuitioncolor!75!black] at (frame.north east) {\large Intuition};},#1}
|
|
||||||
|
|
||||||
\newcommand{\inlineintuition}{\bg{intuitioncolor}{Intuition:}}
|
|
||||||
|
|
||||||
|
|
||||||
% Terms and notation
|
|
||||||
\newtcolorbox{terms}[2][]{mainboxstyle,colback=termcolor!5!white,colframe=termcolor!75!black,colbacktitle=termcolor!75!black,title={\large #2},
|
|
||||||
overlay={\node[overlaystyle,draw=termcolor!75!black,fill=termcolor!75!black] at (frame.north east) {\large \translate{Terms }{Begriffe }};},#1}
|
|
||||||
|
|
||||||
\newtcolorbox{notation}[2][]{mainboxstyle,colback=notationcolor!5!white,colframe=notationcolor!75!black,colbacktitle=notationcolor!75!black,title={\large #2},
|
|
||||||
overlay={\node[overlaystyle,draw=notationcolor!75!black,fill=notationcolor!75!black] at (frame.north east) {\large Notation};},#1}
|
|
||||||
|
|
||||||
|
|
||||||
\newtcolorbox{usage}[2][]{mainboxstyle,colback=usagecolor!5!white,colframe=usagecolor!75!black,colbacktitle=usagecolor!75!black,title={\large #2},
|
|
||||||
overlay={\node[overlaystyle,draw=usagecolor!75!black,fill=usagecolor!75!black] at (frame.north east) {\large \translate{Usage }{Nutzung }};},#1}
|
|
||||||
|
|
||||||
|
|
||||||
% Task
|
|
||||||
\newtcolorbox{task}[2][]{mainboxstyle,colback=taskcolor!5!white,colframe=taskcolor!75!black,colbacktitle=taskcolor!75!black,title={\large #2},overlay={\node[overlaystyle,draw=taskcolor!75!black,fill=taskcolor!75!black] at (frame.north east) {\large \translate{Task}{Aufgabe}};},#1}
|
|
||||||
|
|
||||||
|
|
||||||
% Proof
|
|
||||||
\newtcolorbox{proof}[2][]{mainboxstyle,colback=proofcolor!5!white,colframe=proofcolor!75!black,colbacktitle=proofcolor!75!black,title={\large #2},overlay={\node[overlaystyle,draw=proofcolor!75!black,fill=proofcolor!75!black] at (frame.north east) {\large \translate{Proof}{Beweis}};},#1}
|
|
||||||
|
|
||||||
|
|
||||||
% General
|
|
||||||
\newtcolorbox{general}[4][]{mainboxstyle,colback=#4!5!white,colframe=#4!75!black,colbacktitle=#4!75!black,title={\large #2},
|
|
||||||
overlay={\node[overlaystyle,draw=#4!75!black,fill=#4!75!black] at (frame.north east) {\large #3};},#1}
|
|
||||||
|
|
||||||
% Simple
|
|
||||||
\newtcolorbox{simplebox}[2][]{colback=#2!5!white,colframe=#2!75!black,#1}
|
|
||||||
|
|
||||||
|
|
||||||
% ┌ ┐
|
|
||||||
% │ STYLE: Math │
|
|
||||||
% └ ┘
|
|
||||||
|
|
||||||
% Add shortcuts to commonly used commands
|
|
||||||
\newcommand{\vect}[1]{\overrightarrow{#1}}
|
|
||||||
\renewcommand{\hat}[1]{\widehat{#1}}
|
|
||||||
\renewcommand{\tilde}[1]{\widetilde{#1}}
|
|
||||||
\newcommand{\proven}{$\hspace{17cm}\square$}
|
|
||||||
|
|
||||||
|
|
||||||
% ── Inline environments ─────────────────────────────────────────────
|
% ── Inline environments ─────────────────────────────────────────────
|
||||||
% TODO: ref label generation
|
% TODO: ref label generation
|
||||||
\newcommand{\inline}[2][NONAME]{%
|
\newcommand{\inline}[2][NONAME]{%
|
||||||
@@ -1424,6 +1375,58 @@
|
|||||||
\newcommand{\shortnotation}[1][NONAME]{\unnumberedShort[#1]{notation}}
|
\newcommand{\shortnotation}[1][NONAME]{\unnumberedShort[#1]{notation}}
|
||||||
|
|
||||||
|
|
||||||
|
% ┌ ┐
|
||||||
|
% │ STYLE: Common tcolorboxes │
|
||||||
|
% └ ┘
|
||||||
|
|
||||||
|
\newtcolorbox{recall}[2][]{mainboxstyle,colback=recallcolor!5!white,colframe=recallcolor!75!black,colbacktitle=recallcolor!75!black,title={\large #2},
|
||||||
|
overlay={\node[overlaystyle,draw=recallcolor!75!black,fill=recallcolor!75!black] at (frame.north east) {\large \namingTranslate{recall}};},#1}
|
||||||
|
|
||||||
|
\newtcolorbox{properties}[2][]{mainboxstyle,colback=propertiescolor!5!white,colframe=propertiescolor!75!black,colbacktitle=propertiescolor!75!black,title={\large #2},
|
||||||
|
overlay={\node[overlaystyle,draw=propertiescolor!75!black,fill=propertiescolor!75!black] at (frame.north east) {\large \namingTranslate{properties}};},#1}
|
||||||
|
|
||||||
|
\newtcolorbox{restrictions}[2][]{mainboxstyle,colback=propertiescolor!5!white,colframe=propertiescolor!75!black,colbacktitle=propertiescolor!75!black,title={\large #2},
|
||||||
|
overlay={\node[overlaystyle,draw=propertiescolor!75!black,fill=propertiescolor!75!black] at (frame.north east) {\large \namingTranslate{restrictions}};},#1}
|
||||||
|
|
||||||
|
\newtcolorbox{limitations}[2][]{mainboxstyle,colback=propertiescolor!5!white,colframe=propertiescolor!75!black,colbacktitle=propertiescolor!75!black,title={\large #2},
|
||||||
|
overlay={\node[overlaystyle,draw=propertiescolor!75!black,fill=propertiescolor!75!black] at (frame.north east) {\large \namingTranslate{limitations}};},#1}
|
||||||
|
|
||||||
|
\newtcolorbox{intuition}[2][]{mainboxstyle,colback=intuitioncolor!5!white,colframe=intuitioncolor!75!black,colbacktitle=intuitioncolor!75!black,title={\large #2},
|
||||||
|
overlay={\node[overlaystyle,draw=intuitioncolor!75!black,fill=intuitioncolor!75!black] at (frame.north east) {\large \namingTranslate{intuition}};},#1}
|
||||||
|
|
||||||
|
\newcommand{\inlineintuition}{\bg{intuitioncolor}{Intuition:}}
|
||||||
|
|
||||||
|
|
||||||
|
% Terms and notation
|
||||||
|
\newtcolorbox{terms}[2][]{mainboxstyle,colback=termcolor!5!white,colframe=termcolor!75!black,colbacktitle=termcolor!75!black,title={\large #2},
|
||||||
|
overlay={\node[overlaystyle,draw=termcolor!75!black,fill=termcolor!75!black] at (frame.north east) {\large \namingTranslate{terms}};},#1}
|
||||||
|
|
||||||
|
\newtcolorbox{notation}[2][]{mainboxstyle,colback=notationcolor!5!white,colframe=notationcolor!75!black,colbacktitle=notationcolor!75!black,title={\large #2},
|
||||||
|
overlay={\node[overlaystyle,draw=notationcolor!75!black,fill=notationcolor!75!black] at (frame.north east) {\large \namingTranslate{notation}};},#1}
|
||||||
|
|
||||||
|
|
||||||
|
\newtcolorbox{usage}[2][]{mainboxstyle,colback=usagecolor!5!white,colframe=usagecolor!75!black,colbacktitle=usagecolor!75!black,title={\large #2},
|
||||||
|
overlay={\node[overlaystyle,draw=usagecolor!75!black,fill=usagecolor!75!black] at (frame.north east) {\large \namingTranslate{usage}};},#1}
|
||||||
|
|
||||||
|
|
||||||
|
% Task
|
||||||
|
\newtcolorbox{task}[2][]{mainboxstyle,colback=taskcolor!5!white,colframe=taskcolor!75!black,colbacktitle=taskcolor!75!black,title={\large #2},
|
||||||
|
overlay={\node[overlaystyle,draw=taskcolor!75!black,fill=taskcolor!75!black] at (frame.north east) {\large \namingTranslate{task}};},#1}
|
||||||
|
|
||||||
|
|
||||||
|
% Proof
|
||||||
|
\newtcolorbox{proof}[2][]{mainboxstyle,colback=proofcolor!5!white,colframe=proofcolor!75!black,colbacktitle=proofcolor!75!black,title={\large #2},
|
||||||
|
overlay={\node[overlaystyle,draw=proofcolor!75!black,fill=proofcolor!75!black] at (frame.north east) {\large \namingTranslate{proof}};},#1}
|
||||||
|
|
||||||
|
|
||||||
|
% General
|
||||||
|
\newtcolorbox{general}[4][]{mainboxstyle,colback=#4!5!white,colframe=#4!75!black,colbacktitle=#4!75!black,title={\large #2},
|
||||||
|
overlay={\node[overlaystyle,draw=#4!75!black,fill=#4!75!black] at (frame.north east) {\large #3};},#1}
|
||||||
|
|
||||||
|
% Simple
|
||||||
|
\newtcolorbox{simplebox}[2][]{colback=#2!5!white,colframe=#2!75!black,#1}
|
||||||
|
|
||||||
|
|
||||||
% ┌ ┐
|
% ┌ ┐
|
||||||
% │ STYLE: Computer Science │
|
% │ STYLE: Computer Science │
|
||||||
% └ ┘
|
% └ ┘
|
||||||
|
|||||||
+12
-10
@@ -3,41 +3,43 @@
|
|||||||
% └ ┘
|
% └ ┘
|
||||||
|
|
||||||
\newtcolorbox{recall}[2][]{mainboxstyle,colback=recallcolor!5!white,colframe=recallcolor!75!black,colbacktitle=recallcolor!75!black,title={\large #2},
|
\newtcolorbox{recall}[2][]{mainboxstyle,colback=recallcolor!5!white,colframe=recallcolor!75!black,colbacktitle=recallcolor!75!black,title={\large #2},
|
||||||
overlay={\node[overlaystyle,draw=recallcolor!75!black,fill=recallcolor!75!black] at (frame.north east) {\large \translate{Recall }{Repetition }};},#1}
|
overlay={\node[overlaystyle,draw=recallcolor!75!black,fill=recallcolor!75!black] at (frame.north east) {\large \namingTranslate{recall}};},#1}
|
||||||
|
|
||||||
\newtcolorbox{properties}[2][]{mainboxstyle,colback=propertiescolor!5!white,colframe=propertiescolor!75!black,colbacktitle=propertiescolor!75!black,title={\large #2},
|
\newtcolorbox{properties}[2][]{mainboxstyle,colback=propertiescolor!5!white,colframe=propertiescolor!75!black,colbacktitle=propertiescolor!75!black,title={\large #2},
|
||||||
overlay={\node[overlaystyle,draw=propertiescolor!75!black,fill=propertiescolor!75!black] at (frame.north east) {\large \translate{Properties }{Eigenschaften }};},#1}
|
overlay={\node[overlaystyle,draw=propertiescolor!75!black,fill=propertiescolor!75!black] at (frame.north east) {\large \namingTranslate{properties}};},#1}
|
||||||
|
|
||||||
\newtcolorbox{restrictions}[2][]{mainboxstyle,colback=propertiescolor!5!white,colframe=propertiescolor!75!black,colbacktitle=propertiescolor!75!black,title={\large #2},
|
\newtcolorbox{restrictions}[2][]{mainboxstyle,colback=propertiescolor!5!white,colframe=propertiescolor!75!black,colbacktitle=propertiescolor!75!black,title={\large #2},
|
||||||
overlay={\node[overlaystyle,draw=propertiescolor!75!black,fill=propertiescolor!75!black] at (frame.north east) {\large \translate{Restrictions }{Einschränkungen }};},#1}
|
overlay={\node[overlaystyle,draw=propertiescolor!75!black,fill=propertiescolor!75!black] at (frame.north east) {\large \namingTranslate{restrictions}};},#1}
|
||||||
|
|
||||||
\newtcolorbox{limitations}[2][]{mainboxstyle,colback=propertiescolor!5!white,colframe=propertiescolor!75!black,colbacktitle=propertiescolor!75!black,title={\large #2},
|
\newtcolorbox{limitations}[2][]{mainboxstyle,colback=propertiescolor!5!white,colframe=propertiescolor!75!black,colbacktitle=propertiescolor!75!black,title={\large #2},
|
||||||
overlay={\node[overlaystyle,draw=propertiescolor!75!black,fill=propertiescolor!75!black] at (frame.north east) {\large \translate{Limitations }{Limitierungen }};},#1}
|
overlay={\node[overlaystyle,draw=propertiescolor!75!black,fill=propertiescolor!75!black] at (frame.north east) {\large \namingTranslate{limitations}};},#1}
|
||||||
|
|
||||||
\newtcolorbox{intuition}[2][]{mainboxstyle,colback=intuitioncolor!5!white,colframe=intuitioncolor!75!black,colbacktitle=intuitioncolor!75!black,title={\large #2},
|
\newtcolorbox{intuition}[2][]{mainboxstyle,colback=intuitioncolor!5!white,colframe=intuitioncolor!75!black,colbacktitle=intuitioncolor!75!black,title={\large #2},
|
||||||
overlay={\node[overlaystyle,draw=intuitioncolor!75!black,fill=intuitioncolor!75!black] at (frame.north east) {\large Intuition};},#1}
|
overlay={\node[overlaystyle,draw=intuitioncolor!75!black,fill=intuitioncolor!75!black] at (frame.north east) {\large \namingTranslate{intuition}};},#1}
|
||||||
|
|
||||||
\newcommand{\inlineintuition}{\bg{intuitioncolor}{Intuition:}}
|
\newcommand{\inlineintuition}{\bg{intuitioncolor}{Intuition:}}
|
||||||
|
|
||||||
|
|
||||||
% Terms and notation
|
% Terms and notation
|
||||||
\newtcolorbox{terms}[2][]{mainboxstyle,colback=termcolor!5!white,colframe=termcolor!75!black,colbacktitle=termcolor!75!black,title={\large #2},
|
\newtcolorbox{terms}[2][]{mainboxstyle,colback=termcolor!5!white,colframe=termcolor!75!black,colbacktitle=termcolor!75!black,title={\large #2},
|
||||||
overlay={\node[overlaystyle,draw=termcolor!75!black,fill=termcolor!75!black] at (frame.north east) {\large \translate{Terms }{Begriffe }};},#1}
|
overlay={\node[overlaystyle,draw=termcolor!75!black,fill=termcolor!75!black] at (frame.north east) {\large \namingTranslate{terms}};},#1}
|
||||||
|
|
||||||
\newtcolorbox{notation}[2][]{mainboxstyle,colback=notationcolor!5!white,colframe=notationcolor!75!black,colbacktitle=notationcolor!75!black,title={\large #2},
|
\newtcolorbox{notation}[2][]{mainboxstyle,colback=notationcolor!5!white,colframe=notationcolor!75!black,colbacktitle=notationcolor!75!black,title={\large #2},
|
||||||
overlay={\node[overlaystyle,draw=notationcolor!75!black,fill=notationcolor!75!black] at (frame.north east) {\large Notation};},#1}
|
overlay={\node[overlaystyle,draw=notationcolor!75!black,fill=notationcolor!75!black] at (frame.north east) {\large \namingTranslate{notation}};},#1}
|
||||||
|
|
||||||
|
|
||||||
\newtcolorbox{usage}[2][]{mainboxstyle,colback=usagecolor!5!white,colframe=usagecolor!75!black,colbacktitle=usagecolor!75!black,title={\large #2},
|
\newtcolorbox{usage}[2][]{mainboxstyle,colback=usagecolor!5!white,colframe=usagecolor!75!black,colbacktitle=usagecolor!75!black,title={\large #2},
|
||||||
overlay={\node[overlaystyle,draw=usagecolor!75!black,fill=usagecolor!75!black] at (frame.north east) {\large \translate{Usage }{Nutzung }};},#1}
|
overlay={\node[overlaystyle,draw=usagecolor!75!black,fill=usagecolor!75!black] at (frame.north east) {\large \namingTranslate{usage}};},#1}
|
||||||
|
|
||||||
|
|
||||||
% Task
|
% Task
|
||||||
\newtcolorbox{task}[2][]{mainboxstyle,colback=taskcolor!5!white,colframe=taskcolor!75!black,colbacktitle=taskcolor!75!black,title={\large #2},overlay={\node[overlaystyle,draw=taskcolor!75!black,fill=taskcolor!75!black] at (frame.north east) {\large \translate{Task}{Aufgabe}};},#1}
|
\newtcolorbox{task}[2][]{mainboxstyle,colback=taskcolor!5!white,colframe=taskcolor!75!black,colbacktitle=taskcolor!75!black,title={\large #2},
|
||||||
|
overlay={\node[overlaystyle,draw=taskcolor!75!black,fill=taskcolor!75!black] at (frame.north east) {\large \namingTranslate{task}};},#1}
|
||||||
|
|
||||||
|
|
||||||
% Proof
|
% Proof
|
||||||
\newtcolorbox{proof}[2][]{mainboxstyle,colback=proofcolor!5!white,colframe=proofcolor!75!black,colbacktitle=proofcolor!75!black,title={\large #2},overlay={\node[overlaystyle,draw=proofcolor!75!black,fill=proofcolor!75!black] at (frame.north east) {\large \translate{Proof}{Beweis}};},#1}
|
\newtcolorbox{proof}[2][]{mainboxstyle,colback=proofcolor!5!white,colframe=proofcolor!75!black,colbacktitle=proofcolor!75!black,title={\large #2},
|
||||||
|
overlay={\node[overlaystyle,draw=proofcolor!75!black,fill=proofcolor!75!black] at (frame.north east) {\large \namingTranslate{proof}};},#1}
|
||||||
|
|
||||||
|
|
||||||
% General
|
% General
|
||||||
|
|||||||
Reference in New Issue
Block a user