116 Commits

Author SHA1 Message Date
janishutz 6c8f20336c Merge branch 'dev'
Update docs / build_docs (push) Failing after 15s
Update helpers / build_helpers (push) Successful in 26s
2026-02-23 09:03:20 +01:00
janishutz 6f2c05b6eb [Core] add preliminary support for multicols
Update docs / build_docs (push) Failing after 3m20s
Update helpers / build_helpers (push) Successful in 15s
2026-01-22 14:34:57 +01:00
janishutz 4577950acc [tables] Fix errors
Update helpers / build_helpers (push) Successful in 29s
2026-01-10 08:35:09 +01:00
Helpers compiler [bot] fd7ce878e5 [skip ci] Build helpers on push 2026-01-09 14:11:33 +00:00
janishutz 457d7ce024 [CI] Trigger
Update helpers / build_helpers (push) Successful in 29s
2026-01-09 15:11:01 +01:00
Helpers compiler [bot] 8c8cc53a8c [skip ci] Build helpers on push 2026-01-09 14:09:54 +00:00
janishutz 73b6098463 Remove duplicated indent config
Update helpers / build_helpers (push) Successful in 13s
2026-01-09 15:09:39 +01:00
Helpers compiler [bot] 635d32d260 [skip ci] Build helpers on push 2026-01-09 14:06:18 +00:00
janishutz bda3b92795 [CI] Trigger
Update helpers / build_helpers (push) Successful in 12s
2026-01-09 15:06:06 +01:00
janishutz f2c337eaa9 Revert "[skip ci] Build helpers on push"
This reverts commit e16e4b3e7b.
2026-01-09 15:05:29 +01:00
janishutz 141cf5d091 Latexfmt corrected 2026-01-09 15:05:08 +01:00
Helpers compiler [bot] e16e4b3e7b [skip ci] Build helpers on push 2026-01-09 14:03:04 +00:00
janishutz 566649ecc3 Trigger CI
Update helpers / build_helpers (push) Successful in 26s
2026-01-09 15:02:36 +01:00
janishutz 7f8c112556 Revert "[skip ci] Build helpers on push"
This reverts commit aaa6a709fc.
2026-01-09 15:02:04 +01:00
Helpers compiler [bot] aaa6a709fc [skip ci] Build helpers on push 2026-01-09 13:59:11 +00:00
janishutz 66aee3d780 Trigger CI
Update helpers / build_helpers (push) Successful in 27s
2026-01-09 14:58:44 +01:00
janishutz da4eeebc6d Add indentconfig 2026-01-09 14:54:59 +01:00
janishutz ab3abb113c Revert "[skip ci] Build helpers on push"
This reverts commit 951458a867.
2026-01-09 14:53:39 +01:00
Helpers compiler [bot] 951458a867 [skip ci] Build helpers on push 2026-01-09 13:52:14 +00:00
janishutz 4f03b8eebc [CI] Trigger
Update helpers / build_helpers (push) Successful in 29s
2026-01-09 14:50:19 +01:00
janishutz 3a67a42535 [CI] Trigger
Update helpers / build_helpers (push) Failing after 27s
2026-01-09 14:25:56 +01:00
janishutz bcd7ed17d0 [Core] Improve layout
Update helpers / build_helpers (push) Failing after 13s
2026-01-09 14:17:27 +01:00
janishutz 2c0db60c7d [CI] Update to also format 2026-01-09 14:15:34 +01:00
Helpers compiler [bot] 90ce264992 [skip ci] Build helpers on push 2026-01-05 15:08:49 +00:00
janishutz 579cbd96ca [Tables] Remove labeledTable again
Build docs / build_docs (push) Successful in 19s
Build helpers / build_helpers (push) Successful in 6s
2026-01-05 16:08:22 +01:00
Helpers compiler [bot] 88e2dc1a70 [skip ci] Build helpers on push 2026-01-05 15:05:43 +00:00
janishutz b9d9f6772c [Tables] Add env for labeled table
Build docs / build_docs (push) Successful in 21s
Build helpers / build_helpers (push) Successful in 5s
2026-01-05 16:05:14 +01:00
Helpers compiler [bot] b0e161e133 [skip ci] Build helpers on push 2026-01-05 10:29:09 +00:00
janishutz 676bbd9306 Update vector command
Build docs / build_docs (push) Successful in 23s
Build helpers / build_helpers (push) Successful in 5s
2026-01-05 11:28:39 +01:00
Helpers compiler [bot] 5f691d9372 [skip ci] Build helpers on push 2026-01-05 09:17:39 +00:00
janishutz fd66333f7a Fix spacing compact theorems
Build helpers / build_helpers (push) Successful in 5s
2026-01-05 10:17:31 +01:00
Helpers compiler [bot] db2fbc4c70 [skip ci] Build helpers on push 2026-01-05 08:05:12 +00:00
janishutz dcb077e116 Remove unnecessary commands
Build helpers / build_helpers (push) Successful in 5s
2026-01-05 09:05:03 +01:00
LaTeX compiler [bot] be655d2387 [skip ci] Build docs on push 2026-01-04 11:01:13 +00:00
janishutz cb173908b4 Add better code support
Build docs / build_docs (push) Successful in 47s
Build helpers / build_helpers (push) Successful in 5s
2026-01-04 11:58:10 +01:00
Helpers compiler [bot] 6803d1f62d [skip ci] Build helpers on push 2026-01-02 06:28:59 +00:00
janishutz 4eff956d53 New changes
Build docs / build_docs (push) Successful in 21s
Build helpers / build_helpers (push) Successful in 5s
2026-01-02 07:28:26 +01:00
janishutz f622e2be55 [CI] Update 2026-01-02 07:21:59 +01:00
LaTeX compiler [bot] 9a19639d10 [skip ci] Build docs on push 2026-01-02 06:20:18 +00:00
janishutz bfc62a37eb Add new commands for vspace removal
Build docs / build_docs (push) Successful in 21s
Build helpers / build_helpers (push) Failing after 5s
2026-01-02 07:19:58 +01:00
janishutz 01e20cef5d [CI] Try to fix breaking on both workflow run 2026-01-02 07:16:56 +01:00
Helpers compiler [bot] eda396d617 [skip ci] Build helpers on push 2026-01-02 06:11:50 +00:00
janishutz 4522e88c92 Fix CI
Build helpers / build_helpers (push) Successful in 5s
2026-01-02 07:11:43 +01:00
LaTeX compiler [bot] 04b388c382 [skip ci] Build docs on push 2026-01-02 06:10:00 +00:00
janishutz 3d6d6234de Add new space remove commands
Build docs / build_docs (push) Successful in 31s
Build helpers / build_helpers (push) Failing after 4s
2026-01-02 07:09:25 +01:00
Helpers compiler [bot] 4344f8f09d [skip ci] Build helpers on push 2025-12-24 06:22:30 +00:00
janishutz b1d81bdd06 Improve limit command
Build helpers / build_helpers (push) Successful in 7s
2025-12-24 07:22:18 +01:00
LaTeX compiler [bot] 1e766b8133 [skip ci] Build docs on push 2025-12-23 15:26:44 +00:00
janishutz c5fccabba9 CI working?
Build docs / build_docs (push) Successful in 1m6s
2025-12-23 16:25:37 +01:00
LaTeX compiler [bot] e2a725bc51 [skip ci] Build docs on push 2025-12-23 13:57:37 +00:00
janishutz cc3144b170 Trigger build
Build docs / build_docs (push) Failing after 3m32s
2025-12-23 14:55:05 +01:00
janishutz b908ae3b29 Better link docs 2025-12-23 14:32:31 +01:00
janishutz 0ea3d9245c [CI] update author 2025-12-23 14:29:36 +01:00
janishutz 27c96d26a0 [skip ci] Build helpers on push 2025-12-23 13:23:28 +00:00
janishutz c6aa4c8d80 [CI] Update
Build helpers / build_helpers (push) Successful in 4s
2025-12-23 14:23:21 +01:00
janishutz f1b64e8ddb [CI] More debugging
Build helpers / build_helpers (push) Successful in 5s
2025-12-23 14:21:47 +01:00
janishutz a5cb9bb54d [CI] More debugging
Build helpers / build_helpers (push) Successful in 5s
2025-12-23 14:21:04 +01:00
janishutz 432fcb4153 Trigger build
Build helpers / build_helpers (push) Successful in 4s
2025-12-23 14:19:03 +01:00
janishutz 159b37a3d3 [CI] Debug helpers build
Build helpers / build_helpers (push) Successful in 7s
2025-12-23 14:17:30 +01:00
janishutz baf964792a Better logging
Build helpers / build_helpers (push) Successful in 5s
2025-12-23 14:11:01 +01:00
janishutz 01047ba385 Add badge 2025-12-23 14:09:13 +01:00
janishutz c321acd063 [CI] Only update on push to docs 2025-12-23 14:06:04 +01:00
janishutz 1462cc0198 [skip ci] Build docs on push 2025-12-23 13:02:52 +00:00
janishutz 6dbcd64ed4 [CI] Fix upload action
Build docs / build_docs (push) Successful in 21s
2025-12-23 14:02:30 +01:00
janishutz 8346a558c7 [CI] Debugging
Build docs / build_docs (push) Successful in 20s
2025-12-23 14:01:41 +01:00
janishutz 91cfc52ec8 [CI] Download helpers
Build docs / build_docs (push) Successful in 26s
2025-12-23 13:59:34 +01:00
janishutz dba7f93d0d Trigger CI
Build docs / build_docs (push) Failing after 2m20s
2025-12-23 13:56:06 +01:00
janishutz 098ffcc618 [CI] Use full container
Build docs / build_docs (push) Failing after 2m33s
2025-12-23 09:11:21 +01:00
janishutz 4102cafa6e Revert "[CI] Remove docs build"
This reverts commit bdb72b2e2a.
2025-12-23 09:00:15 +01:00
janishutz bdb72b2e2a [CI] Remove docs build 2025-12-23 08:40:37 +01:00
janishutz 5169d20bed [CI] Update workflow
Build docs / build_docs (push) Failing after 15s
2025-12-23 07:20:58 +01:00
janishutz 86f080a705 [CI] Try fix
Build docs / build_docs (push) Failing after 7s
2025-12-23 07:09:40 +01:00
janishutz 23037f11f6 [CI] Use upstream action
Build docs / build_docs (push) Failing after 10s
2025-12-23 07:01:47 +01:00
janishutz 8b4d775d1a [CI] Add back login
Build docs / build_docs (push) Failing after 2s
2025-12-22 21:49:37 +01:00
janishutz 3406ad8951 [CI] Remove login
Build docs / build_docs (push) Failing after 5s
2025-12-22 21:48:18 +01:00
janishutz 495f3a8503 [CI] Try to fix
Build docs / build_docs (push) Failing after 6s
2025-12-22 21:41:00 +01:00
janishutz 7101d5f017 [CI] Update
Build docs / build_docs (push) Failing after 8s
2025-12-22 21:08:07 +01:00
janishutz d3ebc929a0 [CI] Move to newer latex action
Build docs / build_docs (push) Failing after 8s
2025-12-22 21:04:53 +01:00
janishutz 284d957a92 [CI] Debugging
Build docs / build_docs (push) Failing after 7s
2025-12-22 20:57:53 +01:00
janishutz dc62654e42 [CI] Try another fix
Build docs / build_docs (push) Failing after 7s
2025-12-22 20:54:45 +01:00
janishutz 6b052b8152 [CI] Use updated latex workflow
Build docs / build_docs (push) Failing after 8s
2025-12-22 20:52:19 +01:00
janishutz 100f16afda [CI] Fix syntax error
Build docs / build_docs (push) Failing after 8s
2025-12-22 18:31:19 +01:00
janishutz 491cdd9441 [CI] Fix syntax
Build docs / build_docs (push) Failing after 3s
2025-12-22 18:30:30 +01:00
janishutz ca9fd7a66f [CI] Sign into registry 2025-12-22 18:29:49 +01:00
janishutz 7bf361ccd4 [CI] Fix more syntax errors
Build docs / build_docs (push) Failing after 6s
2025-12-22 18:23:12 +01:00
janishutz c0134e47c2 [CI] Fix syntax error
Build docs / build_docs (push) Failing after 3s
2025-12-22 18:22:02 +01:00
janishutz e2974cea74 [CI] Trigger
Build docs / build_docs (push) Failing after 0s
2025-12-22 18:21:24 +01:00
janishutz 6394ce2591 [CI] Try fix 2025-12-22 18:21:08 +01:00
janishutz 4db6733865 Trigger
Build docs / build_docs (push) Failing after 0s
2025-12-22 18:19:56 +01:00
janishutz 7a73c73687 [CI] Add docs auto-build 2025-12-22 18:19:27 +01:00
janishutz 24b4fe0959 [CI] Trigger
Build helpers / build_docs (push) Successful in 4s
2025-12-22 17:49:56 +01:00
janishutz 43819d942c [CI] Remove latex compile action 2025-12-22 15:49:27 +01:00
janishutz 7ee9152f41 [CI] Debug docs
Build Docs / build_docs (push) Failing after 7s
2025-12-22 15:34:37 +01:00
janishutz 1518007fe2 [CI] Debug docs
Build Docs / build_docs (push) Failing after 6s
2025-12-22 15:14:22 +01:00
janishutz 3864d838d6 [CI] Debug docs
Build Docs / build_docs (push) Failing after 8s
2025-12-22 15:13:00 +01:00
janishutz 98b3e7ee66 [CI] Do not build helpers if no corresponding files changed
Build Docs / build_docs (push) Failing after 6s
2025-12-22 15:12:16 +01:00
janishutz dca911c00b [CI] Debug docs build
Build Docs / build_docs (push) Failing after 6s
Build helpers / build_docs (push) Successful in 5s
2025-12-22 15:10:18 +01:00
janishutz bb42a2e803 [CI] Fix helpers auto-build
Build helpers / build_docs (push) Successful in 5s
2025-12-22 15:04:35 +01:00
janishutz 8a238d1a8c [CI] Debugging
Build helpers / build_docs (push) Failing after 5s
2025-12-22 15:03:47 +01:00
janishutz e64a76745a [CI] Build fixes
Build helpers / build_docs (push) Failing after 8s
2025-12-22 15:01:19 +01:00
janishutz 978039b0d0 [CI] Add
Build helpers / build_docs (push) Failing after 1m9s
Build Docs / build_docs (push) Failing after 2m44s
2025-12-22 14:54:57 +01:00
janishutz cc78cee14f [Math] Add conditioning shortcut 2025-12-22 08:20:10 +01:00
janishutz 962989468b [Math] Improve argmin command 2025-12-22 07:46:03 +01:00
janishutz b05be21b92 [Math] Add argmin command 2025-12-22 07:38:10 +01:00
janishutz 2be8109e90 [Build] Run build 2025-12-04 11:28:06 +01:00
janishutz a0893a9887 [Core] Add smaller loader 2025-12-04 11:27:57 +01:00
janishutz 73b33777e3 [Math] Fix conflicts 2025-11-11 13:05:38 +01:00
janishutz 54f58f0b3a [Math] Add more shortcuts for mathbb 2025-11-11 12:16:25 +01:00
janishutz 5a696f57c4 [Style] Remove shortcut, conflicted 2025-11-11 09:12:59 +01:00
janishutz cf5879b9a4 [Style] Actually add shortcut & build 2025-11-11 09:11:29 +01:00
janishutz d600d6d8f3 [Style] Add shortcut for italic and bold 2025-11-11 09:10:20 +01:00
janishutz 6e6bdba382 [Core] Remove unneeded packages 2025-11-11 09:05:26 +01:00
janishutz 66725558bb [Include] Add deprecation warning and fix loading through old method 2025-11-10 11:49:57 +01:00
janishutz 491adc1744 [Style] Add url and href highlighting 2025-11-10 09:15:13 +01:00
janishutz 47ed047c7e [Docs] Update for new import scheme 2025-11-03 16:16:32 +01:00
janishutz b8473c5f68 [Build] Improve helper import 2025-11-03 16:07:03 +01:00
12 changed files with 3953 additions and 2 deletions
+35
View File
@@ -0,0 +1,35 @@
name: Update docs
on:
push:
paths:
- 'docs/**'
jobs:
build_docs:
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 docs
uses: actions/latex-format@main
with:
workdir: docs
- name: Run build
uses: actions/latex-full@main
with:
workdir: docs
include_helpers: true
- name: Upload compiled docs
uses: actions/git-auto-commit-action@v7
with:
commit_message: "[skip ci] Build docs on push"
file_pattern: '*.pdf'
commit_user_name: LaTeX compiler [bot]
commit_user_email: actions@janishutz.com
commit_author: LaTeX compiler [bot] <actions@janishutz.com>
push_options: "--force"
+36
View 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
View 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
+4 -1
View File
@@ -3,6 +3,9 @@
<h1>LaTeX Helper files</h1> <h1>LaTeX Helper files</h1>
</div> </div>
![Docs build](https://git.janishutz.com/janishutz/latex/actions/workflows/build-docs.yml/badge.svg?branch=main&event=push)
![Dist build](https://git.janishutz.com/janishutz/latex/actions/workflows/build-helpers.yml/badge.svg?branch=main&event=push)
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.
@@ -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
+1157
View File
File diff suppressed because it is too large Load Diff
+32
View File
@@ -0,0 +1,32 @@
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\setkomavar{date}{\city, \today}
\newkomavar{fromplace} % a few koma vars
\setkomavar{fromname}{\name}
\setkomavar{fromaddress}{\street}
\setkomavar{fromplace}{\countrycode -\city}
\KOMAoptions{foldmarks=off,fromrule=false}
\setkomavar{backaddress}{}
\makeatletter % indention of the address fields
\setplength{toaddrhpos}{27mm}
\setplength{toaddrwidth}{92mm}
\setplength{sigindent}{0mm}
\makeatother
\renewcommand*{\raggedsignature}{\raggedright}
% Define new letter header
\setkomavar{firsthead}{
\null\hfill
\parbox[t][\headheight][t]{4cm}{%
\vspace*{2cm}
\usekomavar{fromname} \newline
\usekomavar{fromaddress} \newline
\usekomavar{fromplace}
}
}%
+424
View File
@@ -0,0 +1,424 @@
% ▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄▄▄ ▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄▄
% █ █ █ █ █ █ █▄█ █ █ █ █ █ █ █ █ █ █ ▄ █ █ █
% █ █ █ ▄ █▄ ▄█ ▄▄▄█ █ █ █▄█ █ ▄▄▄█ █ █ ▄ █ ▄▄▄█ █ █ █ █ ▄▄▄▄▄█
% █ █ █ █▄█ █ █ █ █ █▄▄▄█ █ █ █ █▄▄▄█ █ █ █▄█ █ █▄▄▄█ █▄▄█▄█ █▄▄▄▄▄
% █ █▄▄▄█ █ █ █ █ ▄▄▄██ █ █ ▄ █ ▄▄▄█ █▄▄▄█ ▄▄▄█ ▄▄▄█ ▄▄ █▄▄▄▄▄ █
% █ █ ▄ █ █ █ █ █▄▄▄█ ▄ █ █ █ █ █ █▄▄▄█ █ █ █ █▄▄▄█ █ █ █▄▄▄▄▄█ █
% █▄▄▄▄▄▄▄█▄█ █▄▄█ █▄▄▄█ █▄▄▄▄▄▄▄█▄▄█ █▄▄█ █▄▄█ █▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄█ █▄▄▄▄▄▄▄█▄▄▄█ █▄█▄▄▄▄▄▄▄█
%
% ▄▄█▀▀▀█▄█
% ▄██▀ ▀█
% ██▀ ▀ ▄██▀██▄▀███▄███ ▄▄█▀██
% ██ ██▀ ▀██ ██▀ ▀▀ ▄█▀ ██
% ██▄ ██ ██ ██ ██▀▀▀▀▀▀
% ▀██▄ ▄▀██▄ ▄██ ██ ██▄ ▄
% ▀▀█████▀ ▀█████▀▄████▄ ▀█████▀
% This file contains all necessary dependencies for the document to compile (at all) and some core macros
% Load this before the config file
% ── Imports ─────────────────────────────────────────────────────────
\typeout{[Core] Importing!}
\usepackage[table, dvipsnames]{xcolor}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage[export]{adjustbox}
\usepackage[most]{tcolorbox}
\usepackage{cancel}
\usepackage{etoolbox}
\usepackage{dsfont}
\usepackage{amssymb}
\usepackage{mathrsfs}
\usepackage{ulem}
\usepackage{soul}
\usepackage{parskip}
\usepackage{fancyhdr}
\usepackage{lastpage}
\usepackage{tocloft}
\usepackage{wasysym}
\usepackage{wrapfig}
\usepackage{multicol}
\usepackage{ifthen}
\usepackage[hidelinks]{hyperref}
\usepackage{enumitem}
\usepackage{gensymb}
\usepackage{pifont}
% ── Language Switching. ─────────────────────────────────────────────
% Currently only English and German are supported
% See docs for how to use
\newcounter{lang}
\newcommand{\setLang}[1]{
\edef\lang{#1}
\edef\en{en}
\edef\de{de}
\ifx\lang\en
\typeout{[Lang Switcher] Loading English}
\setcounter{lang}{1}
\else
\ifx\lang\de
\typeout{[Lang Switcher] Loading German}
\setcounter{lang}{2}
\usepackage[ngerman]{babel}
\else
\typeout{[Lang Switcher] No such language!}
\fi
\fi
}
% Deprecated, as not useful
\newcommand{\loadLang}{
\ifnum\value{lang}<2{
\typeout{[Lang Loader] Loaded English}
}\else {
\typeout{[Lang Loader] Loaded German}
\setcounter{lang}{2}
}
\fi
}
% ────────────────────────────────────────────────────────────────────
% Create config counters / variables. See the config file for changing them
\newcounter{numberingConfig}
\newcounter{numberSubsections}
\newcounter{descriptorShadeStrength}
\newcounter{shadeStrength}
\newcounter{colCount}
\newbool{cheatSheetLandscape}
% ── Setup ───────────────────────────────────────────────────────────
% Set up the latex document, configure author, title (as first argument), as well as headers and footers
\newcommand{\setup}[1]{
\typeout{[Setup] Setting up...}
\loadLang
\usepackage[a4paper,textwidth=17.5cm,textheight=25cm,includehead]{geometry}
\title{\Huge \textbf{#1}}
\author{\authorTitle}
\fancyhead{}
\fancyhead[L]{#1}
\fancyhead[R]{\authorHeaders}
\fancyfoot{}
\fancyfoot[L]{\today}
\fancyfoot[R]{\thepage\ /\ \pageref{LastPage}}
\fancypagestyle{plain}{%
\fancyhead{}
\fancyhead[L]{#1}
\fancyhead[R]{\authorHeaders}
\fancyfoot{}
\fancyfoot[L]{\today}
\fancyfoot[R]{\thepage\ /\ \pageref{LastPage}}
}
\typeout{[Setup] Complete}
}
% Start document command (required)
\newcommand{\startDocument}{
\maketitle
\startDocumentNoTitle
}
% Or this one, if you don't want a title
\newcommand{\startDocumentNoTitle}{
\pagestyle{fancy}
\thispagestyle{fancy}
}
% Set up the latex document, only configuring the author, title and page size
\newcommand{\setupBarebones}[1]{
\typeout{[Setup] Using barebones setup}
\loadLang
\usepackage[a4paper,textwidth=17.5cm,textheight=25cm,includehead]{geometry}
\title{\Huge \textbf{#1}}
\author{\authorTitle}
}
% Set up the latex document for exam summaries (Extra wide body, small margins, no header)
\newcommand{\setupCheatSheet}[1]{
\typeout{[Setup] Using CheatSheet setup}
\loadLang
\edef\valtrue{true}
\ifbool{cheatSheetLandscape}{
\typeout{[Setup] Using landscape with \arabic{colCount} columns}
\usepackage[landscape,a4paper,textwidth=28.5cm,textheight=20cm]{geometry}
\usepackage{flowfram}
\allowdisplaybreaks
\ffvadjustfalse
\setlength{\columnsep}{1cm}
\Ncolumn{\arabic{colCount}}
}{
\typeout{[Setup] Using portrait}
\usepackage[a4paper,textwidth=20cm,textheight=28.5cm]{geometry}
}
\title{\Huge \textbf{#1}}
\author{\authorTitle}
}
% ────────────────────────────────────────────────────────────────────
% ╭────────────────────────────────────────────────╮
% │ Translatation │
% ╰────────────────────────────────────────────────╯
\newcommand{\translate}[2]{\ifnum\value{lang}<2{#1}\else{#2}\fi}
\newcommand{\tr}[2]{\translate{#1}{#2}}
% ┌ ┐
% │ 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 }}
% ___ ___
% ( _ \ / ___)_
% | ( (_) _ ___ | (__ (_) __
% | | _ / _ \/ _ \ __)| |/ _ \
% | (_( ) (_) ) ( ) | | | | (_) |
% (____/ \___/(_) (_)_) (_)\__ |
% ( )_) |
% \___/
% To be loaded *after* main/core.tex
% Configure your author name here
\newcommand{\authorTitle}{Janis Hutz\\\url{https://janishutz.com}}
\newcommand{\authorHeaders}{Janis Hutz}
% Configure your address here
\newcommand{\name}{Janis Hutz}
\newcommand{\street}{Street}
\newcommand{\city}{City}
\newcommand{\countrycode}{CH}
% Configure definition, lemma, theorem, etc numbering behaviour. 1 = Individual, 2 = Combined (apart from Definition), 3 = Combined
\setcounter{numberingConfig}{1}
% Configure if for definitions, lemmas, etc, numbering should be (0) = <section>.<number> or (1) = <section>.<subsection>.<number> or (2) = <section>.<subsection>.<subsubsection>.<number>
\setcounter{numberSubsections}{0}
% Set the default language.
\setLang{en}
% Set the default command for theorem translation
\newcommand{\theoremde}{Satz}
% ----- %
% STYLE %
% ----- %
% The colour-saturation of the short / inline descriptors (default = 40)
\setcounter{descriptorShadeStrength}{40}
% The colour-saturation of the shade command (default = 20)
\setcounter{shadeStrength}{20}
% Whether or not to use landscape orientation for the cheat sheet
\boolfalse{cheatSheetLandscape}
% Set the number of columns to use (only affects the CheatSheet style and only if cheatSheetLandscape is set to true)
\setcounter{colCount}{3}
%░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
%░░░ ░░░░░ ░░░░░░░░░░░░░ ░░░░░░░░░░░
%▒ ▒▒▒▒ ▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒
%▒▒ ▒▒▒▒▒▒▒ ▒ ▒ ▒▒▒ ▒ ▒▒▒▒ ▒▒▒▒
%▓▓▓▓ ▓▓▓▓▓▓▓ ▓▓▓▓ ▓ ▓▓ ▓▓ ▓▓▓ ▓
%▓▓▓▓▓▓▓ ▓▓▓▓ ▓▓▓▓▓▓ ▓▓▓ ▓ ▓
%▓ ▓▓▓▓ ▓▓▓ ▓ ▓▓▓▓▓ ▓▓▓ ▓ ▓▓▓▓▓▓▓▓
%███ ██████ █████ ████ ███ ███
%██████████████████████ ███████████████████
% Global style configs for tcolorbox (to reduce bloat)
\newcommand{\usetcolorboxes}{
\tcbset{
mainboxstyle/.style={
arc=3mm,
colback=red!5!white,
colframe=red!75!black,
colbacktitle=red!75!black,
fonttitle=\bfseries,
enhanced,
attach boxed title to top left={yshift=-2mm,xshift=5mm},
breakable,
top=0.4cm,
}
}
\tikzset{
overlaystyle/.style={
draw=red!75!black,
thick,
fill=red!75!black,
left,
anchor=east,
text=white,
rounded corners=1mm,
font=\bfseries,
xshift=-5mm,
yshift=1mm,
inner xsep=3mm,
inner ysep=1.5mm
}
}
}
% -------------------- %
% Small style elements %
% -------------------- %
\newcommand{\setFont}[1]{\fontfamily{#1}\selectfont}
\newcommand{\setFontType}[1]{
\ifthenelse{\equal{#1}{mono}}{
\renewcommand{\familydefault}{\ttdefault}
}{
\ifthenelse{\equal{#1}{serif}}{
\renewcommand{\familydefault}{\rmdefault}
}{
\renewcommand{\familydefault}{\sfdefault}
}
}
}
\newcommand{\hrmvspace}{\vspace{-0.25pc}}
\newcommand{\rmvspace}{\vspace{-0.5pc}}
\newcommand{\mrmvspace}{\vspace{-0.75pc}}
\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}
\newcommand{\TODO}{\color{red} \hl{TODO:} \color{black}}
\newcommand{\bi}[1]{\textbf{\textit{#1}}}
\renewcommand{\quote}[1]{``\textit{#1}''}
% Add a color shade (similar to \fhlc, but nicer boxes)
\newcommand{\background}[3]{\tcbox[on line,
boxsep=2pt,
left=0pt,
right=0pt,
top=0pt,
bottom=0pt,
colframe=white,
frame empty,
colback=#1!#2!white,
highlight math style={enhanced}
] {\textbf{#3}}}
% Abstraction of background, where the brightness is set to 20%
\newcommand{\shade}[2]{\background{#1}{\arabic{shadeStrength}}{#2}}
% This command is used for the short and inline descriptors
\newcommand{\bg}[2]{\background{#1}{\arabic{descriptorShadeStrength}}{#2}}
% Add a gray backdrop
\newcommand{\backdrop}[1]{\shade{black}{#1}}
% Fancy highlighting (Bold, underlined, colorbox behind it. Shorthand for \fhlc{white}{#1}
\newcommand{\fhl}[1]{\fhlc{white}{#1}}
% Add a colorbox around your text with the color specified. Text is bold and underlined
\newcommand{\fhlc}[2]{\textbf{\underline{\colorbox{#1}{#2}}}}
% Draw box around links. First arg link, second arg display
\newcommand{\hlhref}[2]{\color{MidnightBlue}\fbox{\href{#1}{#2}}\color{black}}
% Same for urls (just one arg tho)
\newcommand{\hlurl}[1]{\color{MidnightBlue}\fbox{\url{#1}}\color{black}}
% Spacing (horizontal)
\newcommand{\smallhspace}{\hspace{2mm}}
\newcommand{\mediumhspace}{\hspace{5mm}}
\newcommand{\largehspace}{\hspace{1cm}}
% ----------------- %
% Table of contents %
% ----------------- %
% Print a table of contents as a tcolorbox
\newcommand{\printtoc}[1]{
\renewcommand{\cfttoctitlefont}{}
\renewcommand{\cftaftertoctitle}{\vspace{-0.75cm}}
\renewcommand{\contentsname}{}
\begin{tcolorbox}[colback=black!5!white,colbacktitle=#1!75!black,coltitle=black,enhanced,attach boxed title to top center={yshift=-2mm},
title={\Large \ifnum\value{lang}<2{Contents}\else {Inhaltsverzeichnis}\fi},fonttitle=\bfseries,breakable]
\hspace{1cm}
\tableofcontents
\end{tcolorbox}
}
%▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
%██░▄▄▀█▀▄▄▀█░▄▀▄░█░▄▀▄░█▀▄▄▀█░▄▄▀
%██░████░██░█░█▄█░█░█▄█░█░██░█░██░
%██░▀▀▄██▄▄██▄███▄█▄███▄██▄▄██▄██▄
%▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
% General tcolorboxes
\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}
\newtcolorbox{remarks}[2][]{mainboxstyle,colback=green!5!white,colframe=green!75!black,colbacktitle=green!75!black,title={\large #2},
overlay={\node[overlaystyle,draw=green!75!black,,fill=green!75!black] at (frame.north east) {\large \translate{Remarks }{Bemerkungen }};},#1}
\newtcolorbox{guides}[3][]{mainboxstyle,colback=red!5!white,colframe=red!75!black,colbacktitle=red!75!black,title={\large #2},
overlay={\node[overlaystyle,draw=red!75!black,,fill=red!75!black] at (frame.north east) {\large #3};},#1}
\newtcolorbox{properties}[2][]{mainboxstyle,colback=purple!5!white,colframe=purple!75!black,colbacktitle=purple!75!black,title={\large #2},
overlay={\node[overlaystyle,draw=purple!75!black,,fill=purple!75!black] at (frame.north east) {\large \translate{Properties }{Eigenschaften }};},#1}
\newtcolorbox{restrictions}[2][]{mainboxstyle,colback=purple!5!white,colframe=purple!75!black,colbacktitle=purple!75!black,title={\large #2},
overlay={\node[overlaystyle,draw=purple!75!black,,fill=purple!75!black] at (frame.north east) {\large \translate{Restrictions }{Einschränkungen }};},#1}
\newtcolorbox{limitations}[2][]{mainboxstyle,colback=purple!5!white,colframe=purple!75!black,colbacktitle=purple!75!black,title={\large #2},
overlay={\node[overlaystyle,draw=purple!75!black,,fill=purple!75!black] at (frame.north east) {\large \translate{Limitations }{Limitierungen }};},#1}
\newtcolorbox{intuition}[2][]{mainboxstyle,colback=Emerald!5!white,colframe=Emerald!75!black,colbacktitle=Emerald!75!black,title={\large #2},
overlay={\node[overlaystyle,draw=Emerald!75!black,,fill=Emerald!75!black] at (frame.north east) {\large Intuition};},#1}
\newcommand{\inlineintuition}{\bg{Emerald}{Intuition:}}
% Terms and notation
\newtcolorbox{terms}[2][]{mainboxstyle,colback=orange!5!white,colframe=orange!75!black,colbacktitle=orange!75!black,title={\large #2},
overlay={\node[overlaystyle,draw=orange!75!black,,fill=orange!75!black] at (frame.north east) {\large \translate{Terms }{Begriffe }};},#1}
\newtcolorbox{notation}[2][]{mainboxstyle,colback=Peach!5!white,colframe=Peach!75!black,colbacktitle=Peach!75!black,title={\large #2},
overlay={\node[overlaystyle,draw=Peach!75!black,,fill=Peach!75!black] at (frame.north east) {\large Notation};},#1}
\newtcolorbox{usage}[2][]{mainboxstyle,colback=green!5!white,colframe=green!75!black,colbacktitle=green!75!black,title={\large #2},
overlay={\node[overlaystyle,draw=green!75!black,,fill=green!75!black] at (frame.north east) {\large \translate{Usage }{Nutzung }};},#1}
% Task
\newtcolorbox{task}[2][]{mainboxstyle,colback=gray!5!white,colframe=gray!75!black,colbacktitle=gray!75!black,title={\large #2},overlay={\node[overlaystyle,draw=gray!75!black,fill=gray!75!black] at (frame.north east) {\large \translate{Task}{Aufgabe}};},#1}
% Proof
\newtcolorbox{proof}[2][]{mainboxstyle,colback=magenta!5!white,colframe=magenta!75!black,colbacktitle=magenta!75!black,title={\large #2},overlay={\node[overlaystyle,draw=magenta!75!black,fill=magenta!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}
+1071
View File
File diff suppressed because it is too large Load Diff
+1109
View File
File diff suppressed because it is too large Load Diff
BIN
View File
Binary file not shown.
+2 -1
View File
@@ -3,10 +3,12 @@
\input{../janishutz-helpers.tex} \input{../janishutz-helpers.tex}
\setup{Docs - \LaTeX \hspace{0mm} helpers} \setup{Docs - \LaTeX \hspace{0mm} helpers}
\setLang{en}
\begin{document} \begin{document}
\startDocument \startDocument
% ── Title page ────────────────────────────────────────────────────── % ── Title page ──────────────────────────────────────────────────────
\vspace{2cm} \vspace{2cm}
@@ -36,7 +38,6 @@
% └ ┘ % └ ┘
\input{./parts/intro.tex} \input{./parts/intro.tex}
\input{./parts/usage.tex} \input{./parts/usage.tex}
\input{./parts/migration.tex}
% ── Reference ─────────────────────────────────────────────────────── % ── Reference ───────────────────────────────────────────────────────
+1
View File
@@ -88,6 +88,7 @@
\newcommand{\limsupni}{\limsup_{n \rightarrow \infty}} \newcommand{\limsupni}{\limsup_{n \rightarrow \infty}}
\newcommand{\sequence}[1]{(#1_n)_{n \geq 1}} \newcommand{\sequence}[1]{(#1_n)_{n \geq 1}}
\newcommand{\series}[2]{\sum_{k = 1}^{#2} #1_k} \newcommand{\series}[2]{\sum_{k = 1}^{#2} #1_k}
\newcommand{\elementstack}[2]{\genfrac{}{}{0pt}{}{#1}{#2}}
\DeclareMathOperator\arctanh{arctanh} \DeclareMathOperator\arctanh{arctanh}
\DeclareMathOperator\arccosh{arccosh} \DeclareMathOperator\arccosh{arccosh}