Compare commits
65 Commits
098ffcc618
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 4577950acc | |||
|
|
fd7ce878e5 | ||
| 457d7ce024 | |||
|
|
8c8cc53a8c | ||
| 73b6098463 | |||
|
|
635d32d260 | ||
| bda3b92795 | |||
| f2c337eaa9 | |||
| 141cf5d091 | |||
|
|
e16e4b3e7b | ||
| 566649ecc3 | |||
| 7f8c112556 | |||
|
|
aaa6a709fc | ||
| 66aee3d780 | |||
| da4eeebc6d | |||
| ab3abb113c | |||
|
|
951458a867 | ||
| 4f03b8eebc | |||
| 3a67a42535 | |||
| bcd7ed17d0 | |||
| 2c0db60c7d | |||
|
|
90ce264992 | ||
| 579cbd96ca | |||
|
|
88e2dc1a70 | ||
| b9d9f6772c | |||
|
|
b0e161e133 | ||
| 676bbd9306 | |||
|
|
5f691d9372 | ||
| fd66333f7a | |||
|
|
db2fbc4c70 | ||
| dcb077e116 | |||
|
|
be655d2387 | ||
| cb173908b4 | |||
|
|
6803d1f62d | ||
| 4eff956d53 | |||
| f622e2be55 | |||
|
|
9a19639d10 | ||
| bfc62a37eb | |||
| 01e20cef5d | |||
|
|
eda396d617 | ||
| 4522e88c92 | |||
|
|
04b388c382 | ||
| 3d6d6234de | |||
|
|
4344f8f09d | ||
| b1d81bdd06 | |||
|
|
1e766b8133 | ||
| c5fccabba9 | |||
|
|
e2a725bc51 | ||
| cc3144b170 | |||
| b908ae3b29 | |||
| 0ea3d9245c | |||
|
|
27c96d26a0 | ||
| c6aa4c8d80 | |||
| f1b64e8ddb | |||
| a5cb9bb54d | |||
| 432fcb4153 | |||
| 159b37a3d3 | |||
| baf964792a | |||
| 01047ba385 | |||
| c321acd063 | |||
|
|
1462cc0198 | ||
| 6dbcd64ed4 | |||
| 8346a558c7 | |||
| 91cfc52ec8 | |||
| dba7f93d0d |
@@ -1,21 +0,0 @@
|
|||||||
name: Build helpers
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- 'main/**'
|
|
||||||
- 'extra/**'
|
|
||||||
jobs:
|
|
||||||
build_helpers:
|
|
||||||
runs_on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Set up Git repository
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
- name: Run build
|
|
||||||
run: ./build.sh
|
|
||||||
- name: Upload compiled helpers
|
|
||||||
uses: actions/git-auto-commit-action@v7
|
|
||||||
with:
|
|
||||||
commit_message: "[skip ci] Build helpers on push"
|
|
||||||
file_pattern: '*.tex'
|
|
||||||
commit_user_name: Helpers compiler [bot]
|
|
||||||
commit_user_email: actions@janishutz.com
|
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
name: Build docs
|
name: Update docs
|
||||||
on:
|
on:
|
||||||
push
|
push:
|
||||||
# push:
|
paths:
|
||||||
# paths:
|
- 'docs/**'
|
||||||
# - 'docs/**'
|
|
||||||
jobs:
|
jobs:
|
||||||
build_docs:
|
build_docs:
|
||||||
runs_on: ubuntu-latest
|
runs_on: ubuntu-latest
|
||||||
@@ -16,14 +15,21 @@ jobs:
|
|||||||
username: ${{ vars.REGISTRY_USER_USERNAME }}
|
username: ${{ vars.REGISTRY_USER_USERNAME }}
|
||||||
password: ${{ secrets.REGISTRY_USER_PASSWORD }}
|
password: ${{ secrets.REGISTRY_USER_PASSWORD }}
|
||||||
registry: ${{ vars.REGISTRY_BASE_URL }}
|
registry: ${{ vars.REGISTRY_BASE_URL }}
|
||||||
|
- name: Run format of docs
|
||||||
|
uses: actions/latex-format@main
|
||||||
|
with:
|
||||||
|
workdir: docs
|
||||||
- name: Run build
|
- name: Run build
|
||||||
uses: actions/latex-full@main
|
uses: actions/latex-full@main
|
||||||
with:
|
with:
|
||||||
workdir: docs
|
workdir: docs
|
||||||
|
include_helpers: true
|
||||||
- name: Upload compiled docs
|
- name: Upload compiled docs
|
||||||
uses: actions/git-auto-commit-action@v7
|
uses: actions/git-auto-commit-action@v7
|
||||||
with:
|
with:
|
||||||
commit_message: "[skip ci] Build docs on push"
|
commit_message: "[skip ci] Build docs on push"
|
||||||
file_pattern: '*.tex'
|
file_pattern: '*.pdf'
|
||||||
commit_user_name: LaTeX compiler [bot]
|
commit_user_name: LaTeX compiler [bot]
|
||||||
commit_user_email: actions@janishutz.com
|
commit_user_email: actions@janishutz.com
|
||||||
|
commit_author: LaTeX compiler [bot] <actions@janishutz.com>
|
||||||
|
push_options: "--force"
|
||||||
36
.gitea/workflows/update-helpers.yml
Normal file
36
.gitea/workflows/update-helpers.yml
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
name: Update helpers
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'main/**'
|
||||||
|
- 'extra/**'
|
||||||
|
jobs:
|
||||||
|
build_helpers:
|
||||||
|
runs_on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Set up Git repository
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
- name: Sign into gitea registry
|
||||||
|
uses: https://github.com/docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ vars.REGISTRY_USER_USERNAME }}
|
||||||
|
password: ${{ secrets.REGISTRY_USER_PASSWORD }}
|
||||||
|
registry: ${{ vars.REGISTRY_BASE_URL }}
|
||||||
|
- name: Run format of main
|
||||||
|
uses: actions/latex-format@main
|
||||||
|
with:
|
||||||
|
workdir: main
|
||||||
|
- name: Run format of extra
|
||||||
|
uses: actions/latex-format@main
|
||||||
|
with:
|
||||||
|
workdir: extra
|
||||||
|
- name: Run build
|
||||||
|
run: ./build.sh
|
||||||
|
- name: Upload compiled helpers
|
||||||
|
uses: actions/git-auto-commit-action@v7
|
||||||
|
with:
|
||||||
|
commit_message: "[skip ci] Build helpers on push"
|
||||||
|
commit_user_name: Helpers compiler [bot]
|
||||||
|
commit_user_email: actions@janishutz.com
|
||||||
|
commit_author: Helpers compiler [bot] <actions@janishutz.com>
|
||||||
|
push_options: "--force"
|
||||||
82
.latexindent.yaml
Normal file
82
.latexindent.yaml
Normal file
@@ -0,0 +1,82 @@
|
|||||||
|
# Use spaces for indent (because f*k tabs)
|
||||||
|
defaultIndent: " "
|
||||||
|
|
||||||
|
# Limit Number of backups
|
||||||
|
maxNumberOfBackups: 3
|
||||||
|
|
||||||
|
verbatimEnvironments:
|
||||||
|
verbatim: 1
|
||||||
|
lstlisting: 1
|
||||||
|
minted: 1
|
||||||
|
code: 1
|
||||||
|
|
||||||
|
indentRules:
|
||||||
|
recall: " "
|
||||||
|
remarks: " "
|
||||||
|
remark: " "
|
||||||
|
guides: " "
|
||||||
|
properties: " "
|
||||||
|
restrictions: " "
|
||||||
|
limitations: " "
|
||||||
|
terms: " "
|
||||||
|
notation: " "
|
||||||
|
usage: " "
|
||||||
|
task: " "
|
||||||
|
proof: " "
|
||||||
|
general: " "
|
||||||
|
simplebox: " "
|
||||||
|
definition: " "
|
||||||
|
theorem: " "
|
||||||
|
lemma: " "
|
||||||
|
corollary: " "
|
||||||
|
axiom: " "
|
||||||
|
fact: " "
|
||||||
|
proposition: " "
|
||||||
|
example: " "
|
||||||
|
formula: " "
|
||||||
|
conjugation: " "
|
||||||
|
forms: " "
|
||||||
|
|
||||||
|
lookForAlignDelims:
|
||||||
|
tables:
|
||||||
|
delims: 1
|
||||||
|
alignDoubleBackSlash: 1
|
||||||
|
spacesBeforeDoubleBackSlash: 1
|
||||||
|
multiColumnGrouping: 0
|
||||||
|
alignRowsWithoutMaxDelims: 1
|
||||||
|
spacesBeforeAmpersand: 1
|
||||||
|
spacesAfterAmpersand: 1
|
||||||
|
justification: left
|
||||||
|
alignFinalDoubleBackSlash: 0
|
||||||
|
dontMeasure: 0
|
||||||
|
delimiterRegEx: (?<!\\)(&)
|
||||||
|
delimiterJustification: left
|
||||||
|
lookForChildCodeBlocks: 1
|
||||||
|
alignContentAfterDoubleBackSlash: 0
|
||||||
|
spacesAfterDoubleBackSlash: 1
|
||||||
|
|
||||||
|
specialBeginEnd:
|
||||||
|
If:
|
||||||
|
begin: '\\If'
|
||||||
|
middle:
|
||||||
|
- '\\ElsIf'
|
||||||
|
- '\\Else'
|
||||||
|
end: '\\EndIf'
|
||||||
|
lookForThis: 1
|
||||||
|
For:
|
||||||
|
begin: '\\For'
|
||||||
|
end: '\\EndFor'
|
||||||
|
lookForThis: 1
|
||||||
|
Procedure:
|
||||||
|
begin: '\\Procedure'
|
||||||
|
end: '\\EndProcedure'
|
||||||
|
lookForThis: 1
|
||||||
|
Function:
|
||||||
|
begin: '\\Function'
|
||||||
|
end: '\\EndFunction'
|
||||||
|
lookForThis: 1
|
||||||
|
While:
|
||||||
|
begin: '\\While'
|
||||||
|
end: '\\EndWhile'
|
||||||
|
lookForThis: 1
|
||||||
|
specialBeforeCommand: 1
|
||||||
@@ -3,6 +3,9 @@
|
|||||||
<h1>LaTeX Helper files</h1>
|
<h1>LaTeX Helper files</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
This repository contains a collection of LaTeX files, helping you get started with LaTeX quickly.
|
This repository contains a collection of LaTeX files, helping you get started with LaTeX quickly.
|
||||||
|
|
||||||
# New import scheme
|
# New import scheme
|
||||||
@@ -11,7 +14,7 @@ I have done some tweaks to support a new import scheme, making imports much more
|
|||||||
|
|
||||||
|
|
||||||
# Getting started
|
# Getting started
|
||||||
See the docs [here](https://git.janishutz.com/janishutz/latex/src/branch/main/docs/docs.pdf) to get started.
|
See the docs [here](https://git.janishutz.com/janishutz/latex/raw/branch/main/docs/docs.pdf) to get started.
|
||||||
|
|
||||||
|
|
||||||
# Recommended LaTeX editors
|
# Recommended LaTeX editors
|
||||||
|
|||||||
80
dist/full.tex
vendored
80
dist/full.tex
vendored
@@ -7,7 +7,7 @@
|
|||||||
% █ █ ▄ █ █ █ █ █▄▄▄█ ▄ █ █ █ █ █ █▄▄▄█ █ █ █ █▄▄▄█ █ █ █▄▄▄▄▄█ █
|
% █ █ ▄ █ █ █ █ █▄▄▄█ ▄ █ █ █ █ █ █▄▄▄█ █ █ █ █▄▄▄█ █ █ █▄▄▄▄▄█ █
|
||||||
% █▄▄▄▄▄▄▄█▄█ █▄▄█ █▄▄▄█ █▄▄▄▄▄▄▄█▄▄█ █▄▄█ █▄▄█ █▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄█ █▄▄▄▄▄▄▄█▄▄▄█ █▄█▄▄▄▄▄▄▄█
|
% █▄▄▄▄▄▄▄█▄█ █▄▄█ █▄▄▄█ █▄▄▄▄▄▄▄█▄▄█ █▄▄█ █▄▄█ █▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄█ █▄▄▄▄▄▄▄█▄▄▄█ █▄█▄▄▄▄▄▄▄█
|
||||||
|
|
||||||
|
%
|
||||||
% ▄▄█▀▀▀█▄█
|
% ▄▄█▀▀▀█▄█
|
||||||
% ▄██▀ ▀█
|
% ▄██▀ ▀█
|
||||||
% ██▀ ▀ ▄██▀██▄▀███▄███ ▄▄█▀██
|
% ██▀ ▀ ▄██▀██▄▀███▄███ ▄▄█▀██
|
||||||
@@ -17,9 +17,12 @@
|
|||||||
% ▀▀█████▀ ▀█████▀▄████▄ ▀█████▀
|
% ▀▀█████▀ ▀█████▀▄████▄ ▀█████▀
|
||||||
|
|
||||||
% This file contains all necessary dependencies for the document to compile (at all) and some core macros
|
% This file contains all necessary dependencies for the document to compile (at all) and some core macros
|
||||||
|
% Load this before the config file
|
||||||
|
|
||||||
% Imports %
|
|
||||||
|
% ── Imports ─────────────────────────────────────────────────────────
|
||||||
\typeout{[Core] Importing!}
|
\typeout{[Core] Importing!}
|
||||||
|
|
||||||
\usepackage[table, dvipsnames]{xcolor}
|
\usepackage[table, dvipsnames]{xcolor}
|
||||||
\usepackage{amsmath}
|
\usepackage{amsmath}
|
||||||
\usepackage{graphicx}
|
\usepackage{graphicx}
|
||||||
@@ -46,7 +49,8 @@
|
|||||||
\usepackage{pifont}
|
\usepackage{pifont}
|
||||||
|
|
||||||
|
|
||||||
% Language Switching. Currently only English and German are supported
|
% ── Language Switching. ─────────────────────────────────────────────
|
||||||
|
% Currently only English and German are supported
|
||||||
% See docs for how to use
|
% See docs for how to use
|
||||||
\newcounter{lang}
|
\newcounter{lang}
|
||||||
|
|
||||||
@@ -68,6 +72,7 @@
|
|||||||
\fi
|
\fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
% Deprecated, as not useful
|
||||||
\newcommand{\loadLang}{
|
\newcommand{\loadLang}{
|
||||||
\ifnum\value{lang}<2{
|
\ifnum\value{lang}<2{
|
||||||
\typeout{[Lang Loader] Loaded English}
|
\typeout{[Lang Loader] Loaded English}
|
||||||
@@ -79,12 +84,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
% ────────────────────────────────────────────────────────────────────
|
||||||
% Create config counters / variables. See the config file for changing them
|
% Create config counters / variables. See the config file for changing them
|
||||||
\newcounter{numberingConfig}
|
\newcounter{numberingConfig}
|
||||||
\newcounter{numberSubsections}
|
\newcounter{numberSubsections}
|
||||||
\newcounter{descriptorShadeStrength}
|
\newcounter{descriptorShadeStrength}
|
||||||
\newcounter{shadeStrength}
|
\newcounter{shadeStrength}
|
||||||
|
|
||||||
|
% ── Setup ───────────────────────────────────────────────────────────
|
||||||
% Set up the latex document, configure author, title (as first argument), as well as headers and footers
|
% Set up the latex document, configure author, title (as first argument), as well as headers and footers
|
||||||
\newcommand{\setup}[1]{
|
\newcommand{\setup}[1]{
|
||||||
\typeout{[Setup] Setting up...}
|
\typeout{[Setup] Setting up...}
|
||||||
@@ -92,8 +99,6 @@
|
|||||||
\usepackage[a4paper,textwidth=17.5cm,textheight=25cm,includehead]{geometry}
|
\usepackage[a4paper,textwidth=17.5cm,textheight=25cm,includehead]{geometry}
|
||||||
\title{\Huge \textbf{#1}}
|
\title{\Huge \textbf{#1}}
|
||||||
\author{\authorTitle}
|
\author{\authorTitle}
|
||||||
\makeatletter
|
|
||||||
\makeatother
|
|
||||||
\fancyhead{}
|
\fancyhead{}
|
||||||
\fancyhead[L]{#1}
|
\fancyhead[L]{#1}
|
||||||
\fancyhead[R]{\authorHeaders}
|
\fancyhead[R]{\authorHeaders}
|
||||||
@@ -108,6 +113,7 @@
|
|||||||
\fancyfoot[L]{\today}
|
\fancyfoot[L]{\today}
|
||||||
\fancyfoot[R]{\thepage\ /\ \pageref{LastPage}}
|
\fancyfoot[R]{\thepage\ /\ \pageref{LastPage}}
|
||||||
}
|
}
|
||||||
|
\typeout{[Setup] Complete}
|
||||||
}
|
}
|
||||||
|
|
||||||
% Start document command (required)
|
% Start document command (required)
|
||||||
@@ -116,6 +122,7 @@
|
|||||||
\startDocumentNoTitle
|
\startDocumentNoTitle
|
||||||
}
|
}
|
||||||
|
|
||||||
|
% Or this one, if you don't want a title
|
||||||
\newcommand{\startDocumentNoTitle}{
|
\newcommand{\startDocumentNoTitle}{
|
||||||
\pagestyle{fancy}
|
\pagestyle{fancy}
|
||||||
\thispagestyle{fancy}
|
\thispagestyle{fancy}
|
||||||
@@ -123,6 +130,7 @@
|
|||||||
|
|
||||||
% Set up the latex document, only configuring the author, title and page size
|
% Set up the latex document, only configuring the author, title and page size
|
||||||
\newcommand{\setupBarebones}[1]{
|
\newcommand{\setupBarebones}[1]{
|
||||||
|
\typeout{[Setup] Using barebones setup}
|
||||||
\loadLang
|
\loadLang
|
||||||
\usepackage[a4paper,textwidth=17.5cm,textheight=25cm,includehead]{geometry}
|
\usepackage[a4paper,textwidth=17.5cm,textheight=25cm,includehead]{geometry}
|
||||||
\title{\Huge \textbf{#1}}
|
\title{\Huge \textbf{#1}}
|
||||||
@@ -131,6 +139,7 @@
|
|||||||
|
|
||||||
% Set up the latex document for exam summaries (Extra wide body, small margins, no header)
|
% Set up the latex document for exam summaries (Extra wide body, small margins, no header)
|
||||||
\newcommand{\setupCheatSheet}[1]{
|
\newcommand{\setupCheatSheet}[1]{
|
||||||
|
\typeout{[Setup] Using CheatSheet setup}
|
||||||
\loadLang
|
\loadLang
|
||||||
\usepackage[a4paper,textwidth=20cm,textheight=28.5cm]{geometry}
|
\usepackage[a4paper,textwidth=20cm,textheight=28.5cm]{geometry}
|
||||||
\title{\Huge \textbf{#1}}
|
\title{\Huge \textbf{#1}}
|
||||||
@@ -263,8 +272,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
\newcommand{\hrmvspace}{\vspace{-0.25pc}}
|
||||||
\newcommand{\rmvspace}{\vspace{-0.5pc}}
|
\newcommand{\rmvspace}{\vspace{-0.5pc}}
|
||||||
|
\newcommand{\mrmvspace}{\vspace{-0.75pc}}
|
||||||
\newcommand{\drmvspace}{\vspace{-1pc}}
|
\newcommand{\drmvspace}{\vspace{-1pc}}
|
||||||
|
\newcommand{\dhrmvspace}{\vspace{-1.25pc}}
|
||||||
|
\newcommand{\dnrmvspace}{\vspace{-1.5pc}}
|
||||||
|
\newcommand{\dmrmvspace}{\vspace{-1.75pc}}
|
||||||
|
\newcommand{\ddrmvspace}{\vspace{-2pc}}
|
||||||
\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}}}
|
||||||
@@ -332,6 +348,7 @@
|
|||||||
%██░▀▀▄██▄▄██▄███▄█▄███▄██▄▄██▄██▄
|
%██░▀▀▄██▄▄██▄███▄█▄███▄██▄▄██▄██▄
|
||||||
%▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
%▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
||||||
|
|
||||||
|
% General tcolorboxes
|
||||||
\newtcolorbox{recall}[2][]{mainboxstyle,colback=yellow!5!white,colframe=yellow!75!black,colbacktitle=yellow!75!black,title={\large #2},
|
\newtcolorbox{recall}[2][]{mainboxstyle,colback=yellow!5!white,colframe=yellow!75!black,colbacktitle=yellow!75!black,title={\large #2},
|
||||||
overlay={\node[overlaystyle,draw=yellow!75!black,,fill=yellow!75!black] at (frame.north east) {\large \translate{Recall }{Repetition }};},#1}
|
overlay={\node[overlaystyle,draw=yellow!75!black,,fill=yellow!75!black] at (frame.north east) {\large \translate{Recall }{Repetition }};},#1}
|
||||||
|
|
||||||
@@ -473,7 +490,7 @@
|
|||||||
\newcommand{\divides}{\hspace{0.25em}|\hspace{0.25em}}
|
\newcommand{\divides}{\hspace{0.25em}|\hspace{0.25em}}
|
||||||
\newcommand{\mbeq}{\overset{!}{=}}
|
\newcommand{\mbeq}{\overset{!}{=}}
|
||||||
\newcommand{\lcm}{\text{lcm}}
|
\newcommand{\lcm}{\text{lcm}}
|
||||||
\newcommand{\limit}[2]{\lim_{#1 \rightarrow #2}}
|
\newcommand{\limit}[2]{\underset{#1 \rightarrow #2}{\lim}}
|
||||||
\newcommand{\seq}[1]{(#1_n)_{n \geq 1}}
|
\newcommand{\seq}[1]{(#1_n)_{n \geq 1}}
|
||||||
\newcommand{\ser}[2]{\sum_{k = 1}^{#2} #1_k}
|
\newcommand{\ser}[2]{\sum_{k = 1}^{#2} #1_k}
|
||||||
\newcommand{\limni}{\limit{n}{\infty}}
|
\newcommand{\limni}{\limit{n}{\infty}}
|
||||||
@@ -491,6 +508,7 @@
|
|||||||
% ░▒█░░░░█░░█░█░▀░█░█▄▄█░█░▒█░░█░░█▀▀░█▄▄▀░░░░▀▀▀▄▄░█░░░░█▀░█▀▀░█░▒█░█░░░█▀▀
|
% ░▒█░░░░█░░█░█░▀░█░█▄▄█░█░▒█░░█░░█▀▀░█▄▄▀░░░░▀▀▀▄▄░█░░░░█▀░█▀▀░█░▒█░█░░░█▀▀
|
||||||
% ░▒█▄▄▀░░▀▀░░▀░░▒▀░█░░░░░▀▀▀░░▀░░▀▀▀░▀░▀▀░░░▒█▄▄▄█░▀▀▀░▀▀▀░▀▀▀░▀░░▀░▀▀▀░▀▀▀
|
% ░▒█▄▄▀░░▀▀░░▀░░▒▀░█░░░░░▀▀▀░░▀░░▀▀▀░▀░▀▀░░░▒█▄▄▄█░▀▀▀░▀▀▀░▀▀▀░▀░░▀░▀▀▀░▀▀▀
|
||||||
|
|
||||||
|
|
||||||
% Extra imports
|
% Extra imports
|
||||||
\usepackage{stmaryrd}
|
\usepackage{stmaryrd}
|
||||||
\usepackage{algorithm}
|
\usepackage{algorithm}
|
||||||
@@ -502,6 +520,7 @@
|
|||||||
|
|
||||||
\newcommand{\Indent}{\hspace{\algorithmicindent}}
|
\newcommand{\Indent}{\hspace{\algorithmicindent}}
|
||||||
|
|
||||||
|
% Extra commands
|
||||||
\newcommand{\timecomplexity}{\fhlc{orange}{\ifnum\value{lang}<2{Time complexity}\else {Laufzeit}\fi} \hspace{0.5em}}
|
\newcommand{\timecomplexity}{\fhlc{orange}{\ifnum\value{lang}<2{Time complexity}\else {Laufzeit}\fi} \hspace{0.5em}}
|
||||||
\newcommand{\tc}[1]{\timecomplexity $\Theta\left(#1\right)$}
|
\newcommand{\tc}[1]{\timecomplexity $\Theta\left(#1\right)$}
|
||||||
\newcommand{\tct}[1]{\Theta\left(#1\right)}
|
\newcommand{\tct}[1]{\Theta\left(#1\right)}
|
||||||
@@ -614,14 +633,14 @@
|
|||||||
% │ Counter numbering │
|
% │ Counter numbering │
|
||||||
% └ ┘
|
% └ ┘
|
||||||
\newcommand{\preTableAndFigHook}[1]{%
|
\newcommand{\preTableAndFigHook}[1]{%
|
||||||
\ifnum\value{numberingConfig}>1
|
\ifnum\value{numberingConfig}>1%
|
||||||
\ifnum\value{numberSubsections}=1
|
\ifnum\value{numberSubsections}=1%
|
||||||
\stepcounter{allss}
|
\stepcounter{allss}%
|
||||||
\else
|
\else
|
||||||
\ifnum\value{numberSubsections}=2
|
\ifnum\value{numberSubsections}=2%
|
||||||
\stepcounter{allsss}
|
\stepcounter{allsss}%
|
||||||
\else
|
\else%
|
||||||
\stepcounter{all}
|
\stepcounter{all}%
|
||||||
\fi
|
\fi
|
||||||
\fi
|
\fi
|
||||||
\fi
|
\fi
|
||||||
@@ -632,8 +651,8 @@
|
|||||||
\newcommand{\applyTableAndFigureNumbering}{
|
\newcommand{\applyTableAndFigureNumbering}{
|
||||||
% Tables & Figures
|
% Tables & Figures
|
||||||
\ifnum\value{numberingConfig}=0
|
\ifnum\value{numberingConfig}=0
|
||||||
\renewcommand{\thetable}{}
|
\renewcommand{\thetable}{\arabic{table}}
|
||||||
\renewcommand{\thefigure}{}
|
\renewcommand{\thefigure}{\arabic{figure}}
|
||||||
\else
|
\else
|
||||||
\ifnum\value{numberingConfig}=1
|
\ifnum\value{numberingConfig}=1
|
||||||
\renewcommand{\thetable}{\sectionNumbering.\arabic{table}}
|
\renewcommand{\thetable}{\sectionNumbering.\arabic{table}}
|
||||||
@@ -979,7 +998,7 @@
|
|||||||
% ▀▀ █▪▀▀▀ ▀ ▀ ▀▀▀ ▀▀▀ · ▀▀▀▀ ▀▀▀ ▀ • .▀▀▀ ▀▀▀
|
% ▀▀ █▪▀▀▀ ▀ ▀ ▀▀▀ ▀▀▀ · ▀▀▀▀ ▀▀▀ ▀ • .▀▀▀ ▀▀▀
|
||||||
|
|
||||||
% Replace some commonly used commands with better ones
|
% Replace some commonly used commands with better ones
|
||||||
\renewcommand{\vec}[1]{\overrightarrow{#1}}
|
\newcommand{\vect}[1]{\overrightarrow{#1}}
|
||||||
\renewcommand{\hat}[1]{\widehat{#1}}
|
\renewcommand{\hat}[1]{\widehat{#1}}
|
||||||
\renewcommand{\tilde}[1]{\widetilde{#1}}
|
\renewcommand{\tilde}[1]{\widetilde{#1}}
|
||||||
\newcommand{\proven}{$\hspace{17cm}\square$}
|
\newcommand{\proven}{$\hspace{17cm}\square$}
|
||||||
@@ -1073,8 +1092,11 @@
|
|||||||
\usepackage{minted}
|
\usepackage{minted}
|
||||||
\usepackage{fancyvrb}
|
\usepackage{fancyvrb}
|
||||||
|
|
||||||
|
% Args: Code.
|
||||||
|
% Alternative: Use \mint{<language>}|code|
|
||||||
\newcommand{\inlinecode}[1]{\shade{gray}{\texttt{#1}}}
|
\newcommand{\inlinecode}[1]{\shade{gray}{\texttt{#1}}}
|
||||||
|
|
||||||
|
% Args: Language, Code
|
||||||
\newenvironment{code}[1]{
|
\newenvironment{code}[1]{
|
||||||
\VerbatimEnvironment
|
\VerbatimEnvironment
|
||||||
\begin{minted}[
|
\begin{minted}[
|
||||||
@@ -1085,5 +1107,29 @@
|
|||||||
framesep=2mm,
|
framesep=2mm,
|
||||||
mathescape,
|
mathescape,
|
||||||
baselinestretch=1.1,
|
baselinestretch=1.1,
|
||||||
linenos]{#1}}
|
linenos
|
||||||
|
]{#1}}
|
||||||
{\end{minted}}
|
{\end{minted}}
|
||||||
|
|
||||||
|
% Args: Language, file relative to root file
|
||||||
|
\newcommand{\inputcode}[2]{
|
||||||
|
\inputminted[
|
||||||
|
autogobble,
|
||||||
|
breaklines,
|
||||||
|
breakindentnchars=2,
|
||||||
|
frame=lines,
|
||||||
|
framesep=2mm,
|
||||||
|
mathescape,
|
||||||
|
baselinestretch=1.1,
|
||||||
|
linenos
|
||||||
|
]{#1}{#2}
|
||||||
|
}
|
||||||
|
|
||||||
|
% Args: Language, Base directory (with trailing slash), file (no slash at start)
|
||||||
|
\newcommand{\inputcodewithfilename}[3]{
|
||||||
|
\begin{figure}[h!]
|
||||||
|
\texttt{File: \detokenize{#3}}
|
||||||
|
\rmvspace
|
||||||
|
\inputcode{#1}{#2#3}
|
||||||
|
\end{figure}
|
||||||
|
}
|
||||||
|
|||||||
27
dist/minimal.tex
vendored
27
dist/minimal.tex
vendored
@@ -7,7 +7,7 @@
|
|||||||
% █ █ ▄ █ █ █ █ █▄▄▄█ ▄ █ █ █ █ █ █▄▄▄█ █ █ █ █▄▄▄█ █ █ █▄▄▄▄▄█ █
|
% █ █ ▄ █ █ █ █ █▄▄▄█ ▄ █ █ █ █ █ █▄▄▄█ █ █ █ █▄▄▄█ █ █ █▄▄▄▄▄█ █
|
||||||
% █▄▄▄▄▄▄▄█▄█ █▄▄█ █▄▄▄█ █▄▄▄▄▄▄▄█▄▄█ █▄▄█ █▄▄█ █▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄█ █▄▄▄▄▄▄▄█▄▄▄█ █▄█▄▄▄▄▄▄▄█
|
% █▄▄▄▄▄▄▄█▄█ █▄▄█ █▄▄▄█ █▄▄▄▄▄▄▄█▄▄█ █▄▄█ █▄▄█ █▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄█ █▄▄▄▄▄▄▄█▄▄▄█ █▄█▄▄▄▄▄▄▄█
|
||||||
|
|
||||||
|
%
|
||||||
% ▄▄█▀▀▀█▄█
|
% ▄▄█▀▀▀█▄█
|
||||||
% ▄██▀ ▀█
|
% ▄██▀ ▀█
|
||||||
% ██▀ ▀ ▄██▀██▄▀███▄███ ▄▄█▀██
|
% ██▀ ▀ ▄██▀██▄▀███▄███ ▄▄█▀██
|
||||||
@@ -17,9 +17,12 @@
|
|||||||
% ▀▀█████▀ ▀█████▀▄████▄ ▀█████▀
|
% ▀▀█████▀ ▀█████▀▄████▄ ▀█████▀
|
||||||
|
|
||||||
% This file contains all necessary dependencies for the document to compile (at all) and some core macros
|
% This file contains all necessary dependencies for the document to compile (at all) and some core macros
|
||||||
|
% Load this before the config file
|
||||||
|
|
||||||
% Imports %
|
|
||||||
|
% ── Imports ─────────────────────────────────────────────────────────
|
||||||
\typeout{[Core] Importing!}
|
\typeout{[Core] Importing!}
|
||||||
|
|
||||||
\usepackage[table, dvipsnames]{xcolor}
|
\usepackage[table, dvipsnames]{xcolor}
|
||||||
\usepackage{amsmath}
|
\usepackage{amsmath}
|
||||||
\usepackage{graphicx}
|
\usepackage{graphicx}
|
||||||
@@ -46,7 +49,8 @@
|
|||||||
\usepackage{pifont}
|
\usepackage{pifont}
|
||||||
|
|
||||||
|
|
||||||
% Language Switching. Currently only English and German are supported
|
% ── Language Switching. ─────────────────────────────────────────────
|
||||||
|
% Currently only English and German are supported
|
||||||
% See docs for how to use
|
% See docs for how to use
|
||||||
\newcounter{lang}
|
\newcounter{lang}
|
||||||
|
|
||||||
@@ -68,6 +72,7 @@
|
|||||||
\fi
|
\fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
% Deprecated, as not useful
|
||||||
\newcommand{\loadLang}{
|
\newcommand{\loadLang}{
|
||||||
\ifnum\value{lang}<2{
|
\ifnum\value{lang}<2{
|
||||||
\typeout{[Lang Loader] Loaded English}
|
\typeout{[Lang Loader] Loaded English}
|
||||||
@@ -79,12 +84,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
% ────────────────────────────────────────────────────────────────────
|
||||||
% Create config counters / variables. See the config file for changing them
|
% Create config counters / variables. See the config file for changing them
|
||||||
\newcounter{numberingConfig}
|
\newcounter{numberingConfig}
|
||||||
\newcounter{numberSubsections}
|
\newcounter{numberSubsections}
|
||||||
\newcounter{descriptorShadeStrength}
|
\newcounter{descriptorShadeStrength}
|
||||||
\newcounter{shadeStrength}
|
\newcounter{shadeStrength}
|
||||||
|
|
||||||
|
% ── Setup ───────────────────────────────────────────────────────────
|
||||||
% Set up the latex document, configure author, title (as first argument), as well as headers and footers
|
% Set up the latex document, configure author, title (as first argument), as well as headers and footers
|
||||||
\newcommand{\setup}[1]{
|
\newcommand{\setup}[1]{
|
||||||
\typeout{[Setup] Setting up...}
|
\typeout{[Setup] Setting up...}
|
||||||
@@ -92,8 +99,6 @@
|
|||||||
\usepackage[a4paper,textwidth=17.5cm,textheight=25cm,includehead]{geometry}
|
\usepackage[a4paper,textwidth=17.5cm,textheight=25cm,includehead]{geometry}
|
||||||
\title{\Huge \textbf{#1}}
|
\title{\Huge \textbf{#1}}
|
||||||
\author{\authorTitle}
|
\author{\authorTitle}
|
||||||
\makeatletter
|
|
||||||
\makeatother
|
|
||||||
\fancyhead{}
|
\fancyhead{}
|
||||||
\fancyhead[L]{#1}
|
\fancyhead[L]{#1}
|
||||||
\fancyhead[R]{\authorHeaders}
|
\fancyhead[R]{\authorHeaders}
|
||||||
@@ -108,6 +113,7 @@
|
|||||||
\fancyfoot[L]{\today}
|
\fancyfoot[L]{\today}
|
||||||
\fancyfoot[R]{\thepage\ /\ \pageref{LastPage}}
|
\fancyfoot[R]{\thepage\ /\ \pageref{LastPage}}
|
||||||
}
|
}
|
||||||
|
\typeout{[Setup] Complete}
|
||||||
}
|
}
|
||||||
|
|
||||||
% Start document command (required)
|
% Start document command (required)
|
||||||
@@ -116,6 +122,7 @@
|
|||||||
\startDocumentNoTitle
|
\startDocumentNoTitle
|
||||||
}
|
}
|
||||||
|
|
||||||
|
% Or this one, if you don't want a title
|
||||||
\newcommand{\startDocumentNoTitle}{
|
\newcommand{\startDocumentNoTitle}{
|
||||||
\pagestyle{fancy}
|
\pagestyle{fancy}
|
||||||
\thispagestyle{fancy}
|
\thispagestyle{fancy}
|
||||||
@@ -123,6 +130,7 @@
|
|||||||
|
|
||||||
% Set up the latex document, only configuring the author, title and page size
|
% Set up the latex document, only configuring the author, title and page size
|
||||||
\newcommand{\setupBarebones}[1]{
|
\newcommand{\setupBarebones}[1]{
|
||||||
|
\typeout{[Setup] Using barebones setup}
|
||||||
\loadLang
|
\loadLang
|
||||||
\usepackage[a4paper,textwidth=17.5cm,textheight=25cm,includehead]{geometry}
|
\usepackage[a4paper,textwidth=17.5cm,textheight=25cm,includehead]{geometry}
|
||||||
\title{\Huge \textbf{#1}}
|
\title{\Huge \textbf{#1}}
|
||||||
@@ -131,6 +139,7 @@
|
|||||||
|
|
||||||
% Set up the latex document for exam summaries (Extra wide body, small margins, no header)
|
% Set up the latex document for exam summaries (Extra wide body, small margins, no header)
|
||||||
\newcommand{\setupCheatSheet}[1]{
|
\newcommand{\setupCheatSheet}[1]{
|
||||||
|
\typeout{[Setup] Using CheatSheet setup}
|
||||||
\loadLang
|
\loadLang
|
||||||
\usepackage[a4paper,textwidth=20cm,textheight=28.5cm]{geometry}
|
\usepackage[a4paper,textwidth=20cm,textheight=28.5cm]{geometry}
|
||||||
\title{\Huge \textbf{#1}}
|
\title{\Huge \textbf{#1}}
|
||||||
@@ -263,8 +272,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
\newcommand{\hrmvspace}{\vspace{-0.25pc}}
|
||||||
\newcommand{\rmvspace}{\vspace{-0.5pc}}
|
\newcommand{\rmvspace}{\vspace{-0.5pc}}
|
||||||
|
\newcommand{\mrmvspace}{\vspace{-0.75pc}}
|
||||||
\newcommand{\drmvspace}{\vspace{-1pc}}
|
\newcommand{\drmvspace}{\vspace{-1pc}}
|
||||||
|
\newcommand{\dhrmvspace}{\vspace{-1.25pc}}
|
||||||
|
\newcommand{\dnrmvspace}{\vspace{-1.5pc}}
|
||||||
|
\newcommand{\dmrmvspace}{\vspace{-1.75pc}}
|
||||||
|
\newcommand{\ddrmvspace}{\vspace{-2pc}}
|
||||||
\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}}}
|
||||||
@@ -332,6 +348,7 @@
|
|||||||
%██░▀▀▄██▄▄██▄███▄█▄███▄██▄▄██▄██▄
|
%██░▀▀▄██▄▄██▄███▄█▄███▄██▄▄██▄██▄
|
||||||
%▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
%▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
||||||
|
|
||||||
|
% General tcolorboxes
|
||||||
\newtcolorbox{recall}[2][]{mainboxstyle,colback=yellow!5!white,colframe=yellow!75!black,colbacktitle=yellow!75!black,title={\large #2},
|
\newtcolorbox{recall}[2][]{mainboxstyle,colback=yellow!5!white,colframe=yellow!75!black,colbacktitle=yellow!75!black,title={\large #2},
|
||||||
overlay={\node[overlaystyle,draw=yellow!75!black,,fill=yellow!75!black] at (frame.north east) {\large \translate{Recall }{Repetition }};},#1}
|
overlay={\node[overlaystyle,draw=yellow!75!black,,fill=yellow!75!black] at (frame.north east) {\large \translate{Recall }{Repetition }};},#1}
|
||||||
|
|
||||||
|
|||||||
51
dist/most.tex
vendored
51
dist/most.tex
vendored
@@ -7,7 +7,7 @@
|
|||||||
% █ █ ▄ █ █ █ █ █▄▄▄█ ▄ █ █ █ █ █ █▄▄▄█ █ █ █ █▄▄▄█ █ █ █▄▄▄▄▄█ █
|
% █ █ ▄ █ █ █ █ █▄▄▄█ ▄ █ █ █ █ █ █▄▄▄█ █ █ █ █▄▄▄█ █ █ █▄▄▄▄▄█ █
|
||||||
% █▄▄▄▄▄▄▄█▄█ █▄▄█ █▄▄▄█ █▄▄▄▄▄▄▄█▄▄█ █▄▄█ █▄▄█ █▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄█ █▄▄▄▄▄▄▄█▄▄▄█ █▄█▄▄▄▄▄▄▄█
|
% █▄▄▄▄▄▄▄█▄█ █▄▄█ █▄▄▄█ █▄▄▄▄▄▄▄█▄▄█ █▄▄█ █▄▄█ █▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄█ █▄▄▄▄▄▄▄█▄▄▄█ █▄█▄▄▄▄▄▄▄█
|
||||||
|
|
||||||
|
%
|
||||||
% ▄▄█▀▀▀█▄█
|
% ▄▄█▀▀▀█▄█
|
||||||
% ▄██▀ ▀█
|
% ▄██▀ ▀█
|
||||||
% ██▀ ▀ ▄██▀██▄▀███▄███ ▄▄█▀██
|
% ██▀ ▀ ▄██▀██▄▀███▄███ ▄▄█▀██
|
||||||
@@ -17,9 +17,12 @@
|
|||||||
% ▀▀█████▀ ▀█████▀▄████▄ ▀█████▀
|
% ▀▀█████▀ ▀█████▀▄████▄ ▀█████▀
|
||||||
|
|
||||||
% This file contains all necessary dependencies for the document to compile (at all) and some core macros
|
% This file contains all necessary dependencies for the document to compile (at all) and some core macros
|
||||||
|
% Load this before the config file
|
||||||
|
|
||||||
% Imports %
|
|
||||||
|
% ── Imports ─────────────────────────────────────────────────────────
|
||||||
\typeout{[Core] Importing!}
|
\typeout{[Core] Importing!}
|
||||||
|
|
||||||
\usepackage[table, dvipsnames]{xcolor}
|
\usepackage[table, dvipsnames]{xcolor}
|
||||||
\usepackage{amsmath}
|
\usepackage{amsmath}
|
||||||
\usepackage{graphicx}
|
\usepackage{graphicx}
|
||||||
@@ -46,7 +49,8 @@
|
|||||||
\usepackage{pifont}
|
\usepackage{pifont}
|
||||||
|
|
||||||
|
|
||||||
% Language Switching. Currently only English and German are supported
|
% ── Language Switching. ─────────────────────────────────────────────
|
||||||
|
% Currently only English and German are supported
|
||||||
% See docs for how to use
|
% See docs for how to use
|
||||||
\newcounter{lang}
|
\newcounter{lang}
|
||||||
|
|
||||||
@@ -68,6 +72,7 @@
|
|||||||
\fi
|
\fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
% Deprecated, as not useful
|
||||||
\newcommand{\loadLang}{
|
\newcommand{\loadLang}{
|
||||||
\ifnum\value{lang}<2{
|
\ifnum\value{lang}<2{
|
||||||
\typeout{[Lang Loader] Loaded English}
|
\typeout{[Lang Loader] Loaded English}
|
||||||
@@ -79,12 +84,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
% ────────────────────────────────────────────────────────────────────
|
||||||
% Create config counters / variables. See the config file for changing them
|
% Create config counters / variables. See the config file for changing them
|
||||||
\newcounter{numberingConfig}
|
\newcounter{numberingConfig}
|
||||||
\newcounter{numberSubsections}
|
\newcounter{numberSubsections}
|
||||||
\newcounter{descriptorShadeStrength}
|
\newcounter{descriptorShadeStrength}
|
||||||
\newcounter{shadeStrength}
|
\newcounter{shadeStrength}
|
||||||
|
|
||||||
|
% ── Setup ───────────────────────────────────────────────────────────
|
||||||
% Set up the latex document, configure author, title (as first argument), as well as headers and footers
|
% Set up the latex document, configure author, title (as first argument), as well as headers and footers
|
||||||
\newcommand{\setup}[1]{
|
\newcommand{\setup}[1]{
|
||||||
\typeout{[Setup] Setting up...}
|
\typeout{[Setup] Setting up...}
|
||||||
@@ -92,8 +99,6 @@
|
|||||||
\usepackage[a4paper,textwidth=17.5cm,textheight=25cm,includehead]{geometry}
|
\usepackage[a4paper,textwidth=17.5cm,textheight=25cm,includehead]{geometry}
|
||||||
\title{\Huge \textbf{#1}}
|
\title{\Huge \textbf{#1}}
|
||||||
\author{\authorTitle}
|
\author{\authorTitle}
|
||||||
\makeatletter
|
|
||||||
\makeatother
|
|
||||||
\fancyhead{}
|
\fancyhead{}
|
||||||
\fancyhead[L]{#1}
|
\fancyhead[L]{#1}
|
||||||
\fancyhead[R]{\authorHeaders}
|
\fancyhead[R]{\authorHeaders}
|
||||||
@@ -108,6 +113,7 @@
|
|||||||
\fancyfoot[L]{\today}
|
\fancyfoot[L]{\today}
|
||||||
\fancyfoot[R]{\thepage\ /\ \pageref{LastPage}}
|
\fancyfoot[R]{\thepage\ /\ \pageref{LastPage}}
|
||||||
}
|
}
|
||||||
|
\typeout{[Setup] Complete}
|
||||||
}
|
}
|
||||||
|
|
||||||
% Start document command (required)
|
% Start document command (required)
|
||||||
@@ -116,6 +122,7 @@
|
|||||||
\startDocumentNoTitle
|
\startDocumentNoTitle
|
||||||
}
|
}
|
||||||
|
|
||||||
|
% Or this one, if you don't want a title
|
||||||
\newcommand{\startDocumentNoTitle}{
|
\newcommand{\startDocumentNoTitle}{
|
||||||
\pagestyle{fancy}
|
\pagestyle{fancy}
|
||||||
\thispagestyle{fancy}
|
\thispagestyle{fancy}
|
||||||
@@ -123,6 +130,7 @@
|
|||||||
|
|
||||||
% Set up the latex document, only configuring the author, title and page size
|
% Set up the latex document, only configuring the author, title and page size
|
||||||
\newcommand{\setupBarebones}[1]{
|
\newcommand{\setupBarebones}[1]{
|
||||||
|
\typeout{[Setup] Using barebones setup}
|
||||||
\loadLang
|
\loadLang
|
||||||
\usepackage[a4paper,textwidth=17.5cm,textheight=25cm,includehead]{geometry}
|
\usepackage[a4paper,textwidth=17.5cm,textheight=25cm,includehead]{geometry}
|
||||||
\title{\Huge \textbf{#1}}
|
\title{\Huge \textbf{#1}}
|
||||||
@@ -131,6 +139,7 @@
|
|||||||
|
|
||||||
% Set up the latex document for exam summaries (Extra wide body, small margins, no header)
|
% Set up the latex document for exam summaries (Extra wide body, small margins, no header)
|
||||||
\newcommand{\setupCheatSheet}[1]{
|
\newcommand{\setupCheatSheet}[1]{
|
||||||
|
\typeout{[Setup] Using CheatSheet setup}
|
||||||
\loadLang
|
\loadLang
|
||||||
\usepackage[a4paper,textwidth=20cm,textheight=28.5cm]{geometry}
|
\usepackage[a4paper,textwidth=20cm,textheight=28.5cm]{geometry}
|
||||||
\title{\Huge \textbf{#1}}
|
\title{\Huge \textbf{#1}}
|
||||||
@@ -263,8 +272,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
\newcommand{\hrmvspace}{\vspace{-0.25pc}}
|
||||||
\newcommand{\rmvspace}{\vspace{-0.5pc}}
|
\newcommand{\rmvspace}{\vspace{-0.5pc}}
|
||||||
|
\newcommand{\mrmvspace}{\vspace{-0.75pc}}
|
||||||
\newcommand{\drmvspace}{\vspace{-1pc}}
|
\newcommand{\drmvspace}{\vspace{-1pc}}
|
||||||
|
\newcommand{\dhrmvspace}{\vspace{-1.25pc}}
|
||||||
|
\newcommand{\dnrmvspace}{\vspace{-1.5pc}}
|
||||||
|
\newcommand{\dmrmvspace}{\vspace{-1.75pc}}
|
||||||
|
\newcommand{\ddrmvspace}{\vspace{-2pc}}
|
||||||
\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}}}
|
||||||
@@ -332,6 +348,7 @@
|
|||||||
%██░▀▀▄██▄▄██▄███▄█▄███▄██▄▄██▄██▄
|
%██░▀▀▄██▄▄██▄███▄█▄███▄██▄▄██▄██▄
|
||||||
%▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
%▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
||||||
|
|
||||||
|
% General tcolorboxes
|
||||||
\newtcolorbox{recall}[2][]{mainboxstyle,colback=yellow!5!white,colframe=yellow!75!black,colbacktitle=yellow!75!black,title={\large #2},
|
\newtcolorbox{recall}[2][]{mainboxstyle,colback=yellow!5!white,colframe=yellow!75!black,colbacktitle=yellow!75!black,title={\large #2},
|
||||||
overlay={\node[overlaystyle,draw=yellow!75!black,,fill=yellow!75!black] at (frame.north east) {\large \translate{Recall }{Repetition }};},#1}
|
overlay={\node[overlaystyle,draw=yellow!75!black,,fill=yellow!75!black] at (frame.north east) {\large \translate{Recall }{Repetition }};},#1}
|
||||||
|
|
||||||
@@ -473,7 +490,7 @@
|
|||||||
\newcommand{\divides}{\hspace{0.25em}|\hspace{0.25em}}
|
\newcommand{\divides}{\hspace{0.25em}|\hspace{0.25em}}
|
||||||
\newcommand{\mbeq}{\overset{!}{=}}
|
\newcommand{\mbeq}{\overset{!}{=}}
|
||||||
\newcommand{\lcm}{\text{lcm}}
|
\newcommand{\lcm}{\text{lcm}}
|
||||||
\newcommand{\limit}[2]{\lim_{#1 \rightarrow #2}}
|
\newcommand{\limit}[2]{\underset{#1 \rightarrow #2}{\lim}}
|
||||||
\newcommand{\seq}[1]{(#1_n)_{n \geq 1}}
|
\newcommand{\seq}[1]{(#1_n)_{n \geq 1}}
|
||||||
\newcommand{\ser}[2]{\sum_{k = 1}^{#2} #1_k}
|
\newcommand{\ser}[2]{\sum_{k = 1}^{#2} #1_k}
|
||||||
\newcommand{\limni}{\limit{n}{\infty}}
|
\newcommand{\limni}{\limit{n}{\infty}}
|
||||||
@@ -491,6 +508,7 @@
|
|||||||
% ░▒█░░░░█░░█░█░▀░█░█▄▄█░█░▒█░░█░░█▀▀░█▄▄▀░░░░▀▀▀▄▄░█░░░░█▀░█▀▀░█░▒█░█░░░█▀▀
|
% ░▒█░░░░█░░█░█░▀░█░█▄▄█░█░▒█░░█░░█▀▀░█▄▄▀░░░░▀▀▀▄▄░█░░░░█▀░█▀▀░█░▒█░█░░░█▀▀
|
||||||
% ░▒█▄▄▀░░▀▀░░▀░░▒▀░█░░░░░▀▀▀░░▀░░▀▀▀░▀░▀▀░░░▒█▄▄▄█░▀▀▀░▀▀▀░▀▀▀░▀░░▀░▀▀▀░▀▀▀
|
% ░▒█▄▄▀░░▀▀░░▀░░▒▀░█░░░░░▀▀▀░░▀░░▀▀▀░▀░▀▀░░░▒█▄▄▄█░▀▀▀░▀▀▀░▀▀▀░▀░░▀░▀▀▀░▀▀▀
|
||||||
|
|
||||||
|
|
||||||
% Extra imports
|
% Extra imports
|
||||||
\usepackage{stmaryrd}
|
\usepackage{stmaryrd}
|
||||||
\usepackage{algorithm}
|
\usepackage{algorithm}
|
||||||
@@ -502,6 +520,7 @@
|
|||||||
|
|
||||||
\newcommand{\Indent}{\hspace{\algorithmicindent}}
|
\newcommand{\Indent}{\hspace{\algorithmicindent}}
|
||||||
|
|
||||||
|
% Extra commands
|
||||||
\newcommand{\timecomplexity}{\fhlc{orange}{\ifnum\value{lang}<2{Time complexity}\else {Laufzeit}\fi} \hspace{0.5em}}
|
\newcommand{\timecomplexity}{\fhlc{orange}{\ifnum\value{lang}<2{Time complexity}\else {Laufzeit}\fi} \hspace{0.5em}}
|
||||||
\newcommand{\tc}[1]{\timecomplexity $\Theta\left(#1\right)$}
|
\newcommand{\tc}[1]{\timecomplexity $\Theta\left(#1\right)$}
|
||||||
\newcommand{\tct}[1]{\Theta\left(#1\right)}
|
\newcommand{\tct}[1]{\Theta\left(#1\right)}
|
||||||
@@ -614,14 +633,14 @@
|
|||||||
% │ Counter numbering │
|
% │ Counter numbering │
|
||||||
% └ ┘
|
% └ ┘
|
||||||
\newcommand{\preTableAndFigHook}[1]{%
|
\newcommand{\preTableAndFigHook}[1]{%
|
||||||
\ifnum\value{numberingConfig}>1
|
\ifnum\value{numberingConfig}>1%
|
||||||
\ifnum\value{numberSubsections}=1
|
\ifnum\value{numberSubsections}=1%
|
||||||
\stepcounter{allss}
|
\stepcounter{allss}%
|
||||||
\else
|
\else
|
||||||
\ifnum\value{numberSubsections}=2
|
\ifnum\value{numberSubsections}=2%
|
||||||
\stepcounter{allsss}
|
\stepcounter{allsss}%
|
||||||
\else
|
\else%
|
||||||
\stepcounter{all}
|
\stepcounter{all}%
|
||||||
\fi
|
\fi
|
||||||
\fi
|
\fi
|
||||||
\fi
|
\fi
|
||||||
@@ -632,8 +651,8 @@
|
|||||||
\newcommand{\applyTableAndFigureNumbering}{
|
\newcommand{\applyTableAndFigureNumbering}{
|
||||||
% Tables & Figures
|
% Tables & Figures
|
||||||
\ifnum\value{numberingConfig}=0
|
\ifnum\value{numberingConfig}=0
|
||||||
\renewcommand{\thetable}{}
|
\renewcommand{\thetable}{\arabic{table}}
|
||||||
\renewcommand{\thefigure}{}
|
\renewcommand{\thefigure}{\arabic{figure}}
|
||||||
\else
|
\else
|
||||||
\ifnum\value{numberingConfig}=1
|
\ifnum\value{numberingConfig}=1
|
||||||
\renewcommand{\thetable}{\sectionNumbering.\arabic{table}}
|
\renewcommand{\thetable}{\sectionNumbering.\arabic{table}}
|
||||||
@@ -979,7 +998,7 @@
|
|||||||
% ▀▀ █▪▀▀▀ ▀ ▀ ▀▀▀ ▀▀▀ · ▀▀▀▀ ▀▀▀ ▀ • .▀▀▀ ▀▀▀
|
% ▀▀ █▪▀▀▀ ▀ ▀ ▀▀▀ ▀▀▀ · ▀▀▀▀ ▀▀▀ ▀ • .▀▀▀ ▀▀▀
|
||||||
|
|
||||||
% Replace some commonly used commands with better ones
|
% Replace some commonly used commands with better ones
|
||||||
\renewcommand{\vec}[1]{\overrightarrow{#1}}
|
\newcommand{\vect}[1]{\overrightarrow{#1}}
|
||||||
\renewcommand{\hat}[1]{\widehat{#1}}
|
\renewcommand{\hat}[1]{\widehat{#1}}
|
||||||
\renewcommand{\tilde}[1]{\widetilde{#1}}
|
\renewcommand{\tilde}[1]{\widetilde{#1}}
|
||||||
\newcommand{\proven}{$\hspace{17cm}\square$}
|
\newcommand{\proven}{$\hspace{17cm}\square$}
|
||||||
|
|||||||
51
dist/recommended.tex
vendored
51
dist/recommended.tex
vendored
@@ -7,7 +7,7 @@
|
|||||||
% █ █ ▄ █ █ █ █ █▄▄▄█ ▄ █ █ █ █ █ █▄▄▄█ █ █ █ █▄▄▄█ █ █ █▄▄▄▄▄█ █
|
% █ █ ▄ █ █ █ █ █▄▄▄█ ▄ █ █ █ █ █ █▄▄▄█ █ █ █ █▄▄▄█ █ █ █▄▄▄▄▄█ █
|
||||||
% █▄▄▄▄▄▄▄█▄█ █▄▄█ █▄▄▄█ █▄▄▄▄▄▄▄█▄▄█ █▄▄█ █▄▄█ █▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄█ █▄▄▄▄▄▄▄█▄▄▄█ █▄█▄▄▄▄▄▄▄█
|
% █▄▄▄▄▄▄▄█▄█ █▄▄█ █▄▄▄█ █▄▄▄▄▄▄▄█▄▄█ █▄▄█ █▄▄█ █▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄█ █▄▄▄▄▄▄▄█▄▄▄█ █▄█▄▄▄▄▄▄▄█
|
||||||
|
|
||||||
|
%
|
||||||
% ▄▄█▀▀▀█▄█
|
% ▄▄█▀▀▀█▄█
|
||||||
% ▄██▀ ▀█
|
% ▄██▀ ▀█
|
||||||
% ██▀ ▀ ▄██▀██▄▀███▄███ ▄▄█▀██
|
% ██▀ ▀ ▄██▀██▄▀███▄███ ▄▄█▀██
|
||||||
@@ -17,9 +17,12 @@
|
|||||||
% ▀▀█████▀ ▀█████▀▄████▄ ▀█████▀
|
% ▀▀█████▀ ▀█████▀▄████▄ ▀█████▀
|
||||||
|
|
||||||
% This file contains all necessary dependencies for the document to compile (at all) and some core macros
|
% This file contains all necessary dependencies for the document to compile (at all) and some core macros
|
||||||
|
% Load this before the config file
|
||||||
|
|
||||||
% Imports %
|
|
||||||
|
% ── Imports ─────────────────────────────────────────────────────────
|
||||||
\typeout{[Core] Importing!}
|
\typeout{[Core] Importing!}
|
||||||
|
|
||||||
\usepackage[table, dvipsnames]{xcolor}
|
\usepackage[table, dvipsnames]{xcolor}
|
||||||
\usepackage{amsmath}
|
\usepackage{amsmath}
|
||||||
\usepackage{graphicx}
|
\usepackage{graphicx}
|
||||||
@@ -46,7 +49,8 @@
|
|||||||
\usepackage{pifont}
|
\usepackage{pifont}
|
||||||
|
|
||||||
|
|
||||||
% Language Switching. Currently only English and German are supported
|
% ── Language Switching. ─────────────────────────────────────────────
|
||||||
|
% Currently only English and German are supported
|
||||||
% See docs for how to use
|
% See docs for how to use
|
||||||
\newcounter{lang}
|
\newcounter{lang}
|
||||||
|
|
||||||
@@ -68,6 +72,7 @@
|
|||||||
\fi
|
\fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
% Deprecated, as not useful
|
||||||
\newcommand{\loadLang}{
|
\newcommand{\loadLang}{
|
||||||
\ifnum\value{lang}<2{
|
\ifnum\value{lang}<2{
|
||||||
\typeout{[Lang Loader] Loaded English}
|
\typeout{[Lang Loader] Loaded English}
|
||||||
@@ -79,12 +84,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
% ────────────────────────────────────────────────────────────────────
|
||||||
% Create config counters / variables. See the config file for changing them
|
% Create config counters / variables. See the config file for changing them
|
||||||
\newcounter{numberingConfig}
|
\newcounter{numberingConfig}
|
||||||
\newcounter{numberSubsections}
|
\newcounter{numberSubsections}
|
||||||
\newcounter{descriptorShadeStrength}
|
\newcounter{descriptorShadeStrength}
|
||||||
\newcounter{shadeStrength}
|
\newcounter{shadeStrength}
|
||||||
|
|
||||||
|
% ── Setup ───────────────────────────────────────────────────────────
|
||||||
% Set up the latex document, configure author, title (as first argument), as well as headers and footers
|
% Set up the latex document, configure author, title (as first argument), as well as headers and footers
|
||||||
\newcommand{\setup}[1]{
|
\newcommand{\setup}[1]{
|
||||||
\typeout{[Setup] Setting up...}
|
\typeout{[Setup] Setting up...}
|
||||||
@@ -92,8 +99,6 @@
|
|||||||
\usepackage[a4paper,textwidth=17.5cm,textheight=25cm,includehead]{geometry}
|
\usepackage[a4paper,textwidth=17.5cm,textheight=25cm,includehead]{geometry}
|
||||||
\title{\Huge \textbf{#1}}
|
\title{\Huge \textbf{#1}}
|
||||||
\author{\authorTitle}
|
\author{\authorTitle}
|
||||||
\makeatletter
|
|
||||||
\makeatother
|
|
||||||
\fancyhead{}
|
\fancyhead{}
|
||||||
\fancyhead[L]{#1}
|
\fancyhead[L]{#1}
|
||||||
\fancyhead[R]{\authorHeaders}
|
\fancyhead[R]{\authorHeaders}
|
||||||
@@ -108,6 +113,7 @@
|
|||||||
\fancyfoot[L]{\today}
|
\fancyfoot[L]{\today}
|
||||||
\fancyfoot[R]{\thepage\ /\ \pageref{LastPage}}
|
\fancyfoot[R]{\thepage\ /\ \pageref{LastPage}}
|
||||||
}
|
}
|
||||||
|
\typeout{[Setup] Complete}
|
||||||
}
|
}
|
||||||
|
|
||||||
% Start document command (required)
|
% Start document command (required)
|
||||||
@@ -116,6 +122,7 @@
|
|||||||
\startDocumentNoTitle
|
\startDocumentNoTitle
|
||||||
}
|
}
|
||||||
|
|
||||||
|
% Or this one, if you don't want a title
|
||||||
\newcommand{\startDocumentNoTitle}{
|
\newcommand{\startDocumentNoTitle}{
|
||||||
\pagestyle{fancy}
|
\pagestyle{fancy}
|
||||||
\thispagestyle{fancy}
|
\thispagestyle{fancy}
|
||||||
@@ -123,6 +130,7 @@
|
|||||||
|
|
||||||
% Set up the latex document, only configuring the author, title and page size
|
% Set up the latex document, only configuring the author, title and page size
|
||||||
\newcommand{\setupBarebones}[1]{
|
\newcommand{\setupBarebones}[1]{
|
||||||
|
\typeout{[Setup] Using barebones setup}
|
||||||
\loadLang
|
\loadLang
|
||||||
\usepackage[a4paper,textwidth=17.5cm,textheight=25cm,includehead]{geometry}
|
\usepackage[a4paper,textwidth=17.5cm,textheight=25cm,includehead]{geometry}
|
||||||
\title{\Huge \textbf{#1}}
|
\title{\Huge \textbf{#1}}
|
||||||
@@ -131,6 +139,7 @@
|
|||||||
|
|
||||||
% Set up the latex document for exam summaries (Extra wide body, small margins, no header)
|
% Set up the latex document for exam summaries (Extra wide body, small margins, no header)
|
||||||
\newcommand{\setupCheatSheet}[1]{
|
\newcommand{\setupCheatSheet}[1]{
|
||||||
|
\typeout{[Setup] Using CheatSheet setup}
|
||||||
\loadLang
|
\loadLang
|
||||||
\usepackage[a4paper,textwidth=20cm,textheight=28.5cm]{geometry}
|
\usepackage[a4paper,textwidth=20cm,textheight=28.5cm]{geometry}
|
||||||
\title{\Huge \textbf{#1}}
|
\title{\Huge \textbf{#1}}
|
||||||
@@ -263,8 +272,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
\newcommand{\hrmvspace}{\vspace{-0.25pc}}
|
||||||
\newcommand{\rmvspace}{\vspace{-0.5pc}}
|
\newcommand{\rmvspace}{\vspace{-0.5pc}}
|
||||||
|
\newcommand{\mrmvspace}{\vspace{-0.75pc}}
|
||||||
\newcommand{\drmvspace}{\vspace{-1pc}}
|
\newcommand{\drmvspace}{\vspace{-1pc}}
|
||||||
|
\newcommand{\dhrmvspace}{\vspace{-1.25pc}}
|
||||||
|
\newcommand{\dnrmvspace}{\vspace{-1.5pc}}
|
||||||
|
\newcommand{\dmrmvspace}{\vspace{-1.75pc}}
|
||||||
|
\newcommand{\ddrmvspace}{\vspace{-2pc}}
|
||||||
\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}}}
|
||||||
@@ -332,6 +348,7 @@
|
|||||||
%██░▀▀▄██▄▄██▄███▄█▄███▄██▄▄██▄██▄
|
%██░▀▀▄██▄▄██▄███▄█▄███▄██▄▄██▄██▄
|
||||||
%▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
%▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
||||||
|
|
||||||
|
% General tcolorboxes
|
||||||
\newtcolorbox{recall}[2][]{mainboxstyle,colback=yellow!5!white,colframe=yellow!75!black,colbacktitle=yellow!75!black,title={\large #2},
|
\newtcolorbox{recall}[2][]{mainboxstyle,colback=yellow!5!white,colframe=yellow!75!black,colbacktitle=yellow!75!black,title={\large #2},
|
||||||
overlay={\node[overlaystyle,draw=yellow!75!black,,fill=yellow!75!black] at (frame.north east) {\large \translate{Recall }{Repetition }};},#1}
|
overlay={\node[overlaystyle,draw=yellow!75!black,,fill=yellow!75!black] at (frame.north east) {\large \translate{Recall }{Repetition }};},#1}
|
||||||
|
|
||||||
@@ -473,7 +490,7 @@
|
|||||||
\newcommand{\divides}{\hspace{0.25em}|\hspace{0.25em}}
|
\newcommand{\divides}{\hspace{0.25em}|\hspace{0.25em}}
|
||||||
\newcommand{\mbeq}{\overset{!}{=}}
|
\newcommand{\mbeq}{\overset{!}{=}}
|
||||||
\newcommand{\lcm}{\text{lcm}}
|
\newcommand{\lcm}{\text{lcm}}
|
||||||
\newcommand{\limit}[2]{\lim_{#1 \rightarrow #2}}
|
\newcommand{\limit}[2]{\underset{#1 \rightarrow #2}{\lim}}
|
||||||
\newcommand{\seq}[1]{(#1_n)_{n \geq 1}}
|
\newcommand{\seq}[1]{(#1_n)_{n \geq 1}}
|
||||||
\newcommand{\ser}[2]{\sum_{k = 1}^{#2} #1_k}
|
\newcommand{\ser}[2]{\sum_{k = 1}^{#2} #1_k}
|
||||||
\newcommand{\limni}{\limit{n}{\infty}}
|
\newcommand{\limni}{\limit{n}{\infty}}
|
||||||
@@ -491,6 +508,7 @@
|
|||||||
% ░▒█░░░░█░░█░█░▀░█░█▄▄█░█░▒█░░█░░█▀▀░█▄▄▀░░░░▀▀▀▄▄░█░░░░█▀░█▀▀░█░▒█░█░░░█▀▀
|
% ░▒█░░░░█░░█░█░▀░█░█▄▄█░█░▒█░░█░░█▀▀░█▄▄▀░░░░▀▀▀▄▄░█░░░░█▀░█▀▀░█░▒█░█░░░█▀▀
|
||||||
% ░▒█▄▄▀░░▀▀░░▀░░▒▀░█░░░░░▀▀▀░░▀░░▀▀▀░▀░▀▀░░░▒█▄▄▄█░▀▀▀░▀▀▀░▀▀▀░▀░░▀░▀▀▀░▀▀▀
|
% ░▒█▄▄▀░░▀▀░░▀░░▒▀░█░░░░░▀▀▀░░▀░░▀▀▀░▀░▀▀░░░▒█▄▄▄█░▀▀▀░▀▀▀░▀▀▀░▀░░▀░▀▀▀░▀▀▀
|
||||||
|
|
||||||
|
|
||||||
% Extra imports
|
% Extra imports
|
||||||
\usepackage{stmaryrd}
|
\usepackage{stmaryrd}
|
||||||
\usepackage{algorithm}
|
\usepackage{algorithm}
|
||||||
@@ -502,6 +520,7 @@
|
|||||||
|
|
||||||
\newcommand{\Indent}{\hspace{\algorithmicindent}}
|
\newcommand{\Indent}{\hspace{\algorithmicindent}}
|
||||||
|
|
||||||
|
% Extra commands
|
||||||
\newcommand{\timecomplexity}{\fhlc{orange}{\ifnum\value{lang}<2{Time complexity}\else {Laufzeit}\fi} \hspace{0.5em}}
|
\newcommand{\timecomplexity}{\fhlc{orange}{\ifnum\value{lang}<2{Time complexity}\else {Laufzeit}\fi} \hspace{0.5em}}
|
||||||
\newcommand{\tc}[1]{\timecomplexity $\Theta\left(#1\right)$}
|
\newcommand{\tc}[1]{\timecomplexity $\Theta\left(#1\right)$}
|
||||||
\newcommand{\tct}[1]{\Theta\left(#1\right)}
|
\newcommand{\tct}[1]{\Theta\left(#1\right)}
|
||||||
@@ -614,14 +633,14 @@
|
|||||||
% │ Counter numbering │
|
% │ Counter numbering │
|
||||||
% └ ┘
|
% └ ┘
|
||||||
\newcommand{\preTableAndFigHook}[1]{%
|
\newcommand{\preTableAndFigHook}[1]{%
|
||||||
\ifnum\value{numberingConfig}>1
|
\ifnum\value{numberingConfig}>1%
|
||||||
\ifnum\value{numberSubsections}=1
|
\ifnum\value{numberSubsections}=1%
|
||||||
\stepcounter{allss}
|
\stepcounter{allss}%
|
||||||
\else
|
\else
|
||||||
\ifnum\value{numberSubsections}=2
|
\ifnum\value{numberSubsections}=2%
|
||||||
\stepcounter{allsss}
|
\stepcounter{allsss}%
|
||||||
\else
|
\else%
|
||||||
\stepcounter{all}
|
\stepcounter{all}%
|
||||||
\fi
|
\fi
|
||||||
\fi
|
\fi
|
||||||
\fi
|
\fi
|
||||||
@@ -632,8 +651,8 @@
|
|||||||
\newcommand{\applyTableAndFigureNumbering}{
|
\newcommand{\applyTableAndFigureNumbering}{
|
||||||
% Tables & Figures
|
% Tables & Figures
|
||||||
\ifnum\value{numberingConfig}=0
|
\ifnum\value{numberingConfig}=0
|
||||||
\renewcommand{\thetable}{}
|
\renewcommand{\thetable}{\arabic{table}}
|
||||||
\renewcommand{\thefigure}{}
|
\renewcommand{\thefigure}{\arabic{figure}}
|
||||||
\else
|
\else
|
||||||
\ifnum\value{numberingConfig}=1
|
\ifnum\value{numberingConfig}=1
|
||||||
\renewcommand{\thetable}{\sectionNumbering.\arabic{table}}
|
\renewcommand{\thetable}{\sectionNumbering.\arabic{table}}
|
||||||
@@ -979,7 +998,7 @@
|
|||||||
% ▀▀ █▪▀▀▀ ▀ ▀ ▀▀▀ ▀▀▀ · ▀▀▀▀ ▀▀▀ ▀ • .▀▀▀ ▀▀▀
|
% ▀▀ █▪▀▀▀ ▀ ▀ ▀▀▀ ▀▀▀ · ▀▀▀▀ ▀▀▀ ▀ • .▀▀▀ ▀▀▀
|
||||||
|
|
||||||
% Replace some commonly used commands with better ones
|
% Replace some commonly used commands with better ones
|
||||||
\renewcommand{\vec}[1]{\overrightarrow{#1}}
|
\newcommand{\vect}[1]{\overrightarrow{#1}}
|
||||||
\renewcommand{\hat}[1]{\widehat{#1}}
|
\renewcommand{\hat}[1]{\widehat{#1}}
|
||||||
\renewcommand{\tilde}[1]{\widetilde{#1}}
|
\renewcommand{\tilde}[1]{\widetilde{#1}}
|
||||||
\newcommand{\proven}{$\hspace{17cm}\square$}
|
\newcommand{\proven}{$\hspace{17cm}\square$}
|
||||||
|
|||||||
BIN
docs/docs.pdf
BIN
docs/docs.pdf
Binary file not shown.
@@ -21,7 +21,10 @@
|
|||||||
\section{Introduction}
|
\section{Introduction}
|
||||||
This set of \LaTeX files is designed to give you a good looking, pre-configured \LaTeX setup, which helps you get started much more quickly.
|
This set of \LaTeX files is designed to give you a good looking, pre-configured \LaTeX setup, which helps you get started much more quickly.
|
||||||
|
|
||||||
It has some configuration options already, but more are to come soon. If you have any suggestions as to what should be added, don't hesitate to open a support ticket at \url{https://support.janishutz.com?a=add} or contacting me via email to \texttt{development@janishutz.com}.
|
It has some configuration options already, but more are to come soon.
|
||||||
|
If you have any suggestions as to what should be added, don't hesitate to open a support ticket at \url{https://support.janishutz.com?a=add}.
|
||||||
|
|
||||||
|
This document is automatically compiled on push from the files in the docs directory. If there are issues with the doc, please contact me at \url{https://support.janishutz.com?a=add}
|
||||||
|
|
||||||
|
|
||||||
\section{Breaking Changes}
|
\section{Breaking Changes}
|
||||||
@@ -43,7 +46,10 @@ Please note that this will overwrite \textit{all} occurrences of \verb|\setcount
|
|||||||
|
|
||||||
and for the \verb|\stepcounter| as well
|
and for the \verb|\stepcounter| as well
|
||||||
|
|
||||||
\verb|/\\stepcounter{\(.*\)s}/\\stepLabelNumber{\1}| and \verb|/\\stepcounter{all}/\\stepLabelNumber{all}/g|.
|
\verb|/\\stepcounter{\(.*\)s}/\\stepLabelNumber{\1}/g| and \verb|/\\stepcounter{all}/\\stepLabelNumber{all}/g|.
|
||||||
|
|
||||||
|
Additionally, to use auto-expanding vector arrows, we have migrated to using \verb|\vect{x}| to allow for the built-in \verb|\vec{x}| to be accessible.
|
||||||
|
Thus, any documents that used the \verb|\vec| command, you can migrate them to the new format using the regex \verb|/\\vec/\\vect/g|
|
||||||
|
|
||||||
|
|
||||||
\section{Installation}
|
\section{Installation}
|
||||||
|
|||||||
@@ -9,11 +9,14 @@ To add more sources, simply use bibter's built-in macro \verb|\addbibresource|\t
|
|||||||
You need to use that inside the preamble as well.
|
You need to use that inside the preamble as well.
|
||||||
|
|
||||||
|
|
||||||
|
% ────────────────────────────────────────────────────────────────────
|
||||||
\subsubsection{Glossary}
|
\subsubsection{Glossary}
|
||||||
\textit{Included in \texttt{recommended} and up}
|
\textit{Included in \texttt{recommended} and up}
|
||||||
|
|
||||||
Use \verb|\setupGlossary| in the preamble to prepare, then use the normal glossary commands to add entries to the glossary. When you want to print it, use \verb|\printGlossary|.
|
Use \verb|\setupGlossary| in the preamble to prepare, then use the normal glossary commands to add entries to the glossary. When you want to print it, use \verb|\printGlossary|.
|
||||||
|
|
||||||
|
|
||||||
|
% ────────────────────────────────────────────────────────────────────
|
||||||
\subsubsection{Minted}
|
\subsubsection{Minted}
|
||||||
\textit{Included in \texttt{full}}
|
\textit{Included in \texttt{full}}
|
||||||
|
|
||||||
@@ -37,6 +40,28 @@ Example (in python):
|
|||||||
print("hello world!")
|
print("hello world!")
|
||||||
\end{code}
|
\end{code}
|
||||||
|
|
||||||
|
If instead, you want to have the code in separate source files, you can use (relative to root file)
|
||||||
|
\begin{minted}{latex}
|
||||||
|
\inputcode{<language>}{path/to/source/file}
|
||||||
|
\end{minted}
|
||||||
|
|
||||||
|
The helpers also provide a wrapper for this, which also prints the filename:
|
||||||
|
|
||||||
|
\begin{minted}{latex}
|
||||||
|
\inputcodewithfilename{<language>}{<base dir>}{<file>}
|
||||||
|
\end{minted}
|
||||||
|
where the base dir is relative to the root file of the latex document and is not displayed (and should end in \texttt{/}), and the file is relative to the base dir and is displayed.
|
||||||
|
|
||||||
|
Example (assume file at \texttt{./code/lib/demo.py} and you want the file name to be \texttt{lib/demo.py}):
|
||||||
|
\begin{minted}{latex}
|
||||||
|
\inputcodewithfilename{python}{code/}{lib/demo.py}
|
||||||
|
\end{minted}
|
||||||
|
You may of course leave the base dir argument empty as well.
|
||||||
|
|
||||||
|
|
||||||
|
\fhlc{Cyan}{Inline Code}
|
||||||
If you want to print code inline, use \verb|\inlinecode|\textit{\{string\}}, which renders to \inlinecode{code}.
|
If you want to print code inline, use \verb|\inlinecode|\textit{\{string\}}, which renders to \inlinecode{code}.
|
||||||
|
|
||||||
\textit{Caveat: This is not using the \texttt{verbatim} environment due to various limitations of that environment and instead is simply using} \verb|\texttt{}|, so you cannot use this to print \LaTeX-commands
|
\textit{Caveat: This is not using the \texttt{verbatim} environment due to various limitations of that environment and instead is simply using} \verb|\texttt{}|, so you cannot use this to print \LaTeX-commands
|
||||||
|
|
||||||
|
Alternatively, to get code highlighting, you can use \verb|\mint{<language>}|\texttt{|code|}
|
||||||
|
|||||||
@@ -12,6 +12,12 @@ General styling commands. All other commands, except these ones require at least
|
|||||||
\item \verb|\smallhspace| Prints a 2mm hspace
|
\item \verb|\smallhspace| Prints a 2mm hspace
|
||||||
\item \verb|\mediumhspace| Prints a 5mm hspace
|
\item \verb|\mediumhspace| Prints a 5mm hspace
|
||||||
\item \verb|\largehspace| Prints a 10mm = 1cm hspace
|
\item \verb|\largehspace| Prints a 10mm = 1cm hspace
|
||||||
|
\item \verb|\hrmvspace| Removes some of the vertical whitespace printed by environments like \verb|align| (0.5x compared to \verb|\rmvspace|)
|
||||||
\item \verb|\rmvspace| Removes some of the vertical whitespace printed by environments like \verb|align|
|
\item \verb|\rmvspace| Removes some of the vertical whitespace printed by environments like \verb|align|
|
||||||
\item \verb|\drmvspace| Removes some of the vertical whitespace printed by environments like \verb|align| (double the amount)
|
\item \verb|\mrmvspace| Removes some of the vertical whitespace printed by environments like \verb|align| (1.5x compared to \verb|\rmvspace|)
|
||||||
|
\item \verb|\drmvspace| Removes some of the vertical whitespace printed by environments like \verb|align| (2x compared to \verb|\rmvspace|)
|
||||||
|
\item \verb|\dhrmvspace| Removes some of the vertical whitespace printed by environments like \verb|align| (2.5x compared to \verb|\rmvspace|)
|
||||||
|
\item \verb|\dnrmvspace| Removes some of the vertical whitespace printed by environments like \verb|align| (3x compared to \verb|\rmvspace|)
|
||||||
|
\item \verb|\dmrmvspace| Removes some of the vertical whitespace printed by environments like \verb|align| (3.5x compared to \verb|\rmvspace|)
|
||||||
|
\item \verb|\ddrmvspace| Removes some of the vertical whitespace printed by environments like \verb|align| (4x compared to \verb|\rmvspace|)
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
|
|||||||
@@ -4,8 +4,11 @@
|
|||||||
\usepackage{minted}
|
\usepackage{minted}
|
||||||
\usepackage{fancyvrb}
|
\usepackage{fancyvrb}
|
||||||
|
|
||||||
|
% Args: Code.
|
||||||
|
% Alternative: Use \mint{<language>}|code|
|
||||||
\newcommand{\inlinecode}[1]{\shade{gray}{\texttt{#1}}}
|
\newcommand{\inlinecode}[1]{\shade{gray}{\texttt{#1}}}
|
||||||
|
|
||||||
|
% Args: Language, Code
|
||||||
\newenvironment{code}[1]{
|
\newenvironment{code}[1]{
|
||||||
\VerbatimEnvironment
|
\VerbatimEnvironment
|
||||||
\begin{minted}[
|
\begin{minted}[
|
||||||
@@ -16,5 +19,29 @@
|
|||||||
framesep=2mm,
|
framesep=2mm,
|
||||||
mathescape,
|
mathescape,
|
||||||
baselinestretch=1.1,
|
baselinestretch=1.1,
|
||||||
linenos]{#1}}
|
linenos
|
||||||
|
]{#1}}
|
||||||
{\end{minted}}
|
{\end{minted}}
|
||||||
|
|
||||||
|
% Args: Language, file relative to root file
|
||||||
|
\newcommand{\inputcode}[2]{
|
||||||
|
\inputminted[
|
||||||
|
autogobble,
|
||||||
|
breaklines,
|
||||||
|
breakindentnchars=2,
|
||||||
|
frame=lines,
|
||||||
|
framesep=2mm,
|
||||||
|
mathescape,
|
||||||
|
baselinestretch=1.1,
|
||||||
|
linenos
|
||||||
|
]{#1}{#2}
|
||||||
|
}
|
||||||
|
|
||||||
|
% Args: Language, Base directory (with trailing slash), file (no slash at start)
|
||||||
|
\newcommand{\inputcodewithfilename}[3]{
|
||||||
|
\begin{figure}[h!]
|
||||||
|
\texttt{File: \detokenize{#3}}
|
||||||
|
\rmvspace
|
||||||
|
\inputcode{#1}{#2#3}
|
||||||
|
\end{figure}
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
|
%
|
||||||
% ▄▄█▀▀▀█▄█
|
% ▄▄█▀▀▀█▄█
|
||||||
% ▄██▀ ▀█
|
% ▄██▀ ▀█
|
||||||
% ██▀ ▀ ▄██▀██▄▀███▄███ ▄▄█▀██
|
% ██▀ ▀ ▄██▀██▄▀███▄███ ▄▄█▀██
|
||||||
@@ -8,10 +8,12 @@
|
|||||||
% ▀▀█████▀ ▀█████▀▄████▄ ▀█████▀
|
% ▀▀█████▀ ▀█████▀▄████▄ ▀█████▀
|
||||||
|
|
||||||
% This file contains all necessary dependencies for the document to compile (at all) and some core macros
|
% This file contains all necessary dependencies for the document to compile (at all) and some core macros
|
||||||
|
% Load this before the config file
|
||||||
|
|
||||||
|
|
||||||
% Imports %
|
% ── Imports ─────────────────────────────────────────────────────────
|
||||||
\typeout{[Core] Importing!}
|
\typeout{[Core] Importing!}
|
||||||
|
|
||||||
\usepackage[table, dvipsnames]{xcolor}
|
\usepackage[table, dvipsnames]{xcolor}
|
||||||
\usepackage{amsmath}
|
\usepackage{amsmath}
|
||||||
\usepackage{graphicx}
|
\usepackage{graphicx}
|
||||||
@@ -38,7 +40,8 @@
|
|||||||
\usepackage{pifont}
|
\usepackage{pifont}
|
||||||
|
|
||||||
|
|
||||||
% Language Switching. Currently only English and German are supported
|
% ── Language Switching. ─────────────────────────────────────────────
|
||||||
|
% Currently only English and German are supported
|
||||||
% See docs for how to use
|
% See docs for how to use
|
||||||
\newcounter{lang}
|
\newcounter{lang}
|
||||||
|
|
||||||
@@ -60,6 +63,7 @@
|
|||||||
\fi
|
\fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
% Deprecated, as not useful
|
||||||
\newcommand{\loadLang}{
|
\newcommand{\loadLang}{
|
||||||
\ifnum\value{lang}<2{
|
\ifnum\value{lang}<2{
|
||||||
\typeout{[Lang Loader] Loaded English}
|
\typeout{[Lang Loader] Loaded English}
|
||||||
@@ -71,12 +75,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
% ────────────────────────────────────────────────────────────────────
|
||||||
% Create config counters / variables. See the config file for changing them
|
% Create config counters / variables. See the config file for changing them
|
||||||
\newcounter{numberingConfig}
|
\newcounter{numberingConfig}
|
||||||
\newcounter{numberSubsections}
|
\newcounter{numberSubsections}
|
||||||
\newcounter{descriptorShadeStrength}
|
\newcounter{descriptorShadeStrength}
|
||||||
\newcounter{shadeStrength}
|
\newcounter{shadeStrength}
|
||||||
|
|
||||||
|
% ── Setup ───────────────────────────────────────────────────────────
|
||||||
% Set up the latex document, configure author, title (as first argument), as well as headers and footers
|
% Set up the latex document, configure author, title (as first argument), as well as headers and footers
|
||||||
\newcommand{\setup}[1]{
|
\newcommand{\setup}[1]{
|
||||||
\typeout{[Setup] Setting up...}
|
\typeout{[Setup] Setting up...}
|
||||||
@@ -84,8 +90,6 @@
|
|||||||
\usepackage[a4paper,textwidth=17.5cm,textheight=25cm,includehead]{geometry}
|
\usepackage[a4paper,textwidth=17.5cm,textheight=25cm,includehead]{geometry}
|
||||||
\title{\Huge \textbf{#1}}
|
\title{\Huge \textbf{#1}}
|
||||||
\author{\authorTitle}
|
\author{\authorTitle}
|
||||||
\makeatletter
|
|
||||||
\makeatother
|
|
||||||
\fancyhead{}
|
\fancyhead{}
|
||||||
\fancyhead[L]{#1}
|
\fancyhead[L]{#1}
|
||||||
\fancyhead[R]{\authorHeaders}
|
\fancyhead[R]{\authorHeaders}
|
||||||
@@ -100,6 +104,7 @@
|
|||||||
\fancyfoot[L]{\today}
|
\fancyfoot[L]{\today}
|
||||||
\fancyfoot[R]{\thepage\ /\ \pageref{LastPage}}
|
\fancyfoot[R]{\thepage\ /\ \pageref{LastPage}}
|
||||||
}
|
}
|
||||||
|
\typeout{[Setup] Complete}
|
||||||
}
|
}
|
||||||
|
|
||||||
% Start document command (required)
|
% Start document command (required)
|
||||||
@@ -108,6 +113,7 @@
|
|||||||
\startDocumentNoTitle
|
\startDocumentNoTitle
|
||||||
}
|
}
|
||||||
|
|
||||||
|
% Or this one, if you don't want a title
|
||||||
\newcommand{\startDocumentNoTitle}{
|
\newcommand{\startDocumentNoTitle}{
|
||||||
\pagestyle{fancy}
|
\pagestyle{fancy}
|
||||||
\thispagestyle{fancy}
|
\thispagestyle{fancy}
|
||||||
@@ -115,6 +121,7 @@
|
|||||||
|
|
||||||
% Set up the latex document, only configuring the author, title and page size
|
% Set up the latex document, only configuring the author, title and page size
|
||||||
\newcommand{\setupBarebones}[1]{
|
\newcommand{\setupBarebones}[1]{
|
||||||
|
\typeout{[Setup] Using barebones setup}
|
||||||
\loadLang
|
\loadLang
|
||||||
\usepackage[a4paper,textwidth=17.5cm,textheight=25cm,includehead]{geometry}
|
\usepackage[a4paper,textwidth=17.5cm,textheight=25cm,includehead]{geometry}
|
||||||
\title{\Huge \textbf{#1}}
|
\title{\Huge \textbf{#1}}
|
||||||
@@ -123,6 +130,7 @@
|
|||||||
|
|
||||||
% Set up the latex document for exam summaries (Extra wide body, small margins, no header)
|
% Set up the latex document for exam summaries (Extra wide body, small margins, no header)
|
||||||
\newcommand{\setupCheatSheet}[1]{
|
\newcommand{\setupCheatSheet}[1]{
|
||||||
|
\typeout{[Setup] Using CheatSheet setup}
|
||||||
\loadLang
|
\loadLang
|
||||||
\usepackage[a4paper,textwidth=20cm,textheight=28.5cm]{geometry}
|
\usepackage[a4paper,textwidth=20cm,textheight=28.5cm]{geometry}
|
||||||
\title{\Huge \textbf{#1}}
|
\title{\Huge \textbf{#1}}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
% ░▒█░░░░█░░█░█░▀░█░█▄▄█░█░▒█░░█░░█▀▀░█▄▄▀░░░░▀▀▀▄▄░█░░░░█▀░█▀▀░█░▒█░█░░░█▀▀
|
% ░▒█░░░░█░░█░█░▀░█░█▄▄█░█░▒█░░█░░█▀▀░█▄▄▀░░░░▀▀▀▄▄░█░░░░█▀░█▀▀░█░▒█░█░░░█▀▀
|
||||||
% ░▒█▄▄▀░░▀▀░░▀░░▒▀░█░░░░░▀▀▀░░▀░░▀▀▀░▀░▀▀░░░▒█▄▄▄█░▀▀▀░▀▀▀░▀▀▀░▀░░▀░▀▀▀░▀▀▀
|
% ░▒█▄▄▀░░▀▀░░▀░░▒▀░█░░░░░▀▀▀░░▀░░▀▀▀░▀░▀▀░░░▒█▄▄▄█░▀▀▀░▀▀▀░▀▀▀░▀░░▀░▀▀▀░▀▀▀
|
||||||
|
|
||||||
|
|
||||||
% Extra imports
|
% Extra imports
|
||||||
\usepackage{stmaryrd}
|
\usepackage{stmaryrd}
|
||||||
\usepackage{algorithm}
|
\usepackage{algorithm}
|
||||||
@@ -14,6 +15,7 @@
|
|||||||
|
|
||||||
\newcommand{\Indent}{\hspace{\algorithmicindent}}
|
\newcommand{\Indent}{\hspace{\algorithmicindent}}
|
||||||
|
|
||||||
|
% Extra commands
|
||||||
\newcommand{\timecomplexity}{\fhlc{orange}{\ifnum\value{lang}<2{Time complexity}\else {Laufzeit}\fi} \hspace{0.5em}}
|
\newcommand{\timecomplexity}{\fhlc{orange}{\ifnum\value{lang}<2{Time complexity}\else {Laufzeit}\fi} \hspace{0.5em}}
|
||||||
\newcommand{\tc}[1]{\timecomplexity $\Theta\left(#1\right)$}
|
\newcommand{\tc}[1]{\timecomplexity $\Theta\left(#1\right)$}
|
||||||
\newcommand{\tct}[1]{\Theta\left(#1\right)}
|
\newcommand{\tct}[1]{\Theta\left(#1\right)}
|
||||||
|
|||||||
@@ -87,7 +87,7 @@
|
|||||||
\newcommand{\divides}{\hspace{0.25em}|\hspace{0.25em}}
|
\newcommand{\divides}{\hspace{0.25em}|\hspace{0.25em}}
|
||||||
\newcommand{\mbeq}{\overset{!}{=}}
|
\newcommand{\mbeq}{\overset{!}{=}}
|
||||||
\newcommand{\lcm}{\text{lcm}}
|
\newcommand{\lcm}{\text{lcm}}
|
||||||
\newcommand{\limit}[2]{\lim_{#1 \rightarrow #2}}
|
\newcommand{\limit}[2]{\underset{#1 \rightarrow #2}{\lim}}
|
||||||
\newcommand{\seq}[1]{(#1_n)_{n \geq 1}}
|
\newcommand{\seq}[1]{(#1_n)_{n \geq 1}}
|
||||||
\newcommand{\ser}[2]{\sum_{k = 1}^{#2} #1_k}
|
\newcommand{\ser}[2]{\sum_{k = 1}^{#2} #1_k}
|
||||||
\newcommand{\limni}{\limit{n}{\infty}}
|
\newcommand{\limni}{\limit{n}{\infty}}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
%██░▀▀▄██▄▄██▄███▄█▄███▄██▄▄██▄██▄
|
%██░▀▀▄██▄▄██▄███▄█▄███▄██▄▄██▄██▄
|
||||||
%▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
%▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
||||||
|
|
||||||
|
% General tcolorboxes
|
||||||
\newtcolorbox{recall}[2][]{mainboxstyle,colback=yellow!5!white,colframe=yellow!75!black,colbacktitle=yellow!75!black,title={\large #2},
|
\newtcolorbox{recall}[2][]{mainboxstyle,colback=yellow!5!white,colframe=yellow!75!black,colbacktitle=yellow!75!black,title={\large #2},
|
||||||
overlay={\node[overlaystyle,draw=yellow!75!black,,fill=yellow!75!black] at (frame.north east) {\large \translate{Recall }{Repetition }};},#1}
|
overlay={\node[overlaystyle,draw=yellow!75!black,,fill=yellow!75!black] at (frame.north east) {\large \translate{Recall }{Repetition }};},#1}
|
||||||
|
|
||||||
|
|||||||
@@ -71,14 +71,14 @@
|
|||||||
% │ Counter numbering │
|
% │ Counter numbering │
|
||||||
% └ ┘
|
% └ ┘
|
||||||
\newcommand{\preTableAndFigHook}[1]{%
|
\newcommand{\preTableAndFigHook}[1]{%
|
||||||
\ifnum\value{numberingConfig}>1
|
\ifnum\value{numberingConfig}>1%
|
||||||
\ifnum\value{numberSubsections}=1
|
\ifnum\value{numberSubsections}=1%
|
||||||
\stepcounter{allss}
|
\stepcounter{allss}%
|
||||||
\else
|
\else
|
||||||
\ifnum\value{numberSubsections}=2
|
\ifnum\value{numberSubsections}=2%
|
||||||
\stepcounter{allsss}
|
\stepcounter{allsss}%
|
||||||
\else
|
\else%
|
||||||
\stepcounter{all}
|
\stepcounter{all}%
|
||||||
\fi
|
\fi
|
||||||
\fi
|
\fi
|
||||||
\fi
|
\fi
|
||||||
@@ -89,8 +89,8 @@
|
|||||||
\newcommand{\applyTableAndFigureNumbering}{
|
\newcommand{\applyTableAndFigureNumbering}{
|
||||||
% Tables & Figures
|
% Tables & Figures
|
||||||
\ifnum\value{numberingConfig}=0
|
\ifnum\value{numberingConfig}=0
|
||||||
\renewcommand{\thetable}{}
|
\renewcommand{\thetable}{\arabic{table}}
|
||||||
\renewcommand{\thefigure}{}
|
\renewcommand{\thefigure}{\arabic{figure}}
|
||||||
\else
|
\else
|
||||||
\ifnum\value{numberingConfig}=1
|
\ifnum\value{numberingConfig}=1
|
||||||
\renewcommand{\thetable}{\sectionNumbering.\arabic{table}}
|
\renewcommand{\thetable}{\sectionNumbering.\arabic{table}}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
% ▀▀ █▪▀▀▀ ▀ ▀ ▀▀▀ ▀▀▀ · ▀▀▀▀ ▀▀▀ ▀ • .▀▀▀ ▀▀▀
|
% ▀▀ █▪▀▀▀ ▀ ▀ ▀▀▀ ▀▀▀ · ▀▀▀▀ ▀▀▀ ▀ • .▀▀▀ ▀▀▀
|
||||||
|
|
||||||
% Replace some commonly used commands with better ones
|
% Replace some commonly used commands with better ones
|
||||||
\renewcommand{\vec}[1]{\overrightarrow{#1}}
|
\newcommand{\vect}[1]{\overrightarrow{#1}}
|
||||||
\renewcommand{\hat}[1]{\widehat{#1}}
|
\renewcommand{\hat}[1]{\widehat{#1}}
|
||||||
\renewcommand{\tilde}[1]{\widetilde{#1}}
|
\renewcommand{\tilde}[1]{\widetilde{#1}}
|
||||||
\newcommand{\proven}{$\hspace{17cm}\square$}
|
\newcommand{\proven}{$\hspace{17cm}\square$}
|
||||||
|
|||||||
@@ -56,8 +56,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
\newcommand{\hrmvspace}{\vspace{-0.25pc}}
|
||||||
\newcommand{\rmvspace}{\vspace{-0.5pc}}
|
\newcommand{\rmvspace}{\vspace{-0.5pc}}
|
||||||
|
\newcommand{\mrmvspace}{\vspace{-0.75pc}}
|
||||||
\newcommand{\drmvspace}{\vspace{-1pc}}
|
\newcommand{\drmvspace}{\vspace{-1pc}}
|
||||||
|
\newcommand{\dhrmvspace}{\vspace{-1.25pc}}
|
||||||
|
\newcommand{\dnrmvspace}{\vspace{-1.5pc}}
|
||||||
|
\newcommand{\dmrmvspace}{\vspace{-1.75pc}}
|
||||||
|
\newcommand{\ddrmvspace}{\vspace{-2pc}}
|
||||||
\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}}}
|
||||||
|
|||||||
Reference in New Issue
Block a user