Compare commits
1
Commits
master
..
6925fbe298
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6925fbe298 |
No files matched your search
@@ -1,190 +0,0 @@
|
|||||||
# Place a copy of this config to ~/.aerospace.toml
|
|
||||||
# After that, you can edit ~/.aerospace.toml to your liking
|
|
||||||
|
|
||||||
# It's not necessary to copy all keys to your config.
|
|
||||||
# If the key is missing in your config, "default-config.toml" will serve as a fallback
|
|
||||||
|
|
||||||
# You can use it to add commands that run after AeroSpace startup.
|
|
||||||
# 'after-startup-command' is run after 'after-login-command'
|
|
||||||
# Available commands : https://nikitabobko.github.io/AeroSpace/commands
|
|
||||||
after-startup-command = ['exec-and-forget bash -c "sleep 2 && sketchybar --trigger aerospace_workspace_change FOCUSED_WORKSPACE=$(aerospace list-workspaces --focused)"']
|
|
||||||
|
|
||||||
# Intergration with sketchybar
|
|
||||||
exec-on-workspace-change = ['/bin/bash', '-c',
|
|
||||||
'sketchybar --update && sketchybar --trigger aerospace_workspace_change FOCUSED_WORKSPACE=$AEROSPACE_FOCUSED_WORKSPACE'
|
|
||||||
]
|
|
||||||
|
|
||||||
# Start AeroSpace at login
|
|
||||||
start-at-login = true
|
|
||||||
|
|
||||||
# Normalizations. See: https://nikitabobko.github.io/AeroSpace/guide#normalization
|
|
||||||
enable-normalization-flatten-containers = true
|
|
||||||
enable-normalization-opposite-orientation-for-nested-containers = true
|
|
||||||
|
|
||||||
# See: https://nikitabobko.github.io/AeroSpace/guide#layouts
|
|
||||||
# The 'accordion-padding' specifies the size of accordion padding
|
|
||||||
# You can set 0 to disable the padding feature
|
|
||||||
accordion-padding = 30
|
|
||||||
|
|
||||||
# Possible values: tiles|accordion
|
|
||||||
default-root-container-layout = 'tiles'
|
|
||||||
|
|
||||||
# Possible values: horizontal|vertical|auto
|
|
||||||
# 'auto' means: wide monitor (anything wider than high) gets horizontal orientation,
|
|
||||||
# tall monitor (anything higher than wide) gets vertical orientation
|
|
||||||
default-root-container-orientation = 'auto'
|
|
||||||
|
|
||||||
# Possible values: (qwerty|dvorak)
|
|
||||||
# See https://nikitabobko.github.io/AeroSpace/guide#key-mapping
|
|
||||||
key-mapping.preset = 'qwerty'
|
|
||||||
|
|
||||||
# Mouse follows focus when focused monitor changes
|
|
||||||
# Drop it from your config, if you don't like this behavior
|
|
||||||
# See https://nikitabobko.github.io/AeroSpace/guide#on-focus-changed-callbacks
|
|
||||||
# See https://nikitabobko.github.io/AeroSpace/commands#move-mouse
|
|
||||||
on-focused-monitor-changed = ['move-mouse monitor-lazy-center']
|
|
||||||
|
|
||||||
# Gaps between windows (inner-*) and between monitor edges (outer-*).
|
|
||||||
# Possible values:
|
|
||||||
# - Constant: gaps.outer.top = 8
|
|
||||||
# - Per monitor: gaps.outer.top = [{ monitor.main = 16 }, { monitor."some-pattern" = 32 }, 24]
|
|
||||||
# In this example, 24 is a default value when there is no match.
|
|
||||||
# Monitor pattern is the same as for 'workspace-to-monitor-force-assignment'.
|
|
||||||
# See: https://nikitabobko.github.io/AeroSpace/guide#assign-workspaces-to-monitors
|
|
||||||
[gaps]
|
|
||||||
inner.horizontal = 10
|
|
||||||
inner.vertical = 10
|
|
||||||
outer.left = 10
|
|
||||||
outer.bottom = 10
|
|
||||||
outer.top = 10
|
|
||||||
outer.right = 10
|
|
||||||
|
|
||||||
# 'main' binding mode declaration
|
|
||||||
# See: https://nikitabobko.github.io/AeroSpace/guide#binding-modes
|
|
||||||
# 'main' binding mode must be always presented
|
|
||||||
[mode.main.binding]
|
|
||||||
|
|
||||||
# All possible keys:
|
|
||||||
# - Letters. a, b, c, ..., z
|
|
||||||
# - Numbers. 0, 1, 2, ..., 9
|
|
||||||
# - Keypad numbers. keypad0, keypad1, keypad2, ..., keypad9
|
|
||||||
# - F-keys. f1, f2, ..., f20
|
|
||||||
# - Special keys. minus, equal, period, comma, slash, backslash, quote, semicolon, backtick,
|
|
||||||
# leftSquareBracket, rightSquareBracket, space, enter, esc, backspace, tab
|
|
||||||
# - Keypad special. keypadClear, keypadDecimalMark, keypadDivide, keypadEnter, keypadEqual,
|
|
||||||
# keypadMinus, keypadMultiply, keypadPlus
|
|
||||||
# - Arrows. left, down, up, right
|
|
||||||
|
|
||||||
# All possible modifiers: cmd, alt, ctrl, shift
|
|
||||||
|
|
||||||
# All possible commands: https://nikitabobko.github.io/AeroSpace/commands
|
|
||||||
|
|
||||||
# You can uncomment this line to open up terminal with alt + enter shortcut
|
|
||||||
# See: https://nikitabobko.github.io/AeroSpace/commands#exec-and-forget
|
|
||||||
# alt-enter = 'exec-and-forget open -n /System/Applications/Utilities/Terminal.app'
|
|
||||||
|
|
||||||
# See: https://nikitabobko.github.io/AeroSpace/commands#layout
|
|
||||||
ctrl-comma= 'layout tiles horizontal vertical'
|
|
||||||
ctrl-period= 'layout accordion horizontal vertical'
|
|
||||||
|
|
||||||
# See: https://nikitabobko.github.io/AeroSpace/commands#focus
|
|
||||||
ctrl-left = 'focus left'
|
|
||||||
ctrl-down = 'focus down'
|
|
||||||
ctrl-up = 'focus up'
|
|
||||||
ctrl-right = 'focus right'
|
|
||||||
|
|
||||||
# See: https://nikitabobko.github.io/AeroSpace/commands#move
|
|
||||||
ctrl-shift-left = 'move left'
|
|
||||||
ctrl-shift-down = 'move down'
|
|
||||||
ctrl-shift-up = 'move up'
|
|
||||||
ctrl-shift-right = 'move right'
|
|
||||||
|
|
||||||
# See: https://nikitabobko.github.io/AeroSpace/commands#workspace
|
|
||||||
ctrl-1 = 'workspace '
|
|
||||||
ctrl-2 = 'workspace '
|
|
||||||
ctrl-3 = 'workspace '
|
|
||||||
ctrl-4 = 'workspace '
|
|
||||||
ctrl-5 = 'workspace '
|
|
||||||
ctrl-6 = 'workspace '
|
|
||||||
ctrl-7 = 'workspace '
|
|
||||||
ctrl-8 = 'workspace '
|
|
||||||
ctrl-9 = 'workspace '
|
|
||||||
|
|
||||||
# See: https://nikitabobko.github.io/AeroSpace/commands#move-node-to-workspace
|
|
||||||
ctrl-shift-1 = 'move-node-to-workspace '
|
|
||||||
ctrl-shift-2 = 'move-node-to-workspace '
|
|
||||||
ctrl-shift-3 = 'move-node-to-workspace '
|
|
||||||
ctrl-shift-4 = 'move-node-to-workspace '
|
|
||||||
ctrl-shift-5 = 'move-node-to-workspace '
|
|
||||||
ctrl-shift-6 = 'move-node-to-workspace '
|
|
||||||
ctrl-shift-7 = 'move-node-to-workspace '
|
|
||||||
ctrl-shift-8 = 'move-node-to-workspace '
|
|
||||||
ctrl-shift-9 = 'move-node-to-workspace '
|
|
||||||
|
|
||||||
# See: https://nikitabobko.github.io/AeroSpace/commands#move-workspace-to-monitor
|
|
||||||
ctrl-shift-tab = 'move-workspace-to-monitor --wrap-around next'
|
|
||||||
|
|
||||||
# See: https://nikitabobko.github.io/AeroSpace/commands#mode
|
|
||||||
ctrl-shift-slash= 'mode service'
|
|
||||||
|
|
||||||
# 'service' binding mode declaration.
|
|
||||||
# See: https://nikitabobko.github.io/AeroSpace/guide#binding-modes
|
|
||||||
[mode.service.binding]
|
|
||||||
esc = ['reload-config', 'mode main']
|
|
||||||
r = ['flatten-workspace-tree', 'mode main'] # reset layout
|
|
||||||
#s = ['layout sticky tiling', 'mode main'] # sticky is not yet supported https://github.com/nikitabobko/AeroSpace/issues/2
|
|
||||||
f = ['layout floating tiling', 'mode main'] # Toggle between floating and tiling layout
|
|
||||||
backspace = ['close-all-windows-but-current', 'mode main']
|
|
||||||
|
|
||||||
ctrl-shift-s = ['join-with left', 'mode main']
|
|
||||||
ctrl-shift-d = ['join-with down', 'mode main']
|
|
||||||
ctrl-shift-f = ['join-with up', 'mode main']
|
|
||||||
ctrl-shift-g = ['join-with right', 'mode main']
|
|
||||||
|
|
||||||
# Window Rules
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'app.zen-browser.zen'
|
|
||||||
if.window-title-regex-substring = 'Picture-in-Picture'
|
|
||||||
run = 'layout floating'
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'app.zen-browser.zen'
|
|
||||||
if.window-title-regex-substring = 'Bitwarden'
|
|
||||||
run = 'layout floating'
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'app.zen-browser.zen'
|
|
||||||
run = 'move-node-to-workspace '
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'com.github.wez.wezterm'
|
|
||||||
run = 'move-node-to-workspace '
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'info.sioyek.sioyek'
|
|
||||||
run = 'move-node-to-workspace '
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'NULL-APP-BUNDLE-ID'
|
|
||||||
run = 'move-node-to-workspace '
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'com.spotify.client'
|
|
||||||
run = 'move-node-to-workspace '
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'com.hnc.Discord'
|
|
||||||
run = 'move-node-to-workspace '
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'org.mozilla.thunderbird'
|
|
||||||
run = 'move-node-to-workspace '
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'asc.onlyoffice.ONLYOFFICE'
|
|
||||||
run = 'move-node-to-workspace '
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'net.ankiweb.launcher'
|
|
||||||
run = 'move-node-to-workspace '
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
|
|
||||||
"logo": {
|
|
||||||
"type": "file",
|
|
||||||
"source": "/Users/jirayu/.config/fastfetch/logo.txt",
|
|
||||||
},
|
|
||||||
"modules": [
|
|
||||||
"title",
|
|
||||||
"separator",
|
|
||||||
"uptime",
|
|
||||||
"packages",
|
|
||||||
"shell",
|
|
||||||
"gpu",
|
|
||||||
"memory",
|
|
||||||
"swap",
|
|
||||||
"disk",
|
|
||||||
"battery",
|
|
||||||
"poweradapter",
|
|
||||||
"colors"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
⠟⢦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
|
||||||
⢷⡄⠈⡓⠢⢄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣠⠤⠂⢹
|
|
||||||
⠈⡷⡄⠈⠲⢤⣈⠻⠉⠛⠉⠉⠁⠒⠖⠉⠉⠉⠒⠶⢦⣤⠴⠒⢉⣡⠴⠀⢀⠏
|
|
||||||
⠀⢸⡿⡂⠀⠀⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣠⣴⡞⠉⠀⢀⣠⡞⠀
|
|
||||||
⠀⠀⢙⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠀⠀⢠⡼⡟⠀⠀
|
|
||||||
⠀⠀⡼⠋⠀⣤⣀⠀⠀⠀⠀⠀⠈⠐⣂⣄⠀⠀⠀⠀⠀⠀⠀⢀⠀⣰⡟⠁⠀⠀
|
|
||||||
⠀⢠⡇⠀⠀⠘⠛⠃⠀⠀⠀⠀⠾⣿⠿⠟⠉⠀⠀⠀⠀⠀⠀⠀⠀⢻⠀⠀⠀⠀
|
|
||||||
⠀⢸⡇⢺⡀⠀⢠⡒⠠⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠠⡀⠀⠀⠸⡇⠀⠀⠀
|
|
||||||
⠀⢸⡇⣘⠑⡀⠀⠙⢏⣁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠂⠀⣔⣇⠀⠀⠀
|
|
||||||
⠀⢸⡇⡁⠀⢳⣶⣾⣷⣦⣄⣀⡀⣀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⠀⠀⠀
|
|
||||||
⠀⠸⡇⠁⠀⠀⢏⠉⠀⠀⠙⠛⠛⠛⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⢈⡏⠀⠀⠀
|
|
||||||
⠀⠀⠯⣀⣈⣀⣈⣐⣲⣄⣄⣤⣴⣆⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣈⣛⡧⠀⠀⠀
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
return {
|
|
||||||
settings = {
|
|
||||||
ltex = {
|
|
||||||
checkFrequency = "save",
|
|
||||||
language = "en-US",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
require("jirr02.core.options")
|
|
||||||
require("jirr02.core.keymaps")
|
|
||||||
require("jirr02.core.colorscheme")
|
|
||||||
require("jirr02.lazy")
|
|
||||||
require("jirr02.lsp")
|
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
{
|
|
||||||
"LuaSnip": { "branch": "master", "commit": "0abc8f390b278c3b4aabc4c004ac8a088b65cf24" },
|
|
||||||
"alpha-nvim": { "branch": "main", "commit": "6c6a89d5b068b5251c8bdf0dd57bb921bcfeeb09" },
|
|
||||||
"catppuccin": { "branch": "main", "commit": "426dbebe06b5c69fd846ceb17b42e12f890aedf1" },
|
|
||||||
"cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" },
|
|
||||||
"cmp-nvim-lsp": { "branch": "main", "commit": "cbc7b02bb99fae35cb42f514762b89b5126651ef" },
|
|
||||||
"cmp-path": { "branch": "main", "commit": "c642487086dbd9a93160e1679a1327be111cbc25" },
|
|
||||||
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
|
|
||||||
"comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
|
|
||||||
"conform.nvim": { "branch": "master", "commit": "18aeab3d63d350dcf44d64c462cc489a3412af40" },
|
|
||||||
"easytables.nvim": { "branch": "master", "commit": "4d7b4d98ab315b90156614e16e0a2b6dbbf2a108" },
|
|
||||||
"follow-md-links.nvim": { "branch": "main", "commit": "99c4e7c78c0211e02c9ff282044b45f7b9dc2d0f" },
|
|
||||||
"friendly-snippets": { "branch": "main", "commit": "6cd7280adead7f586db6fccbd15d2cac7e2188b9" },
|
|
||||||
"gitsigns.nvim": { "branch": "main", "commit": "dd3f588bacbeb041be6facf1742e42097f62165d" },
|
|
||||||
"harpoon": { "branch": "harpoon2", "commit": "87b1a3506211538f460786c23f98ec63ad9af4e5" },
|
|
||||||
"indent-blankline.nvim": { "branch": "master", "commit": "d28a3f70721c79e3c5f6693057ae929f3d9c0a03" },
|
|
||||||
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
|
|
||||||
"lazydev.nvim": { "branch": "main", "commit": "ff2cbcba459b637ec3fd165a2be59b7bbaeedf0d" },
|
|
||||||
"lspkind.nvim": { "branch": "master", "commit": "c7274c48137396526b59d86232eabcdc7fed8a32" },
|
|
||||||
"lualine.nvim": { "branch": "master", "commit": "131a558e13f9f28b15cd235557150ccb23f89286" },
|
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "7b01e2974a47d489bb92f47a41e4c0088ea8f86e" },
|
|
||||||
"mason-tool-installer.nvim": { "branch": "main", "commit": "443f1ef8b5e6bf47045cb2217b6f748a223cf7dc" },
|
|
||||||
"mason.nvim": { "branch": "main", "commit": "cbf8d285e1462dd24acf3507817be2bbcb035919" },
|
|
||||||
"mini.nvim": { "branch": "main", "commit": "264b5c8fc6e82212af0dc5c345145cfa916efeb6" },
|
|
||||||
"noice.nvim": { "branch": "main", "commit": "7bfd942445fb63089b59f97ca487d605e715f155" },
|
|
||||||
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
|
|
||||||
"nvim-FeMaco.lua": { "branch": "main", "commit": "96bbf843595dbe865838b3f2484b73557f34700c" },
|
|
||||||
"nvim-autopairs": { "branch": "master", "commit": "7b9923abad60b903ece7c52940e1321d39eccc79" },
|
|
||||||
"nvim-cmp": { "branch": "main", "commit": "a1d504892f2bc56c2e79b65c6faded2fd21f3eca" },
|
|
||||||
"nvim-lint": { "branch": "master", "commit": "d48f3a76189d03b2239f6df1b2f7e3fa8353743b" },
|
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "246572944c2a1e2a646c2e7609ff619b0fe74c18" },
|
|
||||||
"nvim-notify": { "branch": "master", "commit": "8701bece920b38ea289b457f902e2ad184131a5d" },
|
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "7d8dad2c837fcdf2e65997e68657c1a21c568074" },
|
|
||||||
"oil.nvim": { "branch": "master", "commit": "0fcc83805ad11cf714a949c98c605ed717e0b83e" },
|
|
||||||
"plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },
|
|
||||||
"render-markdown.nvim": { "branch": "main", "commit": "629eb9533ec989d9d5c6cab8f3ad5372422c24e0" },
|
|
||||||
"smart-splits.nvim": { "branch": "master", "commit": "3151100591670148cb0065388117622212208ee3" },
|
|
||||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "b25b749b9db64d375d782094e2b9dce53ad53a40" },
|
|
||||||
"telescope-live-grep-args.nvim": { "branch": "master", "commit": "53e9df55b3651dd7cf77e172f1e8c9a17407acca" },
|
|
||||||
"telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
|
|
||||||
"template.nvim": { "branch": "main", "commit": "308f6f8f0bf98cb7c71855ffa8a3019a5642d1cd" },
|
|
||||||
"todo-comments.nvim": { "branch": "main", "commit": "31e3c38ce9b29781e4422fc0322eb0a21f4e8668" },
|
|
||||||
"tree-sitter-manager.nvim": { "branch": "main", "commit": "f18e545c6ccbbae9875e63a2a7b8e8a9678a242e" },
|
|
||||||
"venv-selector.nvim": { "branch": "main", "commit": "a46c77978abc1aa1b3e17918d964bd30287abb42" },
|
|
||||||
"vim-fugitive": { "branch": "master", "commit": "3b753cf8c6a4dcde6edee8827d464ba9b8c4a6f0" },
|
|
||||||
"vim-surround": { "branch": "master", "commit": "3d188ed2113431cf8dac77be61b842acb64433d9" },
|
|
||||||
"vim-tmux-navigator": { "branch": "master", "commit": "e41c431a0c7b7388ae7ba341f01a0d217eb3a432" },
|
|
||||||
"vimtex": { "branch": "master", "commit": "182ad387e3f3107699483606c9a2b6648f8437b2" },
|
|
||||||
"which-key.nvim": { "branch": "main", "commit": "3aab2147e74890957785941f0c1ad87d0a44c15a" }
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
return {
|
|
||||||
"catppuccin/nvim",
|
|
||||||
name = "catppuccin",
|
|
||||||
priority = 1000,
|
|
||||||
config = function()
|
|
||||||
vim.cmd([[colorscheme catppuccin-macchiato]])
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
vim.g.mapleader = " "
|
|
||||||
|
|
||||||
local keymap = vim.keymap
|
|
||||||
|
|
||||||
keymap.set("i", "jk", "<ESC>", { desc = "Exit out of insert mode" })
|
|
||||||
keymap.set("n", "<leader>q", "<cmd>wq<CR>", { desc = "Exit NeoVim and Save file" })
|
|
||||||
keymap.set("n", "<leader>w", "<cmd>w<CR>", { desc = "Save file" })
|
|
||||||
keymap.set("n", "<leader>x", "<cmd>bd<CR>", { desc = "Delete Buffer" })
|
|
||||||
keymap.set("n", "<leader>-", "gcc", { desc = "Toggle comment" })
|
|
||||||
@@ -1,54 +0,0 @@
|
|||||||
local opt = vim.opt
|
|
||||||
|
|
||||||
opt.termsync = false
|
|
||||||
|
|
||||||
opt.relativenumber = true
|
|
||||||
opt.number = true
|
|
||||||
|
|
||||||
-- treesitter
|
|
||||||
vim.api.nvim_create_autocmd("FileType", {
|
|
||||||
callback = function()
|
|
||||||
pcall(vim.treesitter.start)
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- tabs & indentation
|
|
||||||
opt.tabstop = 2
|
|
||||||
opt.shiftwidth = 2
|
|
||||||
opt.expandtab = true
|
|
||||||
opt.autoindent = true
|
|
||||||
|
|
||||||
-- disable line wrapping
|
|
||||||
opt.wrap = false
|
|
||||||
|
|
||||||
-- search settings
|
|
||||||
opt.ignorecase = true
|
|
||||||
opt.smartcase = true
|
|
||||||
|
|
||||||
-- undo
|
|
||||||
opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
|
|
||||||
opt.undofile = true
|
|
||||||
|
|
||||||
-- search behaviour
|
|
||||||
opt.hlsearch = false
|
|
||||||
opt.incsearch = true
|
|
||||||
|
|
||||||
-- colorscheme
|
|
||||||
opt.termguicolors = true
|
|
||||||
opt.background = "dark"
|
|
||||||
opt.signcolumn = "yes"
|
|
||||||
|
|
||||||
-- backspace
|
|
||||||
opt.backspace = "indent,eol,start"
|
|
||||||
|
|
||||||
-- clipboard
|
|
||||||
opt.clipboard:append("unnamedplus")
|
|
||||||
|
|
||||||
-- splitting windows
|
|
||||||
opt.splitright = true
|
|
||||||
opt.splitbelow = true
|
|
||||||
|
|
||||||
opt.iskeyword:append("-")
|
|
||||||
|
|
||||||
-- concealer
|
|
||||||
opt.conceallevel = 2
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
|
||||||
if not vim.loop.fs_stat(lazypath) then
|
|
||||||
vim.fn.system({
|
|
||||||
"git",
|
|
||||||
"clone",
|
|
||||||
"--filter=blob:none",
|
|
||||||
"https://github.com/folke/lazy.nvim.git",
|
|
||||||
"--branch=stable", -- latest stable release
|
|
||||||
lazypath,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
vim.opt.rtp:prepend(lazypath)
|
|
||||||
|
|
||||||
require("lazy").setup({
|
|
||||||
{ import = "jirr02.plugins" },
|
|
||||||
{ import = "jirr02.core.colorscheme" },
|
|
||||||
{ import = "jirr02.plugins.lsp" },
|
|
||||||
})
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
local severity = vim.diagnostic.severity
|
|
||||||
|
|
||||||
vim.diagnostic.config({
|
|
||||||
signs = {
|
|
||||||
text = {
|
|
||||||
[severity.ERROR] = " ",
|
|
||||||
[severity.WARN] = " ",
|
|
||||||
[severity.HINT] = " ",
|
|
||||||
[severity.INFO] = " ",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
return {
|
|
||||||
"goolord/alpha-nvim",
|
|
||||||
event = "VimEnter",
|
|
||||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
|
||||||
config = function()
|
|
||||||
local alpha = require("alpha")
|
|
||||||
local dashboard = require("alpha.themes.dashboard")
|
|
||||||
|
|
||||||
-- Set menu
|
|
||||||
dashboard.section.buttons.val = {
|
|
||||||
dashboard.button("e", " > New File", "<cmd>ene<CR>"),
|
|
||||||
dashboard.button("SPC ee", " > Toggle file explorer", "<cmd>Oil<CR>"),
|
|
||||||
dashboard.button("SPC ff", " > Find File", "<cmd>Telescope find_files<CR>"),
|
|
||||||
dashboard.button("SPC fs", " > Find Word", "<cmd>Telescope live_grep<CR>"),
|
|
||||||
dashboard.button("SPC sr", " > Resore Session", "<cmd>SessionRestore<CR>"),
|
|
||||||
dashboard.button("q", " > Quit NVIM", "<cmd>qa<CR>"),
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Send config to alpha
|
|
||||||
alpha.setup(dashboard.opts)
|
|
||||||
|
|
||||||
-- Disable folding on alpha buffer
|
|
||||||
vim.cmd([[autocmd FileType alpha setlocal nofoldenable]])
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
return {
|
|
||||||
"windwp/nvim-autopairs",
|
|
||||||
event = { "InsertEnter" },
|
|
||||||
dependencies = {
|
|
||||||
"hrsh7th/nvim-cmp",
|
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
local autopairs = require("nvim-autopairs")
|
|
||||||
local cmp_autopairs = require("nvim-autopairs.completion.cmp")
|
|
||||||
local cmp = require("cmp")
|
|
||||||
|
|
||||||
autopairs.setup({
|
|
||||||
check_ts = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done())
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
return {
|
|
||||||
"numToStr/comment.nvim",
|
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
|
||||||
config = function()
|
|
||||||
local comment = require("Comment")
|
|
||||||
|
|
||||||
comment.setup({})
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
return {
|
|
||||||
"Myzel394/easytables.nvim",
|
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
|
||||||
config = function()
|
|
||||||
local easytables = require("easytables")
|
|
||||||
local wk = require("which-key")
|
|
||||||
|
|
||||||
easytables.setup({})
|
|
||||||
|
|
||||||
wk.add({
|
|
||||||
{ "<leader>m", group = "markdown", icon = "" },
|
|
||||||
{
|
|
||||||
"<leader>mt",
|
|
||||||
function()
|
|
||||||
vim.ui.input({ prompt = "width x height: " }, function(input)
|
|
||||||
vim.cmd("EasyTablesCreateNew " .. input)
|
|
||||||
end)
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
return {
|
|
||||||
"AckslD/nvim-FeMaco.lua",
|
|
||||||
lazy = true,
|
|
||||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
|
||||||
config = function()
|
|
||||||
local femaco = require("femaco")
|
|
||||||
local wk = require("which-key")
|
|
||||||
|
|
||||||
femaco.setup({})
|
|
||||||
|
|
||||||
wk.add({
|
|
||||||
{ "<leader>me", "<cmd>FeMaco<CR>", desc = "Edit code block in buffer", icon = "" },
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
return {
|
|
||||||
"stevearc/conform.nvim",
|
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
|
||||||
config = function()
|
|
||||||
local conform = require("conform")
|
|
||||||
local wk = require("which-key")
|
|
||||||
|
|
||||||
conform.setup({
|
|
||||||
formatters_by_ft = {
|
|
||||||
markdown = { "prettier" },
|
|
||||||
python = { "ruff" },
|
|
||||||
lua = { "stylua" },
|
|
||||||
},
|
|
||||||
format_on_save = {
|
|
||||||
lsp_fallback = true,
|
|
||||||
async = false,
|
|
||||||
timeout_ms = 2500,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
wk.add({
|
|
||||||
{ "<leader>l", group = "lsp", icon = "" },
|
|
||||||
{
|
|
||||||
"<leader>lf",
|
|
||||||
function()
|
|
||||||
conform.format({ lsp_fallback = true, async = false, timeout_ms = 1000 })
|
|
||||||
end,
|
|
||||||
desc = "Format file",
|
|
||||||
icon = "",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
return {
|
|
||||||
"lewis6991/gitsigns.nvim",
|
|
||||||
config = true,
|
|
||||||
}
|
|
||||||
@@ -1,63 +0,0 @@
|
|||||||
return {
|
|
||||||
"ThePrimeagen/harpoon",
|
|
||||||
branch = "harpoon2",
|
|
||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
|
||||||
config = function()
|
|
||||||
local harpoon = require("harpoon")
|
|
||||||
local wk = require("which-key")
|
|
||||||
|
|
||||||
harpoon:setup()
|
|
||||||
|
|
||||||
wk.add({
|
|
||||||
{ "<leader>h", group = "harpoon", icon = "" },
|
|
||||||
{
|
|
||||||
"<leader>hi",
|
|
||||||
function()
|
|
||||||
harpoon.ui:toggle_quick_menu(harpoon:list())
|
|
||||||
end,
|
|
||||||
desc = "Open Harpoon",
|
|
||||||
icon = "",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>ha",
|
|
||||||
function()
|
|
||||||
harpoon:list():add()
|
|
||||||
end,
|
|
||||||
desc = "Add Buffer to Harpoon List",
|
|
||||||
icon = "",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>h1",
|
|
||||||
function()
|
|
||||||
harpoon:list():select(1)
|
|
||||||
end,
|
|
||||||
desc = "Select first Element in Harpoon List",
|
|
||||||
icon = "",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>h2",
|
|
||||||
function()
|
|
||||||
harpoon:list():select(2)
|
|
||||||
end,
|
|
||||||
desc = "Select second Element in Harpoon List",
|
|
||||||
icon = "",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>h3",
|
|
||||||
function()
|
|
||||||
harpoon:list():select(3)
|
|
||||||
end,
|
|
||||||
desc = "Select third Element in Harpoon List",
|
|
||||||
icon = "",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>h4",
|
|
||||||
function()
|
|
||||||
harpoon:list():select(4)
|
|
||||||
end,
|
|
||||||
desc = "Select fourth Element in Harpoon List",
|
|
||||||
icon = "",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
return {
|
|
||||||
"lukas-reineke/indent-blankline.nvim",
|
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
|
||||||
main = "ibl",
|
|
||||||
opts = {
|
|
||||||
indent = { char = "┊" },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
return {
|
|
||||||
{ "nvim-lua/plenary.nvim" },
|
|
||||||
{ "tpope/vim-surround" },
|
|
||||||
{ "tpope/vim-fugitive" },
|
|
||||||
{ "jghauser/follow-md-links.nvim" },
|
|
||||||
}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
return {
|
|
||||||
"mfussenegger/nvim-lint",
|
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
|
||||||
config = function()
|
|
||||||
local lint = require("lint")
|
|
||||||
|
|
||||||
lint.linters_by_ft = {
|
|
||||||
python = { "ruff" },
|
|
||||||
go = { "golangcilint" },
|
|
||||||
latex = { "vale" },
|
|
||||||
markdown = { "vale" },
|
|
||||||
}
|
|
||||||
|
|
||||||
local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })
|
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
|
|
||||||
group = lint_augroup,
|
|
||||||
callback = function()
|
|
||||||
lint.try_lint()
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
return {
|
|
||||||
"hrsh7th/cmp-nvim-lsp",
|
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
|
||||||
dependencies = {
|
|
||||||
{ "folke/lazydev.nvim", ft = "lua", opts = {} },
|
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
local cmp_nvim_lsp = require("cmp_nvim_lsp")
|
|
||||||
local wk = require("which-key")
|
|
||||||
|
|
||||||
local capabilities = cmp_nvim_lsp.default_capabilities()
|
|
||||||
|
|
||||||
vim.lsp.config("*", {
|
|
||||||
capabilities = capabilities,
|
|
||||||
})
|
|
||||||
|
|
||||||
vim.diagnostic.config({
|
|
||||||
virtual_text = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
wk.add({
|
|
||||||
{ "<leader>l", group = "lsp", icon = "" },
|
|
||||||
{ "<leader>lr", "<cmd>Telescope lsp_references<CR>", desc = "Show references", icon = "" },
|
|
||||||
{ "<leader>lD", "<cmd>lua vim.lsp.buf.definition()<CR>", desc = "Show defenition", icon = "" },
|
|
||||||
{ "<leader>lc", "<cmd>lua vim.lsp.buf.code_action()<CR>", desc = "Code actions", icon = "" },
|
|
||||||
{ "<leader>lR", "<cmd>lua vim.lsp.buf.rename()<CR>", desc = "Smart rename", icon = "" },
|
|
||||||
{ "<leader>ld", "<cmd>Telescope diagnostics bufnr=0<CR>", desc = "Diagnostics", icon = "" },
|
|
||||||
{ "<leader>ll", "<cmd>lua vim.lsp.buf.open_float()<CR>", desc = "Line Diagnostics", icon = "" },
|
|
||||||
{ "<leader>ln", "<cmd>lua vim.diagnostic.goto_next()<CR>", desc = "Go to next Diagnostic", icon = "" },
|
|
||||||
{
|
|
||||||
"<leader>lp",
|
|
||||||
"<cmd>lua vim.diagnostic.goto_prev()<CR>",
|
|
||||||
desc = "Go to previous Diagnostic",
|
|
||||||
icon = "",
|
|
||||||
},
|
|
||||||
{ "<leader>li", "<cmd>lua vim.lsp.buf.hover()<CR>", desc = "Show documentation", icon = "" },
|
|
||||||
{ "<leader>lL", "<cmd>LspRestart<CR>", desc = "Restart LSP", icon = "" },
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
return {
|
|
||||||
{
|
|
||||||
"williamboman/mason-lspconfig.nvim",
|
|
||||||
opts = {
|
|
||||||
ensure_installed = {
|
|
||||||
"ruff",
|
|
||||||
"lua_ls",
|
|
||||||
"clangd",
|
|
||||||
"marksman",
|
|
||||||
"texlab",
|
|
||||||
"ltex_plus",
|
|
||||||
"gopls",
|
|
||||||
"tinymist",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
dependencies = {
|
|
||||||
{ "williamboman/mason.nvim", opts = {} },
|
|
||||||
"neovim/nvim-lspconfig",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"WhoIsSethDaniel/mason-tool-installer.nvim",
|
|
||||||
opts = {
|
|
||||||
ensure_installed = {
|
|
||||||
"mypy",
|
|
||||||
"clang-format",
|
|
||||||
"stylua",
|
|
||||||
"prettier",
|
|
||||||
"latexindent",
|
|
||||||
"goimports-reviser",
|
|
||||||
"golines",
|
|
||||||
"golangci-lint",
|
|
||||||
"typstyle",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
dependencies = {
|
|
||||||
"williamboman/mason.nvim",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
return {
|
|
||||||
"nvim-lualine/lualine.nvim",
|
|
||||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
|
||||||
config = function()
|
|
||||||
local lualine = require("lualine")
|
|
||||||
|
|
||||||
lualine.setup({
|
|
||||||
options = {
|
|
||||||
theme = "auto",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
return {
|
|
||||||
"MeanderingProgrammer/render-markdown.nvim",
|
|
||||||
dependencies = { "nvim-mini/mini.nvim" }, -- if you use the mini.nvim suite
|
|
||||||
---@module 'render-markdown'
|
|
||||||
---@type render.md.UserConfig
|
|
||||||
opts = {
|
|
||||||
render_modes = true,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
return {
|
|
||||||
"folke/noice.nvim",
|
|
||||||
dependencies = {
|
|
||||||
"MunifTanjim/nui.nvim",
|
|
||||||
"rcarriga/nvim-notify",
|
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
local noice = require("noice")
|
|
||||||
|
|
||||||
noice.setup({
|
|
||||||
presets = {
|
|
||||||
long_message_to_split = true,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,78 +0,0 @@
|
|||||||
return {
|
|
||||||
"hrsh7th/nvim-cmp",
|
|
||||||
event = "InsertEnter",
|
|
||||||
dependencies = {
|
|
||||||
"hrsh7th/cmp-buffer",
|
|
||||||
"hrsh7th/cmp-path",
|
|
||||||
"L3MON4D3/LuaSnip", -- snippet engine
|
|
||||||
"saadparwaiz1/cmp_luasnip", -- for autocompletion
|
|
||||||
"rafamadriz/friendly-snippets", -- useful snippets
|
|
||||||
"onsails/lspkind.nvim",
|
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
local cmp = require("cmp")
|
|
||||||
local luasnip = require("luasnip")
|
|
||||||
local lspkind = require("lspkind")
|
|
||||||
|
|
||||||
require("luasnip.loaders.from_vscode").lazy_load()
|
|
||||||
require("luasnip.loaders.from_lua").load({ paths = "~/.config/nvim/snippets/" })
|
|
||||||
|
|
||||||
cmp.setup({
|
|
||||||
completion = {
|
|
||||||
completeopt = "menu,menuone,preview,noselect",
|
|
||||||
},
|
|
||||||
snippet = { -- configure how nvim-cmp interacts with snippet engine
|
|
||||||
expand = function(args)
|
|
||||||
luasnip.lsp_expand(args.body)
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
mapping = cmp.mapping.preset.insert({
|
|
||||||
["<C-k>"] = cmp.mapping.select_prev_item(), -- previous suggestion
|
|
||||||
["<C-j>"] = cmp.mapping.select_next_item(), -- next suggestion
|
|
||||||
["<C-b>"] = cmp.mapping.scroll_docs(-4),
|
|
||||||
["<C-f>"] = cmp.mapping.scroll_docs(4),
|
|
||||||
["<C-Space>"] = cmp.mapping.complete(), -- show completion suggestions
|
|
||||||
["<C-s>"] = cmp.mapping.abort(), -- close completion window
|
|
||||||
["<CR>"] = cmp.mapping.confirm({ select = false }),
|
|
||||||
["<C-n>"] = cmp.config.disable,
|
|
||||||
["<C-p>"] = cmp.config.disable,
|
|
||||||
["<C-h>"] = cmp.config.disable,
|
|
||||||
["<C-e>"] = cmp.config.disable,
|
|
||||||
}),
|
|
||||||
sources = cmp.config.sources({
|
|
||||||
{ name = "luasnip" }, -- snippets
|
|
||||||
{ name = "nvim_lsp" }, -- LSP
|
|
||||||
{ name = "lazydev" },
|
|
||||||
{ name = "buffer" }, -- text within current buffer
|
|
||||||
{ name = "path" }, -- file system paths
|
|
||||||
}),
|
|
||||||
formatting = {
|
|
||||||
format = lspkind.cmp_format({
|
|
||||||
maxwidth = 50,
|
|
||||||
ellipsis_char = "...",
|
|
||||||
}),
|
|
||||||
},
|
|
||||||
})
|
|
||||||
luasnip.config.set_config({
|
|
||||||
history = true,
|
|
||||||
updateevents = "TextChanged, TextChangedI",
|
|
||||||
enable_autosnippets = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
vim.keymap.set({ "i" }, "<C-e>", function()
|
|
||||||
luasnip.expand()
|
|
||||||
end, { silent = true })
|
|
||||||
vim.keymap.set({ "i", "s" }, "<C-l>", function()
|
|
||||||
luasnip.jump(1)
|
|
||||||
end, { silent = true })
|
|
||||||
vim.keymap.set({ "i", "s" }, "<C-h>", function()
|
|
||||||
luasnip.jump(-1)
|
|
||||||
end, { silent = true })
|
|
||||||
vim.keymap.set({ "i", "s" }, "<C-n>", function()
|
|
||||||
luasnip.change_choice(1)
|
|
||||||
end, { silent = true })
|
|
||||||
vim.keymap.set({ "i", "s" }, "<C-p>", function()
|
|
||||||
luasnip.change_choice(-1)
|
|
||||||
end, { silent = true })
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
return {
|
|
||||||
"stevearc/oil.nvim",
|
|
||||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
|
||||||
lazy = false,
|
|
||||||
config = function()
|
|
||||||
local oil = require("oil")
|
|
||||||
local wk = require("which-key")
|
|
||||||
|
|
||||||
oil.setup({
|
|
||||||
view_options = {
|
|
||||||
show_hidden = true,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
wk.add({
|
|
||||||
{ "<leader>ee", "<cmd>Oil<CR>", desc = "File Explorer", icon = "" },
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
return {
|
|
||||||
"mrjones2014/smart-splits.nvim",
|
|
||||||
config = function()
|
|
||||||
local smart_splits = require("smart-splits")
|
|
||||||
|
|
||||||
smart_splits.setup({})
|
|
||||||
|
|
||||||
vim.keymap.set("n", "<C-S-h>", smart_splits.resize_left)
|
|
||||||
vim.keymap.set("n", "<C-S-j>", smart_splits.resize_down)
|
|
||||||
vim.keymap.set("n", "<C-S-k>", smart_splits.resize_up)
|
|
||||||
vim.keymap.set("n", "<C-S-l>", smart_splits.resize_right)
|
|
||||||
-- moving between splits
|
|
||||||
vim.keymap.set("n", "<C-h>", smart_splits.move_cursor_left)
|
|
||||||
vim.keymap.set("n", "<C-j>", smart_splits.move_cursor_down)
|
|
||||||
vim.keymap.set("n", "<C-k>", smart_splits.move_cursor_up)
|
|
||||||
vim.keymap.set("n", "<C-l>", smart_splits.move_cursor_right)
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
return {
|
|
||||||
"nvim-telescope/telescope.nvim",
|
|
||||||
branch = "0.1.x",
|
|
||||||
dependencies = {
|
|
||||||
"nvim-lua/plenary.nvim",
|
|
||||||
{ "nvim-telescope/telescope-fzf-native.nvim", build = "make" },
|
|
||||||
"nvim-tree/nvim-web-devicons",
|
|
||||||
"nvim-telescope/telescope-live-grep-args.nvim",
|
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
local telescope = require("telescope")
|
|
||||||
local wk = require("which-key")
|
|
||||||
|
|
||||||
telescope.load_extension("fzf")
|
|
||||||
telescope.load_extension("find_template")
|
|
||||||
|
|
||||||
wk.add({
|
|
||||||
{ "<leader>f", group = "telescope", icon = "" },
|
|
||||||
{
|
|
||||||
"<leader>ff",
|
|
||||||
"<cmd>Telescope find_files<CR>",
|
|
||||||
desc = "Find Files in Current Working Directory",
|
|
||||||
icon = "",
|
|
||||||
},
|
|
||||||
{ "<leader>fr", "<cmd>Telescope oldfiles<CR>", desc = "Recent Files", icon = "" },
|
|
||||||
{ "<leader>fs", "<cmd>Telescope live_grep<CR>", desc = "Find String in CWD", icon = "" },
|
|
||||||
{ "<leader>fc", "<cmd>Telescope grep_string<CR>", desc = "Find String in File", icon = "" },
|
|
||||||
{ "<leader>fg", "<cmd>Telescope git_files<CR>", desc = "Find git files", icon = "" },
|
|
||||||
{ "<leader>ft", "<cmd>TodoTelescope<CR>", desc = "Find todos", icon = "" },
|
|
||||||
{ "<leader>fn", "<cmd>Telescope neorg switch_workspace<CR>", desc = "Neorg Workspaces", icon = "" },
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
return {
|
|
||||||
"glepnir/template.nvim",
|
|
||||||
cmd = { "Template", "TemProject" },
|
|
||||||
config = function()
|
|
||||||
local template = require("template")
|
|
||||||
local wk = require("which-key")
|
|
||||||
|
|
||||||
template.setup({
|
|
||||||
temp_dir = "~/.config/nvim/templates/",
|
|
||||||
})
|
|
||||||
|
|
||||||
wk.add({
|
|
||||||
{ "<leader>t", group = "template", icon = "" },
|
|
||||||
{
|
|
||||||
"<leader>ti",
|
|
||||||
"<cmd>Telescope find_template type=insert filter_ft=false<CR>",
|
|
||||||
desc = "Insert template",
|
|
||||||
icon = "",
|
|
||||||
},
|
|
||||||
{ "<leader>tl", "<cmd>!theory<CR>", desc = "Insert latex notebook template", icon = "" },
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
return {
|
|
||||||
"folke/todo-comments.nvim",
|
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
|
||||||
dependencies = {
|
|
||||||
"nvim-lua/plenary.nvim",
|
|
||||||
},
|
|
||||||
opts = {}
|
|
||||||
}
|
|
||||||
@@ -1,55 +0,0 @@
|
|||||||
return {
|
|
||||||
{
|
|
||||||
"romus204/tree-sitter-manager.nvim",
|
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
|
||||||
config = function()
|
|
||||||
local tsm = require("tree-sitter-manager")
|
|
||||||
|
|
||||||
-- 1. Manage Parser Files
|
|
||||||
tsm.setup({
|
|
||||||
ensure_installed = {
|
|
||||||
"python",
|
|
||||||
"cpp",
|
|
||||||
"lua",
|
|
||||||
"markdown",
|
|
||||||
"markdown_inline",
|
|
||||||
"html",
|
|
||||||
"css",
|
|
||||||
"bash",
|
|
||||||
"zsh",
|
|
||||||
"latex",
|
|
||||||
"r",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
-- 2. Enable Native Highlighting Engine
|
|
||||||
vim.api.nvim_create_autocmd("FileType", {
|
|
||||||
callback = function(args)
|
|
||||||
local bufnr = args.buf
|
|
||||||
local ft = vim.bo[bufnr].filetype
|
|
||||||
|
|
||||||
-- Filter out common "non-code" or problematic filetypes
|
|
||||||
local ignore_ft = { "noice", "prompt", "TelescopePrompt", "notify" }
|
|
||||||
for _, v in ipairs(ignore_ft) do
|
|
||||||
if ft == v then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Try to get the language for the filetype
|
|
||||||
local lang = vim.treesitter.language.get_lang(ft)
|
|
||||||
|
|
||||||
-- ONLY start if we have a valid language AND the parser is actually installed
|
|
||||||
if lang then
|
|
||||||
-- pcall (protected call) prevents the "Parser could not be created" error
|
|
||||||
-- from popping up in your face if the parser is missing/corrupted.
|
|
||||||
local ok, _ = pcall(vim.treesitter.start, bufnr, lang)
|
|
||||||
if ok then
|
|
||||||
vim.opt_local.indentexpr = "v:lua.vim.treesitter.indentexpr()"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
return {
|
|
||||||
"linux-cultist/venv-selector.nvim",
|
|
||||||
dependencies = {
|
|
||||||
"neovim/nvim-lspconfig",
|
|
||||||
},
|
|
||||||
ft = "python", -- Load when opening Python files
|
|
||||||
keys = {
|
|
||||||
{ ",v", "<cmd>VenvSelect<cr>" }, -- Open picker on keymap
|
|
||||||
},
|
|
||||||
opts = { -- this can be an empty lua table - just showing below for clarity.
|
|
||||||
search = {}, -- if you add your own searches, they go here.
|
|
||||||
options = {}, -- if you add plugin options, they go here.
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
return {
|
|
||||||
"christoomey/vim-tmux-navigator",
|
|
||||||
cmd = {
|
|
||||||
"TmuxNavigateLeft",
|
|
||||||
"TmuxNavigateDown",
|
|
||||||
"TmuxNavigateUp",
|
|
||||||
"TmuxNavigateRight",
|
|
||||||
},
|
|
||||||
keys = {
|
|
||||||
{ "<M-h>", "<cmd>TmuxNavigateLeft<cr>" },
|
|
||||||
{ "<M-j>", "<cmd>TmuxNavigateDown<cr>" },
|
|
||||||
{ "<M-k>", "<cmd>TmuxNavigateUp<cr>" },
|
|
||||||
{ "<M-l>", "<cmd>TmuxNavigateRight<cr>" },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
return {
|
|
||||||
"lervag/vimtex",
|
|
||||||
lazy = false,
|
|
||||||
init = function()
|
|
||||||
local wk = require("which-key")
|
|
||||||
|
|
||||||
vim.g.vimtex_view_method = "zathura"
|
|
||||||
vim.g.vimtex_quickfix_mode = 0
|
|
||||||
vim.g.vimtex_compiler_latexmk_engines = {
|
|
||||||
_ = "-lualatex",
|
|
||||||
}
|
|
||||||
vim.g.vimtex_fold_enabled = true
|
|
||||||
vim.g.vimtex_format_enabled = true
|
|
||||||
|
|
||||||
wk.add({
|
|
||||||
{ "<leader>v", group = "vimtex", icon = "" },
|
|
||||||
{ "<leader>vc", "<cmd>VimtexCompile<CR>", desc = "Compile LaTeX File", icon = "" },
|
|
||||||
{ "<leader>vC", "<cmd>VimtexClean<CR>", desc = "Clean LaTeX directory", icon = "" },
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,56 +0,0 @@
|
|||||||
return {
|
|
||||||
"folke/which-key.nvim",
|
|
||||||
event = "VeryLazy",
|
|
||||||
init = function()
|
|
||||||
vim.o.timeout = true
|
|
||||||
vim.o.timeoutlen = 500
|
|
||||||
end,
|
|
||||||
config = function()
|
|
||||||
local wk = require("which-key")
|
|
||||||
|
|
||||||
wk.add({
|
|
||||||
{ "<leader>n", group = "vim", icon = "" },
|
|
||||||
{ "<leader>nh", "<cmd>nohl<CR>", desc = "Close Search Highlights", icon = "" },
|
|
||||||
{ "<leader>no", "<cmd>foldopen<CR>", desc = "Open Fold", icon = "" },
|
|
||||||
{ "<leader>nc", "<cmd>foldclose<CR>", desc = "Close Fold", icon = "" },
|
|
||||||
{ "<leader>s", group = "splits", icon = "" },
|
|
||||||
{ "<leader>sv", "<C-w>v", desc = "Split vertical", icon = "" },
|
|
||||||
{ "<leader>sh", "<C-w>s", desc = "Split horizontal", icon = "" },
|
|
||||||
{ "<leader>se", "<C-w>=", desc = "Make Splits equal", icon = "" },
|
|
||||||
{ "<leader>sx", "<cmd>close<CR>", desc = "Close Split", icon = "" },
|
|
||||||
{ "<leader>i", group = "interface", icon = "" },
|
|
||||||
{ "<leader>il", "<cmd>Lazy<CR>", desc = "Open Lazy Menu" },
|
|
||||||
{ "<leader>im", "<cmd>Mason<CR>", desc = "Open Mason Menu" },
|
|
||||||
{ "<leader>ie", "<cmd>VenvSelect<CR>", desc = "Python Virtual Environment Selector" },
|
|
||||||
{ "<leader>p", group = "typst", icon = "" },
|
|
||||||
{ "<leader>pc", "<cmd>!typst c %<CR>", desc = "Compile current file", icon = "" },
|
|
||||||
{
|
|
||||||
"<leader>pw",
|
|
||||||
function()
|
|
||||||
if _G.typst_job_id then
|
|
||||||
vim.notify("Typst watch is already running!", vim.log.levels.WARN)
|
|
||||||
return
|
|
||||||
end
|
|
||||||
_G.typst_job_id = vim.fn.jobstart({ "typst", "w", vim.fn.expand("%") })
|
|
||||||
vim.notify("Typst watch started in background", vim.log.levels.INFO)
|
|
||||||
end,
|
|
||||||
desc = "Watch current file",
|
|
||||||
icon = "",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>ps",
|
|
||||||
function()
|
|
||||||
if _G.typst_job_id then
|
|
||||||
vim.fn.jobstop(_G.typst_job_id)
|
|
||||||
_G.typst_job_id = nil
|
|
||||||
vim.notify("Typst watch stopped", vim.log.levels.INFO)
|
|
||||||
else
|
|
||||||
vim.notify("No Typst job running", vim.log.levels.WARN)
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
desc = "Stop watch current file",
|
|
||||||
icon = "",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
local ls = require("luasnip") --{{{
|
|
||||||
local s = ls.s
|
|
||||||
local i = ls.i
|
|
||||||
local t = ls.t
|
|
||||||
|
|
||||||
local d = ls.dynamic_node
|
|
||||||
local c = ls.choice_node
|
|
||||||
local f = ls.function_node
|
|
||||||
local sn = ls.snippet_node
|
|
||||||
|
|
||||||
local fmt = require("luasnip.extras.fmt").fmt
|
|
||||||
local rep = require("luasnip.extras").rep
|
|
||||||
|
|
||||||
local snippets, autosnippets = {}, {} --}}}
|
|
||||||
|
|
||||||
-- Start Snippets --
|
|
||||||
|
|
||||||
-- End Snippets --
|
|
||||||
|
|
||||||
return snippets, autosnippets
|
|
||||||
@@ -1,54 +0,0 @@
|
|||||||
local ls = require("luasnip") --{{{
|
|
||||||
local s = ls.s
|
|
||||||
local i = ls.i
|
|
||||||
local t = ls.t
|
|
||||||
|
|
||||||
local d = ls.dynamic_node
|
|
||||||
local c = ls.choice_node
|
|
||||||
local f = ls.function_node
|
|
||||||
local sn = ls.snippet_node
|
|
||||||
|
|
||||||
local fmt = require("luasnip.extras.fmt").fmt
|
|
||||||
local rep = require("luasnip.extras").rep
|
|
||||||
|
|
||||||
local snippets, autosnippets = {}, {} --}}}
|
|
||||||
|
|
||||||
-- Start Snippets --
|
|
||||||
|
|
||||||
local snip = s(
|
|
||||||
{ trig = "snip", desc = "Snippet for LuaSnip" },
|
|
||||||
fmt(
|
|
||||||
[=[
|
|
||||||
local {} = s(
|
|
||||||
{{ trig = "{}", {}desc = "{}"}},
|
|
||||||
fmt(
|
|
||||||
[[
|
|
||||||
{}
|
|
||||||
]],
|
|
||||||
{{
|
|
||||||
{}
|
|
||||||
}}
|
|
||||||
){}
|
|
||||||
)
|
|
||||||
table.insert({}, {})
|
|
||||||
{}
|
|
||||||
]=],
|
|
||||||
{
|
|
||||||
i(1, "Name of Snippet"),
|
|
||||||
i(2, "Trigger"),
|
|
||||||
c(3, { t(""), t("regTrig = true, ") }),
|
|
||||||
i(4, "Description"),
|
|
||||||
i(5, "Snippet"),
|
|
||||||
i(6, "Nodes"),
|
|
||||||
c(7, { t(""), t({ ",", " {", " condition = math,", " show_condition=math,", " }" }) }),
|
|
||||||
c(8, { t("snippets"), t("autosnippets") }),
|
|
||||||
rep(1),
|
|
||||||
i(0),
|
|
||||||
}
|
|
||||||
)
|
|
||||||
)
|
|
||||||
table.insert(snippets, snip)
|
|
||||||
|
|
||||||
-- End Snippets --
|
|
||||||
|
|
||||||
return snippets, autosnippets
|
|
||||||
@@ -1,115 +0,0 @@
|
|||||||
local ls = require("luasnip") --{{{
|
|
||||||
local s = ls.s
|
|
||||||
local i = ls.i
|
|
||||||
local t = ls.t
|
|
||||||
|
|
||||||
local d = ls.dynamic_node
|
|
||||||
local c = ls.choice_node
|
|
||||||
local f = ls.function_node
|
|
||||||
local sn = ls.snippet_node
|
|
||||||
|
|
||||||
local fmt = require("luasnip.extras.fmt").fmt
|
|
||||||
local rep = require("luasnip.extras").rep
|
|
||||||
|
|
||||||
local snippets, autosnippets = {}, {} --}}}
|
|
||||||
|
|
||||||
-- Start Snippets --
|
|
||||||
|
|
||||||
local code = s(
|
|
||||||
{ trig = "code", desc = "Code Section" },
|
|
||||||
fmt(
|
|
||||||
[[
|
|
||||||
```{}
|
|
||||||
|
|
||||||
```
|
|
||||||
]],
|
|
||||||
{
|
|
||||||
i(1, "Language"),
|
|
||||||
}
|
|
||||||
)
|
|
||||||
)
|
|
||||||
table.insert(autosnippets, code)
|
|
||||||
|
|
||||||
local sig = s(
|
|
||||||
{ trig = "sig", desc = "Signature" },
|
|
||||||
fmt(
|
|
||||||
[[
|
|
||||||
---
|
|
||||||
|
|
||||||
Made with ❤️ by JirR02 in Switzerland 🇨🇭
|
|
||||||
]],
|
|
||||||
{}
|
|
||||||
)
|
|
||||||
)
|
|
||||||
table.insert(autosnippets, sig)
|
|
||||||
|
|
||||||
local disclaimeren = s(
|
|
||||||
{ trig = "disen", desc = "Disclaimer EN" },
|
|
||||||
fmt(
|
|
||||||
[[
|
|
||||||
## DISCLAIMER
|
|
||||||
|
|
||||||
{} compiled based on the lecture {} by {}.
|
|
||||||
|
|
||||||
I accept no liability for any potential errors within {}. Please be aware that {} processed with the assistance of NotebookLM. While AI is a powerful tool, it may produce technical inaccuracies or "hallucinations". Furthermore, I have paraphrased sections and added personal observations, which may introduce further errors.
|
|
||||||
|
|
||||||
**Copyright & Content Note:** This is an unofficial resource and is not affiliated with or endorsed by ETH Zurich. As {} generated with the assistance of AI, I cannot guarantee that all content has been sufficiently paraphrased. Some sections may closely mirror or directly quote the original presentation slides or scripts. All intellectual property rights for the original course content remain with the respective authors at ETH Zurich.
|
|
||||||
|
|
||||||
**Notice to Rights Holders:** This document is shared for educational purposes. If you are a rights holder and object to the inclusion of any content, please contact me, and I will remove it immediately.
|
|
||||||
|
|
||||||
Unless stated otherwise, all graphics were generated personally.
|
|
||||||
|
|
||||||
Errors or copyright concerns can be reported via email to [jirruh@ethz.ch](mailto:jirruh@ethz.ch). {}
|
|
||||||
]],
|
|
||||||
{
|
|
||||||
c(1, { t("These notes were"), t("These notes and this summary were"), t("This summary was") }),
|
|
||||||
i(2, "Name of Lecture"),
|
|
||||||
i(3, "Name of Professor"),
|
|
||||||
c(4, { t("these notes"), t("these notes and this summary"), t("this summary") }),
|
|
||||||
c(5, { t("these notes were"), t("these notes and this summary were"), t("this summary was") }),
|
|
||||||
rep(4),
|
|
||||||
i(0),
|
|
||||||
}
|
|
||||||
)
|
|
||||||
)
|
|
||||||
table.insert(autosnippets, disclaimeren)
|
|
||||||
|
|
||||||
local disclaimerde = s(
|
|
||||||
{ trig = "disde", desc = "Disclaimer DE" },
|
|
||||||
fmt(
|
|
||||||
[[
|
|
||||||
## DISCLAIMER
|
|
||||||
|
|
||||||
Diese {} auf der Vorlesung {} von {}.
|
|
||||||
|
|
||||||
Ich übernehme keine Haftung für mögliche Fehler in {}. Bitte beachten Sie, dass diese {} unter Zuhilfenahme von NotebookLM erstellt {}. Obwohl KI ein leistungsstarkes Werkzeug ist, kann sie technische Ungenauigkeiten oder sogenannte „Halluzinationen“ erzeugen. Darüber hinaus habe ich Abschnitte paraphrasiert und eigene Beobachtungen hinzugefügt, was weitere Fehlerquellen darstellen kann.
|
|
||||||
|
|
||||||
**Urheberrecht & Inhaltlicher Hinweis:** Dies ist eine inoffizielle Ressource; sie steht in keiner Verbindung zur ETH Zürich und wird von dieser nicht unterstützt. Da diese {} mit Hilfe von KI erstellt {}, kann ich nicht garantieren, dass alle Inhalte ausreichend umformuliert wurden. Einige Abschnitte können den ursprünglichen Präsentationsfolien oder Skripten stark ähneln oder diese direkt zitieren. Alle geistigen Eigentumsrechte am ursprünglichen Kursinhalt verbleiben bei den jeweiligen Autoren der ETH Zürich.
|
|
||||||
|
|
||||||
**Hinweis für Rechteinhaber:** Dieses Dokument wird ausschließlich zu Bildungszwecken geteilt. Wenn Sie Rechteinhaber sind und der Aufnahme bestimmter Inhalte widersprechen, kontaktieren Sie mich bitte, und ich werde diese umgehend entfernen.
|
|
||||||
|
|
||||||
Sofern nicht anders angegeben, wurden alle Grafiken persönlich erstellt.
|
|
||||||
|
|
||||||
Fehler oder Urheberrechtsbedenken können per E-Mail an [jirruh@ethz.ch](mailto:jirruh@ethz.ch) gemeldet werden. {}
|
|
||||||
]],
|
|
||||||
{
|
|
||||||
c(
|
|
||||||
1,
|
|
||||||
{ t("Notizen basieren"), t("Notizen und diese Zusammenfassung basieren"), t("Zusammenfassung basiert") }
|
|
||||||
),
|
|
||||||
i(2, "Name of Lecture"),
|
|
||||||
i(3, "Name of Professor"),
|
|
||||||
c(4, { t("diesen Notizen"), t("diesen Notizen und dieser Zusammenfassung"), t("dieser Zusammenfassung") }),
|
|
||||||
rep(1),
|
|
||||||
c(5, { t("wurde"), t("wurden") }),
|
|
||||||
rep(1),
|
|
||||||
rep(5),
|
|
||||||
i(0),
|
|
||||||
}
|
|
||||||
)
|
|
||||||
)
|
|
||||||
table.insert(autosnippets, disclaimerde)
|
|
||||||
|
|
||||||
-- End Snippets --
|
|
||||||
|
|
||||||
return snippets, autosnippets
|
|
||||||
File diff suppressed because it is too large.
Load diff
@@ -1,38 +0,0 @@
|
|||||||
\documentclass[a4paper,11pt]{article}
|
|
||||||
|
|
||||||
\usepackage[utf8]{inputenc}
|
|
||||||
\usepackage[ngerman]{babel}
|
|
||||||
\usepackage[T1]{fontenc}
|
|
||||||
\usepackage{amsmath}
|
|
||||||
\usepackage{amsfonts}
|
|
||||||
\usepackage{graphicx}
|
|
||||||
\usepackage{fancyhdr}
|
|
||||||
\usepackage{paralist}
|
|
||||||
\usepackage{geometry}
|
|
||||||
\geometry{left=2.5cm, right=2.5cm, top=2.5cm, bottom=2cm}
|
|
||||||
\setlength{\parindent}{0pt}
|
|
||||||
|
|
||||||
% TODO: Change Title Variable
|
|
||||||
\def\papertitle{Title}
|
|
||||||
|
|
||||||
\bibliographystyle{unsrt}
|
|
||||||
|
|
||||||
\pagestyle{fancy}
|
|
||||||
|
|
||||||
\lhead{\papertitle}
|
|
||||||
\rhead{Jirayu Ruh}
|
|
||||||
|
|
||||||
\lfoot{}
|
|
||||||
\cfoot{\thepage}
|
|
||||||
\rfoot{}
|
|
||||||
|
|
||||||
\setcounter{secnumdepth}{5}
|
|
||||||
\setcounter{tocdepth}{5}
|
|
||||||
|
|
||||||
\begin{document}
|
|
||||||
|
|
||||||
\section{\papertitel}
|
|
||||||
|
|
||||||
% TODO: Begin Paper here.
|
|
||||||
|
|
||||||
\end{document}
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
\documentclass[a4paper,11pt]{article}
|
|
||||||
|
|
||||||
\usepackage[utf8]{inputenc}
|
|
||||||
\usepackage[ngerman]{babel}
|
|
||||||
\usepackage[T1]{fontenc}
|
|
||||||
\usepackage{amsmath}
|
|
||||||
\usepackage{amsfonts}
|
|
||||||
\usepackage{graphicx}
|
|
||||||
\usepackage{fancyhdr}
|
|
||||||
\usepackage{paralist}
|
|
||||||
\usepackage{geometry}
|
|
||||||
\geometry{left=2.5cm, right=2.5cm, top=2.5cm, bottom=2cm}
|
|
||||||
\usepackage[onehalfspacing]{setspace}
|
|
||||||
|
|
||||||
% TODO: Change Variables
|
|
||||||
\def\paperauthor{Jirayu Ruh}
|
|
||||||
\def\papertitle{Title}
|
|
||||||
\def\paperthesis{Thesis}
|
|
||||||
\def\paperdate{Due Date}
|
|
||||||
% TODO: Change Word Count
|
|
||||||
\def\paperwordcount{Word Count}
|
|
||||||
|
|
||||||
\pagestyle{fancy}
|
|
||||||
|
|
||||||
\lhead{}
|
|
||||||
\rhead{\paperauthor}
|
|
||||||
|
|
||||||
\lfoot{}
|
|
||||||
\cfoot{\thepage}
|
|
||||||
\rfoot{}
|
|
||||||
|
|
||||||
\setcounter{secnumdepth}{5}
|
|
||||||
\setcounter{tocdepth}{5}
|
|
||||||
|
|
||||||
\setlength{\parindent}{0pt}
|
|
||||||
|
|
||||||
\begin{document}
|
|
||||||
|
|
||||||
\begin{titlepage}
|
|
||||||
\centering
|
|
||||||
{\LARGE \textbf{\papertitle} \par}
|
|
||||||
\vspace{2cm}
|
|
||||||
% TODO: Change depending on language
|
|
||||||
{\Large \textbf{These:} \par}
|
|
||||||
% {\Large \textbf{Thesis:} \par}
|
|
||||||
{\Large \textbf{\paperthesis} \par}
|
|
||||||
\vspace{2cm}
|
|
||||||
{\Large Jirayu Ruh\par}
|
|
||||||
\vspace{0.5cm}
|
|
||||||
{\Large \paperdate \par}
|
|
||||||
\vspace{5cm}
|
|
||||||
{\Large Word count: \paperwordcount}
|
|
||||||
\end{titlepage}
|
|
||||||
|
|
||||||
\section{Title}
|
|
||||||
|
|
||||||
% TODO: Begin your paper here.
|
|
||||||
|
|
||||||
\end{document}
|
|
||||||
@@ -1,178 +0,0 @@
|
|||||||
% Things Lie
|
|
||||||
\newcommand{\kb}{\mathfrak b}
|
|
||||||
\newcommand{\kg}{\mathfrak g}
|
|
||||||
\newcommand{\kh}{\mathfrak h}
|
|
||||||
\newcommand{\kn}{\mathfrak n}
|
|
||||||
\newcommand{\ku}{\mathfrak u}
|
|
||||||
\newcommand{\kz}{\mathfrak z}
|
|
||||||
\DeclareMathOperator{\Ext}{Ext} % Ext functor
|
|
||||||
\DeclareMathOperator{\Tor}{Tor} % Tor functor
|
|
||||||
\newcommand{\gl}{\opname{\mathfrak{gl}}} % frak gl group
|
|
||||||
\renewcommand{\sl}{\opname{\mathfrak{sl}}} % frak sl group chktex 6
|
|
||||||
|
|
||||||
% More script letters etc.
|
|
||||||
\newcommand{\SA}{\mathcal A}
|
|
||||||
\newcommand{\SB}{\mathcal B}
|
|
||||||
\newcommand{\SC}{\mathcal C}
|
|
||||||
\newcommand{\SF}{\mathcal F}
|
|
||||||
\newcommand{\SG}{\mathcal G}
|
|
||||||
\newcommand{\SH}{\mathcal H}
|
|
||||||
\newcommand{\OO}{\mathcal O}
|
|
||||||
|
|
||||||
\newcommand{\SCA}{\mathscr A}
|
|
||||||
\newcommand{\SCB}{\mathscr B}
|
|
||||||
\newcommand{\SCC}{\mathscr C}
|
|
||||||
\newcommand{\SCD}{\mathscr D}
|
|
||||||
\newcommand{\SCE}{\mathscr E}
|
|
||||||
\newcommand{\SCF}{\mathscr F}
|
|
||||||
\newcommand{\SCG}{\mathscr G}
|
|
||||||
\newcommand{\SCH}{\mathscr H}
|
|
||||||
|
|
||||||
% Mathfrak primes
|
|
||||||
\newcommand{\km}{\mathfrak m}
|
|
||||||
\newcommand{\kp}{\mathfrak p}
|
|
||||||
\newcommand{\kq}{\mathfrak q}
|
|
||||||
|
|
||||||
% number sets
|
|
||||||
\newcommand{\RR}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{R}}{\mathbb{R}^{#1}}}}
|
|
||||||
\newcommand{\NN}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{N}}{\mathbb{N}^{#1}}}}
|
|
||||||
\newcommand{\ZZ}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{Z}}{\mathbb{Z}^{#1}}}}
|
|
||||||
\newcommand{\QQ}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{Q}}{\mathbb{Q}^{#1}}}}
|
|
||||||
\newcommand{\CC}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{C}}{\mathbb{C}^{#1}}}}
|
|
||||||
\newcommand{\PP}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{P}}{\mathbb{P}^{#1}}}}
|
|
||||||
\newcommand{\HH}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{H}}{\mathbb{H}^{#1}}}}
|
|
||||||
\newcommand{\FF}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{F}}{\mathbb{F}^{#1}}}}
|
|
||||||
% expected value
|
|
||||||
\newcommand{\EE}{\ensuremath{\mathbb{E}}}
|
|
||||||
\newcommand{\charin}{\text{ char }}
|
|
||||||
\DeclareMathOperator{\sign}{sign}
|
|
||||||
\DeclareMathOperator{\Aut}{Aut}
|
|
||||||
\DeclareMathOperator{\Inn}{Inn}
|
|
||||||
\DeclareMathOperator{\Syl}{Syl}
|
|
||||||
\DeclareMathOperator{\Gal}{Gal}
|
|
||||||
\DeclareMathOperator{\GL}{GL} % General linear group
|
|
||||||
\DeclareMathOperator{\SL}{SL} % Special linear group
|
|
||||||
|
|
||||||
%---------------------------------------
|
|
||||||
% BlackBoard Math Fonts :-
|
|
||||||
%---------------------------------------
|
|
||||||
|
|
||||||
%Captital Letters
|
|
||||||
\newcommand{\bbA}{\mathbb{A}} \newcommand{\bbB}{\mathbb{B}}
|
|
||||||
\newcommand{\bbC}{\mathbb{C}} \newcommand{\bbD}{\mathbb{D}}
|
|
||||||
\newcommand{\bbE}{\mathbb{E}} \newcommand{\bbF}{\mathbb{F}}
|
|
||||||
\newcommand{\bbG}{\mathbb{G}} \newcommand{\bbH}{\mathbb{H}}
|
|
||||||
\newcommand{\bbI}{\mathbb{I}} \newcommand{\bbJ}{\mathbb{J}}
|
|
||||||
\newcommand{\bbK}{\mathbb{K}} \newcommand{\bbL}{\mathbb{L}}
|
|
||||||
\newcommand{\bbM}{\mathbb{M}} \newcommand{\bbN}{\mathbb{N}}
|
|
||||||
\newcommand{\bbO}{\mathbb{O}} \newcommand{\bbP}{\mathbb{P}}
|
|
||||||
\newcommand{\bbQ}{\mathbb{Q}} \newcommand{\bbR}{\mathbb{R}}
|
|
||||||
\newcommand{\bbS}{\mathbb{S}} \newcommand{\bbT}{\mathbb{T}}
|
|
||||||
\newcommand{\bbU}{\mathbb{U}} \newcommand{\bbV}{\mathbb{V}}
|
|
||||||
\newcommand{\bbW}{\mathbb{W}} \newcommand{\bbX}{\mathbb{X}}
|
|
||||||
\newcommand{\bbY}{\mathbb{Y}} \newcommand{\bbZ}{\mathbb{Z}}
|
|
||||||
|
|
||||||
%---------------------------------------
|
|
||||||
% MathCal Fonts :-
|
|
||||||
%---------------------------------------
|
|
||||||
|
|
||||||
%Captital Letters
|
|
||||||
\newcommand{\mcA}{\mathcal{A}} \newcommand{\mcB}{\mathcal{B}}
|
|
||||||
\newcommand{\mcC}{\mathcal{C}} \newcommand{\mcD}{\mathcal{D}}
|
|
||||||
\newcommand{\mcE}{\mathcal{E}} \newcommand{\mcF}{\mathcal{F}}
|
|
||||||
\newcommand{\mcG}{\mathcal{G}} \newcommand{\mcH}{\mathcal{H}}
|
|
||||||
\newcommand{\mcI}{\mathcal{I}} \newcommand{\mcJ}{\mathcal{J}}
|
|
||||||
\newcommand{\mcK}{\mathcal{K}} \newcommand{\mcL}{\mathcal{L}}
|
|
||||||
\newcommand{\mcM}{\mathcal{M}} \newcommand{\mcN}{\mathcal{N}}
|
|
||||||
\newcommand{\mcO}{\mathcal{O}} \newcommand{\mcP}{\mathcal{P}}
|
|
||||||
\newcommand{\mcQ}{\mathcal{Q}} \newcommand{\mcR}{\mathcal{R}}
|
|
||||||
\newcommand{\mcS}{\mathcal{S}} \newcommand{\mcT}{\mathcal{T}}
|
|
||||||
\newcommand{\mcU}{\mathcal{U}} \newcommand{\mcV}{\mathcal{V}}
|
|
||||||
\newcommand{\mcW}{\mathcal{W}} \newcommand{\mcX}{\mathcal{X}}
|
|
||||||
\newcommand{\mcY}{\mathcal{Y}} \newcommand{\mcZ}{\mathcal{Z}}
|
|
||||||
|
|
||||||
|
|
||||||
%---------------------------------------
|
|
||||||
% Bold Math Fonts :-
|
|
||||||
%---------------------------------------
|
|
||||||
|
|
||||||
%Captital Letters
|
|
||||||
\newcommand{\bmA}{\boldsymbol{A}} \newcommand{\bmB}{\boldsymbol{B}}
|
|
||||||
\newcommand{\bmC}{\boldsymbol{C}} \newcommand{\bmD}{\boldsymbol{D}}
|
|
||||||
\newcommand{\bmE}{\boldsymbol{E}} \newcommand{\bmF}{\boldsymbol{F}}
|
|
||||||
\newcommand{\bmG}{\boldsymbol{G}} \newcommand{\bmH}{\boldsymbol{H}}
|
|
||||||
\newcommand{\bmI}{\boldsymbol{I}} \newcommand{\bmJ}{\boldsymbol{J}}
|
|
||||||
\newcommand{\bmK}{\boldsymbol{K}} \newcommand{\bmL}{\boldsymbol{L}}
|
|
||||||
\newcommand{\bmM}{\boldsymbol{M}} \newcommand{\bmN}{\boldsymbol{N}}
|
|
||||||
\newcommand{\bmO}{\boldsymbol{O}} \newcommand{\bmP}{\boldsymbol{P}}
|
|
||||||
\newcommand{\bmQ}{\boldsymbol{Q}} \newcommand{\bmR}{\boldsymbol{R}}
|
|
||||||
\newcommand{\bmS}{\boldsymbol{S}} \newcommand{\bmT}{\boldsymbol{T}}
|
|
||||||
\newcommand{\bmU}{\boldsymbol{U}} \newcommand{\bmV}{\boldsymbol{V}}
|
|
||||||
\newcommand{\bmW}{\boldsymbol{W}} \newcommand{\bmX}{\boldsymbol{X}}
|
|
||||||
\newcommand{\bmY}{\boldsymbol{Y}} \newcommand{\bmZ}{\boldsymbol{Z}}
|
|
||||||
%Small Letters
|
|
||||||
\newcommand{\bma}{\boldsymbol{a}} \newcommand{\bmb}{\boldsymbol{b}}
|
|
||||||
\newcommand{\bmc}{\boldsymbol{c}} \newcommand{\bmd}{\boldsymbol{d}}
|
|
||||||
\newcommand{\bme}{\boldsymbol{e}} \newcommand{\bmf}{\boldsymbol{f}}
|
|
||||||
\newcommand{\bmg}{\boldsymbol{g}} \newcommand{\bmh}{\boldsymbol{h}}
|
|
||||||
\newcommand{\bmi}{\boldsymbol{i}} \newcommand{\bmj}{\boldsymbol{j}}
|
|
||||||
\newcommand{\bmk}{\boldsymbol{k}} \newcommand{\bml}{\boldsymbol{l}}
|
|
||||||
\newcommand{\bmm}{\boldsymbol{m}} \newcommand{\bmn}{\boldsymbol{n}}
|
|
||||||
\newcommand{\bmo}{\boldsymbol{o}} \newcommand{\bmp}{\boldsymbol{p}}
|
|
||||||
\newcommand{\bmq}{\boldsymbol{q}} \newcommand{\bmr}{\boldsymbol{r}}
|
|
||||||
\newcommand{\bms}{\boldsymbol{s}} \newcommand{\bmt}{\boldsymbol{t}}
|
|
||||||
\newcommand{\bmu}{\boldsymbol{u}} \newcommand{\bmv}{\boldsymbol{v}}
|
|
||||||
\newcommand{\bmw}{\boldsymbol{w}} \newcommand{\bmx}{\boldsymbol{x}}
|
|
||||||
\newcommand{\bmy}{\boldsymbol{y}} \newcommand{\bmz}{\boldsymbol{z}}
|
|
||||||
|
|
||||||
%---------------------------------------
|
|
||||||
% Scr Math Fonts :-
|
|
||||||
%---------------------------------------
|
|
||||||
|
|
||||||
\newcommand{\sA}{{\mathscr{A}}} \newcommand{\sB}{{\mathscr{B}}}
|
|
||||||
\newcommand{\sC}{{\mathscr{C}}} \newcommand{\sD}{{\mathscr{D}}}
|
|
||||||
\newcommand{\sE}{{\mathscr{E}}} \newcommand{\sF}{{\mathscr{F}}}
|
|
||||||
\newcommand{\sG}{{\mathscr{G}}} \newcommand{\sH}{{\mathscr{H}}}
|
|
||||||
\newcommand{\sI}{{\mathscr{I}}} \newcommand{\sJ}{{\mathscr{J}}}
|
|
||||||
\newcommand{\sK}{{\mathscr{K}}} \newcommand{\sL}{{\mathscr{L}}}
|
|
||||||
\newcommand{\sM}{{\mathscr{M}}} \newcommand{\sN}{{\mathscr{N}}}
|
|
||||||
\newcommand{\sO}{{\mathscr{O}}} \newcommand{\sP}{{\mathscr{P}}}
|
|
||||||
\newcommand{\sQ}{{\mathscr{Q}}} \newcommand{\sR}{{\mathscr{R}}}
|
|
||||||
\newcommand{\sS}{{\mathscr{S}}} \newcommand{\sT}{{\mathscr{T}}}
|
|
||||||
\newcommand{\sU}{{\mathscr{U}}} \newcommand{\sV}{{\mathscr{V}}}
|
|
||||||
\newcommand{\sW}{{\mathscr{W}}} \newcommand{\sX}{{\mathscr{X}}}
|
|
||||||
\newcommand{\sY}{{\mathscr{Y}}} \newcommand{\sZ}{{\mathscr{Z}}}
|
|
||||||
|
|
||||||
|
|
||||||
%---------------------------------------
|
|
||||||
% Math Fraktur Font
|
|
||||||
%---------------------------------------
|
|
||||||
|
|
||||||
%Captital Letters
|
|
||||||
\newcommand{\mfA}{\mathfrak{A}} \newcommand{\mfB}{\mathfrak{B}}
|
|
||||||
\newcommand{\mfC}{\mathfrak{C}} \newcommand{\mfD}{\mathfrak{D}}
|
|
||||||
\newcommand{\mfE}{\mathfrak{E}} \newcommand{\mfF}{\mathfrak{F}}
|
|
||||||
\newcommand{\mfG}{\mathfrak{G}} \newcommand{\mfH}{\mathfrak{H}}
|
|
||||||
\newcommand{\mfI}{\mathfrak{I}} \newcommand{\mfJ}{\mathfrak{J}}
|
|
||||||
\newcommand{\mfK}{\mathfrak{K}} \newcommand{\mfL}{\mathfrak{L}}
|
|
||||||
\newcommand{\mfM}{\mathfrak{M}} \newcommand{\mfN}{\mathfrak{N}}
|
|
||||||
\newcommand{\mfO}{\mathfrak{O}} \newcommand{\mfP}{\mathfrak{P}}
|
|
||||||
\newcommand{\mfQ}{\mathfrak{Q}} \newcommand{\mfR}{\mathfrak{R}}
|
|
||||||
\newcommand{\mfS}{\mathfrak{S}} \newcommand{\mfT}{\mathfrak{T}}
|
|
||||||
\newcommand{\mfU}{\mathfrak{U}} \newcommand{\mfV}{\mathfrak{V}}
|
|
||||||
\newcommand{\mfW}{\mathfrak{W}} \newcommand{\mfX}{\mathfrak{X}}
|
|
||||||
\newcommand{\mfY}{\mathfrak{Y}} \newcommand{\mfZ}{\mathfrak{Z}}
|
|
||||||
%Small Letters
|
|
||||||
\newcommand{\mfa}{\mathfrak{a}} \newcommand{\mfb}{\mathfrak{b}}
|
|
||||||
\newcommand{\mfc}{\mathfrak{c}} \newcommand{\mfd}{\mathfrak{d}}
|
|
||||||
\newcommand{\mfe}{\mathfrak{e}} \newcommand{\mff}{\mathfrak{f}}
|
|
||||||
\newcommand{\mfg}{\mathfrak{g}} \newcommand{\mfh}{\mathfrak{h}}
|
|
||||||
\newcommand{\mfi}{\mathfrak{i}} \newcommand{\mfj}{\mathfrak{j}}
|
|
||||||
\newcommand{\mfk}{\mathfrak{k}} \newcommand{\mfl}{\mathfrak{l}}
|
|
||||||
\newcommand{\mfm}{\mathfrak{m}} \newcommand{\mfn}{\mathfrak{n}}
|
|
||||||
\newcommand{\mfo}{\mathfrak{o}} \newcommand{\mfp}{\mathfrak{p}}
|
|
||||||
\newcommand{\mfq}{\mathfrak{q}} \newcommand{\mfr}{\mathfrak{r}}
|
|
||||||
\newcommand{\mfs}{\mathfrak{s}} \newcommand{\mft}{\mathfrak{t}}
|
|
||||||
\newcommand{\mfu}{\mathfrak{u}} \newcommand{\mfv}{\mathfrak{v}}
|
|
||||||
\newcommand{\mfw}{\mathfrak{w}} \newcommand{\mfx}{\mathfrak{x}}
|
|
||||||
\newcommand{\mfy}{\mathfrak{y}} \newcommand{\mfz}{\mathfrak{z}}
|
|
||||||
@@ -1,88 +0,0 @@
|
|||||||
%From M275 "Topology" at SJSU
|
|
||||||
\newcommand{\id}{\mathrm{id}}
|
|
||||||
\newcommand{\taking}[1]{\xrightarrow{#1}}
|
|
||||||
\newcommand{\inv}{^{-1}}
|
|
||||||
|
|
||||||
%From M170 "Introduction to Graph Theory" at SJSU
|
|
||||||
\DeclareMathOperator{\diam}{diam}
|
|
||||||
\DeclareMathOperator{\ord}{ord}
|
|
||||||
\newcommand{\defeq}{\overset{\mathrm{def}}{=}}
|
|
||||||
|
|
||||||
%From the USAMO .tex files
|
|
||||||
\newcommand{\ts}{\textsuperscript}
|
|
||||||
\newcommand{\dg}{^\circ}
|
|
||||||
\newcommand{\ii}{\item}
|
|
||||||
|
|
||||||
% % From Math 55 and Math 145 at Harvard
|
|
||||||
% \newenvironment{subproof}[1][Proof]{%
|
|
||||||
% \begin{proof}[#1] \renewcommand{\qedsymbol}{$\blacksquare$}}%
|
|
||||||
% {\end{proof}}
|
|
||||||
|
|
||||||
\newcommand{\liff}{\leftrightarrow}
|
|
||||||
\newcommand{\lthen}{\rightarrow}
|
|
||||||
\newcommand{\opname}{\operatorname}
|
|
||||||
\newcommand{\surjto}{\twoheadrightarrow}
|
|
||||||
\newcommand{\injto}{\hookrightarrow}
|
|
||||||
\newcommand{\On}{\mathrm{On}} % ordinals
|
|
||||||
\DeclareMathOperator{\img}{im} % Image
|
|
||||||
\DeclareMathOperator{\Img}{Im} % Image
|
|
||||||
\DeclareMathOperator{\coker}{coker} % Cokernel
|
|
||||||
\DeclareMathOperator{\Coker}{Coker} % Cokernel
|
|
||||||
\DeclareMathOperator{\Ker}{Ker} % Kernel
|
|
||||||
\DeclareMathOperator{\rank}{rank}
|
|
||||||
\DeclareMathOperator{\Spec}{Spec} % spectrum
|
|
||||||
\DeclareMathOperator{\Tr}{Tr} % trace
|
|
||||||
\DeclareMathOperator{\pr}{pr} % projection
|
|
||||||
\DeclareMathOperator{\ext}{ext} % extension
|
|
||||||
\DeclareMathOperator{\pred}{pred} % predecessor
|
|
||||||
\DeclareMathOperator{\dom}{dom} % domain
|
|
||||||
\DeclareMathOperator{\ran}{ran} % range
|
|
||||||
\DeclareMathOperator{\Hom}{Hom} % homomorphism
|
|
||||||
\DeclareMathOperator{\Mor}{Mor} % morphisms
|
|
||||||
\DeclareMathOperator{\End}{End} % endomorphism
|
|
||||||
|
|
||||||
\newcommand{\eps}{\epsilon}
|
|
||||||
\newcommand{\veps}{\varepsilon}
|
|
||||||
\newcommand{\ol}{\overline}
|
|
||||||
\newcommand{\ul}{\underline}
|
|
||||||
\newcommand{\wt}{\widetilde}
|
|
||||||
\newcommand{\wh}{\widehat}
|
|
||||||
\newcommand{\vocab}[1]{\textbf{\color{blue} #1}}
|
|
||||||
\providecommand{\half}{\frac{1}{2}}
|
|
||||||
\newcommand{\dang}{\measuredangle} %% Directed angle
|
|
||||||
\newcommand{\ray}[1]{\overrightarrow{#1}}
|
|
||||||
\newcommand{\seg}[1]{\overline{#1}}
|
|
||||||
\newcommand{\arc}[1]{\wideparen{#1}}
|
|
||||||
\DeclareMathOperator{\cis}{cis}
|
|
||||||
\DeclareMathOperator*{\lcm}{lcm}
|
|
||||||
\DeclareMathOperator*{\argmin}{arg min}
|
|
||||||
\DeclareMathOperator*{\argmax}{arg max}
|
|
||||||
\newcommand{\cycsum}{\sum_{\mathrm{cyc}}}
|
|
||||||
\newcommand{\symsum}{\sum_{\mathrm{sym}}}
|
|
||||||
\newcommand{\cycprod}{\prod_{\mathrm{cyc}}}
|
|
||||||
\newcommand{\symprod}{\prod_{\mathrm{sym}}}
|
|
||||||
\newcommand{\Qed}{\begin{flushright}\qed\end{flushright}}
|
|
||||||
\newcommand{\parinn}{\setlength{\parindent}{1cm}}
|
|
||||||
\newcommand{\parinf}{\setlength{\parindent}{0cm}}
|
|
||||||
% \newcommand{\norm}{\|\cdot\|}
|
|
||||||
\newcommand{\inorm}{\norm_{\infty}}
|
|
||||||
\newcommand{\opensets}{\{V_{\alpha}\}_{\alpha\in I}}
|
|
||||||
\newcommand{\oset}{V_{\alpha}}
|
|
||||||
\newcommand{\opset}[1]{V_{\alpha_{#1}}}
|
|
||||||
\newcommand{\lub}{\text{lub}}
|
|
||||||
\newcommand{\del}[2]{\frac{\partial #1}{\partial #2}}
|
|
||||||
\newcommand{\Del}[3]{\frac{\partial^{#1} #2}{\partial^{#1} #3}}
|
|
||||||
\newcommand{\deld}[2]{\dfrac{\partial #1}{\partial #2}}
|
|
||||||
\newcommand{\Deld}[3]{\dfrac{\partial^{#1} #2}{\partial^{#1} #3}}
|
|
||||||
\newcommand{\lm}{\lambda}
|
|
||||||
\newcommand{\uin}{\mathbin{\rotatebox[origin=c]{90}{$\in$}}}
|
|
||||||
\newcommand{\usubset}{\mathbin{\rotatebox[origin=c]{90}{$\subset$}}}
|
|
||||||
\newcommand{\lt}{\left}
|
|
||||||
\newcommand{\rt}{\right}
|
|
||||||
\newcommand{\bs}[1]{\boldsymbol{#1}}
|
|
||||||
\newcommand{\exs}{\exists}
|
|
||||||
\newcommand{\st}{\strut}
|
|
||||||
\newcommand{\dps}[1]{\displaystyle{#1}}
|
|
||||||
|
|
||||||
\newcommand{\sol}{\setlength{\parindent}{0cm}\textbf{\textit{\solutiontitle :}}\setlength{\parindent}{0cm} }
|
|
||||||
\newcommand{\solve}[1]{\setlength{\parindent}{0cm}\textbf{\textit{\solutiontitle : }}\setlength{\parindent}{0cm}#1 \Qed}
|
|
||||||
@@ -1,57 +0,0 @@
|
|||||||
\documentclass{report}
|
|
||||||
|
|
||||||
% TODO: Change Variables
|
|
||||||
\def\papertitle{Title}
|
|
||||||
|
|
||||||
% TODO: Change variables according to language preference
|
|
||||||
\def\theorytitle{Theory}
|
|
||||||
\def\theorytitle{Theorie}
|
|
||||||
\def\notetitle{Bemerkung:-}
|
|
||||||
\def\notetitle{Note:=}
|
|
||||||
\def\corollarytitle{Corollary}
|
|
||||||
\def\corollarytitle{Korollar}
|
|
||||||
\def\proposaltitle{Proposal}
|
|
||||||
\def\proposaltitle{Vorschlag}
|
|
||||||
\def\claimtitle{Claim}
|
|
||||||
\def\claimtitle{Behauptung}
|
|
||||||
\def\exercisetitle{Exercise}
|
|
||||||
\def\exercisetitle{Aufgabe}
|
|
||||||
\def\exampletitle{Example}
|
|
||||||
\def\exampletitle{Beispiel}
|
|
||||||
\def\questiontitle{Question}
|
|
||||||
\def\questiontitle{Frage}
|
|
||||||
\def\wrongctitle{Wrong Concept}
|
|
||||||
\def\wrongctitle{Falscher Konzept}
|
|
||||||
\def\pagetitle{Page}
|
|
||||||
\def\pagetitle{Seite}
|
|
||||||
\def\chaptertitle{Chapter}
|
|
||||||
\def\chaptertitle{Kapitel}
|
|
||||||
\def\solutiontitle{Solution}
|
|
||||||
\def\solutiontitle{Lösung}
|
|
||||||
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
||||||
% Normal / Catppucchin Macchiato Theme %
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
||||||
|
|
||||||
\input{preamble}
|
|
||||||
% \input{preamble_macchiato}
|
|
||||||
|
|
||||||
\input{macros}
|
|
||||||
\input{letterfonts}
|
|
||||||
|
|
||||||
\title{\huge{\papertitle}}
|
|
||||||
\author{\huge{Jirayu Ruh}}
|
|
||||||
\date{}
|
|
||||||
|
|
||||||
\begin{document}
|
|
||||||
|
|
||||||
\maketitle
|
|
||||||
\newpage% or \cleardoublepage
|
|
||||||
% \pdfbookmark[<level>]{<title>}{<dest>}
|
|
||||||
\pdfbookmark[section]{\contentsname}{toc}
|
|
||||||
\tableofcontents
|
|
||||||
\pagebreak
|
|
||||||
|
|
||||||
% TODO: Begin Paper here.
|
|
||||||
|
|
||||||
\end{document}
|
|
||||||
@@ -1,780 +0,0 @@
|
|||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
||||||
% PACKAGE IMPORTS
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
||||||
|
|
||||||
\usepackage{listings}
|
|
||||||
\usepackage[german]{babel}
|
|
||||||
\usepackage[tmargin=2cm,rmargin=1in,lmargin=1in,margin=0.85in,bmargin=2cm,footskip=.2in]{geometry}
|
|
||||||
\usepackage{amsmath,amsfonts,amsthm,amssymb,mathtools}
|
|
||||||
\usepackage[varbb]{newpxmath}
|
|
||||||
\usepackage{xfrac}
|
|
||||||
\usepackage[makeroom]{cancel}
|
|
||||||
\usepackage{mathtools}
|
|
||||||
\usepackage{bookmark}
|
|
||||||
\usepackage{enumitem}
|
|
||||||
\usepackage{hyperref,theoremref}
|
|
||||||
\hypersetup{
|
|
||||||
pdftitle={notizen_analysis_I_II_ruh_jirayu},
|
|
||||||
colorlinks=true, linkcolor=doc!90,
|
|
||||||
bookmarksnumbered=true,
|
|
||||||
bookmarksopen=true
|
|
||||||
}
|
|
||||||
\usepackage[most,many,breakable]{tcolorbox}
|
|
||||||
\usepackage{xcolor}
|
|
||||||
\usepackage{varwidth}
|
|
||||||
\usepackage{varwidth}
|
|
||||||
\usepackage{etoolbox}
|
|
||||||
%\usepackage{authblk}
|
|
||||||
\usepackage{nameref}
|
|
||||||
\usepackage{multicol,array}
|
|
||||||
\usepackage{tikz-cd}
|
|
||||||
\usepackage[ruled,vlined,linesnumbered]{algorithm2e}
|
|
||||||
\usepackage{comment} % enables the use of multi-line comments (\ifx \fi)
|
|
||||||
\usepackage{import}
|
|
||||||
\usepackage{xifthen}
|
|
||||||
\usepackage{pdfpages}
|
|
||||||
\usepackage{transparent}
|
|
||||||
|
|
||||||
\newcommand\mycommfont[1]{\footnotesize\ttfamily\textcolor{blue}{#1}}
|
|
||||||
\SetCommentSty{mycommfont}
|
|
||||||
\newcommand{\incfig}[1]{%
|
|
||||||
\def\svgwidth{\columnwidth}
|
|
||||||
\import{./figures/}{#1.pdf_tex}
|
|
||||||
}
|
|
||||||
|
|
||||||
\usepackage{tikzsymbols}
|
|
||||||
\renewcommand\qedsymbol{$\Laughey$}
|
|
||||||
|
|
||||||
\everymath{\displaystyle}
|
|
||||||
|
|
||||||
%\usepackage{import}
|
|
||||||
%\usepackage{xifthen}
|
|
||||||
%\usepackage{pdfpages}
|
|
||||||
%\usepackage{transparent}
|
|
||||||
|
|
||||||
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
||||||
% SELF MADE COLORS
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
\definecolor{myg}{RGB}{56, 140, 70}
|
|
||||||
\definecolor{myb}{RGB}{45, 111, 177}
|
|
||||||
\definecolor{myr}{RGB}{199, 68, 64}
|
|
||||||
\definecolor{mytheorembg}{HTML}{F2F2F9}
|
|
||||||
\definecolor{mytheoremfr}{HTML}{00007B}
|
|
||||||
\definecolor{mylenmabg}{HTML}{FFFAF8}
|
|
||||||
\definecolor{mylenmafr}{HTML}{983b0f}
|
|
||||||
\definecolor{mypropbg}{HTML}{f2fbfc}
|
|
||||||
\definecolor{mypropfr}{HTML}{191971}
|
|
||||||
\definecolor{myexamplebg}{HTML}{F2FBF8}
|
|
||||||
\definecolor{myexamplefr}{HTML}{88D6D1}
|
|
||||||
\definecolor{myexampleti}{HTML}{2A7F7F}
|
|
||||||
\definecolor{mydefinitbg}{HTML}{E5E5FF}
|
|
||||||
\definecolor{mydefinitfr}{HTML}{3F3FA3}
|
|
||||||
\definecolor{notesgreen}{RGB}{0,162,0}
|
|
||||||
\definecolor{myp}{RGB}{197, 92, 212}
|
|
||||||
\definecolor{mygr}{HTML}{2C3338}
|
|
||||||
\definecolor{myred}{RGB}{127,0,0}
|
|
||||||
\definecolor{myyellow}{RGB}{169,121,69}
|
|
||||||
\definecolor{myexercisebg}{HTML}{F2FBF8}
|
|
||||||
\definecolor{myexercisefg}{HTML}{88D6D1}
|
|
||||||
|
|
||||||
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
||||||
% TCOLORBOX SETUPS
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
||||||
|
|
||||||
\setlength{\parindent}{0cm}
|
|
||||||
%================================
|
|
||||||
% THEOREM BOX
|
|
||||||
%================================
|
|
||||||
|
|
||||||
\tcbuselibrary{theorems,skins,hooks}
|
|
||||||
\newtcbtheorem[number within=section]{Theorem}{\theorytitle}
|
|
||||||
{%
|
|
||||||
enhanced,
|
|
||||||
breakable,
|
|
||||||
colback = mytheorembg,
|
|
||||||
frame hidden,
|
|
||||||
boxrule = 0sp,
|
|
||||||
borderline west = {2pt}{0pt}{mytheoremfr},
|
|
||||||
sharp corners,
|
|
||||||
detach title,
|
|
||||||
before upper = \tcbtitle\par\smallskip,
|
|
||||||
coltitle = mytheoremfr,
|
|
||||||
fonttitle = \bfseries\sffamily,
|
|
||||||
description font = \mdseries,
|
|
||||||
separator sign none,
|
|
||||||
segmentation style={solid, mytheoremfr},
|
|
||||||
}
|
|
||||||
{th}
|
|
||||||
|
|
||||||
\tcbuselibrary{theorems,skins,hooks}
|
|
||||||
\newtcbtheorem[number within=chapter]{theorem}{\theorytitle}
|
|
||||||
{%
|
|
||||||
enhanced,
|
|
||||||
breakable,
|
|
||||||
colback = mytheorembg,
|
|
||||||
frame hidden,
|
|
||||||
boxrule = 0sp,
|
|
||||||
borderline west = {2pt}{0pt}{mytheoremfr},
|
|
||||||
sharp corners,
|
|
||||||
detach title,
|
|
||||||
before upper = \tcbtitle\par\smallskip,
|
|
||||||
coltitle = mytheoremfr,
|
|
||||||
fonttitle = \bfseries\sffamily,
|
|
||||||
description font = \mdseries,
|
|
||||||
separator sign none,
|
|
||||||
segmentation style={solid, mytheoremfr},
|
|
||||||
}
|
|
||||||
{th}
|
|
||||||
|
|
||||||
|
|
||||||
\tcbuselibrary{theorems,skins,hooks}
|
|
||||||
\newtcolorbox{Theoremcon}
|
|
||||||
{%
|
|
||||||
enhanced
|
|
||||||
,breakable
|
|
||||||
,colback = mytheorembg
|
|
||||||
,frame hidden
|
|
||||||
,boxrule = 0sp
|
|
||||||
,borderline west = {2pt}{0pt}{mytheoremfr}
|
|
||||||
,sharp corners
|
|
||||||
,description font = \mdseries
|
|
||||||
,separator sign none
|
|
||||||
}
|
|
||||||
|
|
||||||
%================================
|
|
||||||
% Corollery
|
|
||||||
%================================
|
|
||||||
\tcbuselibrary{theorems,skins,hooks}
|
|
||||||
\newtcbtheorem[number within=section]{Corollary}{\corollarytitle}
|
|
||||||
{%
|
|
||||||
enhanced
|
|
||||||
,breakable
|
|
||||||
,colback = myp!10
|
|
||||||
,frame hidden
|
|
||||||
,boxrule = 0sp
|
|
||||||
,borderline west = {2pt}{0pt}{myp!85!black}
|
|
||||||
,sharp corners
|
|
||||||
,detach title
|
|
||||||
,before upper = \tcbtitle\par\smallskip
|
|
||||||
,coltitle = myp!85!black
|
|
||||||
,fonttitle = \bfseries\sffamily
|
|
||||||
,description font = \mdseries
|
|
||||||
,separator sign none
|
|
||||||
,segmentation style={solid, myp!85!black}
|
|
||||||
}
|
|
||||||
{th}
|
|
||||||
\tcbuselibrary{theorems,skins,hooks}
|
|
||||||
\newtcbtheorem[number within=chapter]{corollary}{\corollarytitle}
|
|
||||||
{%
|
|
||||||
enhanced
|
|
||||||
,breakable
|
|
||||||
,colback = myp!10
|
|
||||||
,frame hidden
|
|
||||||
,boxrule = 0sp
|
|
||||||
,borderline west = {2pt}{0pt}{myp!85!black}
|
|
||||||
,sharp corners
|
|
||||||
,detach title
|
|
||||||
,before upper = \tcbtitle\par\smallskip
|
|
||||||
,coltitle = myp!85!black
|
|
||||||
,fonttitle = \bfseries\sffamily
|
|
||||||
,description font = \mdseries
|
|
||||||
,separator sign none
|
|
||||||
,segmentation style={solid, myp!85!black}
|
|
||||||
}
|
|
||||||
{th}
|
|
||||||
|
|
||||||
|
|
||||||
%================================
|
|
||||||
% LENMA
|
|
||||||
%================================
|
|
||||||
|
|
||||||
\tcbuselibrary{theorems,skins,hooks}
|
|
||||||
\newtcbtheorem[number within=section]{Lenma}{Lenma}
|
|
||||||
{%
|
|
||||||
enhanced,
|
|
||||||
breakable,
|
|
||||||
colback = mylenmabg,
|
|
||||||
frame hidden,
|
|
||||||
boxrule = 0sp,
|
|
||||||
borderline west = {2pt}{0pt}{mylenmafr},
|
|
||||||
sharp corners,
|
|
||||||
detach title,
|
|
||||||
before upper = \tcbtitle\par\smallskip,
|
|
||||||
coltitle = mylenmafr,
|
|
||||||
fonttitle = \bfseries\sffamily,
|
|
||||||
description font = \mdseries,
|
|
||||||
separator sign none,
|
|
||||||
segmentation style={solid, mylenmafr},
|
|
||||||
}
|
|
||||||
{th}
|
|
||||||
|
|
||||||
\tcbuselibrary{theorems,skins,hooks}
|
|
||||||
\newtcbtheorem[number within=chapter]{lenma}{Lenma}
|
|
||||||
{%
|
|
||||||
enhanced,
|
|
||||||
breakable,
|
|
||||||
colback = mylenmabg,
|
|
||||||
frame hidden,
|
|
||||||
boxrule = 0sp,
|
|
||||||
borderline west = {2pt}{0pt}{mylenmafr},
|
|
||||||
sharp corners,
|
|
||||||
detach title,
|
|
||||||
before upper = \tcbtitle\par\smallskip,
|
|
||||||
coltitle = mylenmafr,
|
|
||||||
fonttitle = \bfseries\sffamily,
|
|
||||||
description font = \mdseries,
|
|
||||||
separator sign none,
|
|
||||||
segmentation style={solid, mylenmafr},
|
|
||||||
}
|
|
||||||
{th}
|
|
||||||
|
|
||||||
|
|
||||||
%================================
|
|
||||||
% PROPOSITION
|
|
||||||
%================================
|
|
||||||
|
|
||||||
\tcbuselibrary{theorems,skins,hooks}
|
|
||||||
\newtcbtheorem[number within=section]{Prop}{\proposaltitle}
|
|
||||||
{%
|
|
||||||
enhanced,
|
|
||||||
breakable,
|
|
||||||
colback = mypropbg,
|
|
||||||
frame hidden,
|
|
||||||
boxrule = 0sp,
|
|
||||||
borderline west = {2pt}{0pt}{mypropfr},
|
|
||||||
sharp corners,
|
|
||||||
detach title,
|
|
||||||
before upper = \tcbtitle\par\smallskip,
|
|
||||||
coltitle = mypropfr,
|
|
||||||
fonttitle = \bfseries\sffamily,
|
|
||||||
description font = \mdseries,
|
|
||||||
separator sign none,
|
|
||||||
segmentation style={solid, mypropfr},
|
|
||||||
}
|
|
||||||
{th}
|
|
||||||
|
|
||||||
\tcbuselibrary{theorems,skins,hooks}
|
|
||||||
\newtcbtheorem[number within=chapter]{prop}{\proposaltitle}
|
|
||||||
{%
|
|
||||||
enhanced,
|
|
||||||
breakable,
|
|
||||||
colback = mypropbg,
|
|
||||||
frame hidden,
|
|
||||||
boxrule = 0sp,
|
|
||||||
borderline west = {2pt}{0pt}{mypropfr},
|
|
||||||
sharp corners,
|
|
||||||
detach title,
|
|
||||||
before upper = \tcbtitle\par\smallskip,
|
|
||||||
coltitle = mypropfr,
|
|
||||||
fonttitle = \bfseries\sffamily,
|
|
||||||
description font = \mdseries,
|
|
||||||
separator sign none,
|
|
||||||
segmentation style={solid, mypropfr},
|
|
||||||
}
|
|
||||||
{th}
|
|
||||||
|
|
||||||
|
|
||||||
%================================
|
|
||||||
% CLAIM
|
|
||||||
%================================
|
|
||||||
|
|
||||||
\tcbuselibrary{theorems,skins,hooks}
|
|
||||||
\newtcbtheorem[number within=section]{claim}{\claimtitle}
|
|
||||||
{%
|
|
||||||
enhanced
|
|
||||||
,breakable
|
|
||||||
,colback = myg!10
|
|
||||||
,frame hidden
|
|
||||||
,boxrule = 0sp
|
|
||||||
,borderline west = {2pt}{0pt}{myg}
|
|
||||||
,sharp corners
|
|
||||||
,detach title
|
|
||||||
,before upper = \tcbtitle\par\smallskip
|
|
||||||
,coltitle = myg!85!black
|
|
||||||
,fonttitle = \bfseries\sffamily
|
|
||||||
,description font = \mdseries
|
|
||||||
,separator sign none
|
|
||||||
,segmentation style={solid, myg!85!black}
|
|
||||||
}
|
|
||||||
{th}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%================================
|
|
||||||
% Exercise
|
|
||||||
%================================
|
|
||||||
|
|
||||||
\tcbuselibrary{theorems,skins,hooks}
|
|
||||||
\newtcbtheorem[number within=section]{Exercise}{\exercisetitle}
|
|
||||||
{%
|
|
||||||
enhanced,
|
|
||||||
breakable,
|
|
||||||
colback = myexercisebg,
|
|
||||||
frame hidden,
|
|
||||||
boxrule = 0sp,
|
|
||||||
borderline west = {2pt}{0pt}{myexercisefg},
|
|
||||||
sharp corners,
|
|
||||||
detach title,
|
|
||||||
before upper = \tcbtitle\par\smallskip,
|
|
||||||
coltitle = myexercisefg,
|
|
||||||
fonttitle = \bfseries\sffamily,
|
|
||||||
description font = \mdseries,
|
|
||||||
separator sign none,
|
|
||||||
segmentation style={solid, myexercisefg},
|
|
||||||
}
|
|
||||||
{th}
|
|
||||||
|
|
||||||
\tcbuselibrary{theorems,skins,hooks}
|
|
||||||
\newtcbtheorem[number within=chapter]{exercise}{\exercisetitle}
|
|
||||||
{%
|
|
||||||
enhanced,
|
|
||||||
breakable,
|
|
||||||
colback = myexercisebg,
|
|
||||||
frame hidden,
|
|
||||||
boxrule = 0sp,
|
|
||||||
borderline west = {2pt}{0pt}{myexercisefg},
|
|
||||||
sharp corners,
|
|
||||||
detach title,
|
|
||||||
before upper = \tcbtitle\par\smallskip,
|
|
||||||
coltitle = myexercisefg,
|
|
||||||
fonttitle = \bfseries\sffamily,
|
|
||||||
description font = \mdseries,
|
|
||||||
separator sign none,
|
|
||||||
segmentation style={solid, myexercisefg},
|
|
||||||
}
|
|
||||||
{th}
|
|
||||||
|
|
||||||
%================================
|
|
||||||
% EXAMPLE BOX
|
|
||||||
%================================
|
|
||||||
|
|
||||||
\newtcbtheorem[number within=section]{Example}{\exampletitle}
|
|
||||||
{%
|
|
||||||
colback = myexamplebg
|
|
||||||
,breakable
|
|
||||||
,colframe = myexamplefr
|
|
||||||
,coltitle = myexampleti
|
|
||||||
,boxrule = 1pt
|
|
||||||
,sharp corners
|
|
||||||
,detach title
|
|
||||||
,before upper=\tcbtitle\par\smallskip
|
|
||||||
,fonttitle = \bfseries
|
|
||||||
,description font = \mdseries
|
|
||||||
,separator sign none
|
|
||||||
,description delimiters parenthesis
|
|
||||||
}
|
|
||||||
{ex}
|
|
||||||
|
|
||||||
\newtcbtheorem[number within=chapter]{example}{\exampletitle}
|
|
||||||
{%
|
|
||||||
colback = myexamplebg
|
|
||||||
,breakable
|
|
||||||
,colframe = myexamplefr
|
|
||||||
,coltitle = myexampleti
|
|
||||||
,boxrule = 1pt
|
|
||||||
,sharp corners
|
|
||||||
,detach title
|
|
||||||
,before upper=\tcbtitle\par\smallskip
|
|
||||||
,fonttitle = \bfseries
|
|
||||||
,description font = \mdseries
|
|
||||||
,separator sign none
|
|
||||||
,description delimiters parenthesis
|
|
||||||
}
|
|
||||||
{ex}
|
|
||||||
|
|
||||||
%================================
|
|
||||||
% DEFINITION BOX
|
|
||||||
%================================
|
|
||||||
|
|
||||||
\newtcbtheorem[number within=section]{Definition}{Definition}{enhanced,
|
|
||||||
before skip=2mm,after skip=2mm, colback=red!5,colframe=red!80!black,boxrule=0.5mm,
|
|
||||||
attach boxed title to top left={xshift=1cm,yshift*=1mm-\tcboxedtitleheight}, varwidth boxed title*=-3cm,
|
|
||||||
boxed title style={frame code={
|
|
||||||
\path[fill=tcbcolback]
|
|
||||||
([yshift=-1mm,xshift=-1mm]frame.north west)
|
|
||||||
arc[start angle=0,end angle=180,radius=1mm]
|
|
||||||
([yshift=-1mm,xshift=1mm]frame.north east)
|
|
||||||
arc[start angle=180,end angle=0,radius=1mm];
|
|
||||||
\path[left color=tcbcolback!60!black,right color=tcbcolback!60!black,
|
|
||||||
middle color=tcbcolback!80!black]
|
|
||||||
([xshift=-2mm]frame.north west) -- ([xshift=2mm]frame.north east)
|
|
||||||
[rounded corners=1mm]-- ([xshift=1mm,yshift=-1mm]frame.north east)
|
|
||||||
-- (frame.south east) -- (frame.south west)
|
|
||||||
-- ([xshift=-1mm,yshift=-1mm]frame.north west)
|
|
||||||
[sharp corners]-- cycle;
|
|
||||||
},interior engine=empty,
|
|
||||||
},
|
|
||||||
fonttitle=\bfseries,
|
|
||||||
title={#2},#1}{def}
|
|
||||||
\newtcbtheorem[number within=chapter]{definition}{Definition}{enhanced,
|
|
||||||
before skip=2mm,after skip=2mm, colback=red!5,colframe=red!80!black,boxrule=0.5mm,
|
|
||||||
attach boxed title to top left={xshift=1cm,yshift*=1mm-\tcboxedtitleheight}, varwidth boxed title*=-3cm,
|
|
||||||
boxed title style={frame code={
|
|
||||||
\path[fill=tcbcolback]
|
|
||||||
([yshift=-1mm,xshift=-1mm]frame.north west)
|
|
||||||
arc[start angle=0,end angle=180,radius=1mm]
|
|
||||||
([yshift=-1mm,xshift=1mm]frame.north east)
|
|
||||||
arc[start angle=180,end angle=0,radius=1mm];
|
|
||||||
\path[left color=tcbcolback!60!black,right color=tcbcolback!60!black,
|
|
||||||
middle color=tcbcolback!80!black]
|
|
||||||
([xshift=-2mm]frame.north west) -- ([xshift=2mm]frame.north east)
|
|
||||||
[rounded corners=1mm]-- ([xshift=1mm,yshift=-1mm]frame.north east)
|
|
||||||
-- (frame.south east) -- (frame.south west)
|
|
||||||
-- ([xshift=-1mm,yshift=-1mm]frame.north west)
|
|
||||||
[sharp corners]-- cycle;
|
|
||||||
},interior engine=empty,
|
|
||||||
},
|
|
||||||
fonttitle=\bfseries,
|
|
||||||
title={#2},#1}{def}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%================================
|
|
||||||
% Solution BOX
|
|
||||||
%================================
|
|
||||||
|
|
||||||
\makeatletter
|
|
||||||
\newtcbtheorem{question}{\questiontitle}{enhanced,
|
|
||||||
breakable,
|
|
||||||
colback=white,
|
|
||||||
colframe=myb!80!black,
|
|
||||||
attach boxed title to top left={yshift*=-\tcboxedtitleheight},
|
|
||||||
fonttitle=\bfseries,
|
|
||||||
title={#2},
|
|
||||||
boxed title size=title,
|
|
||||||
boxed title style={%
|
|
||||||
sharp corners,
|
|
||||||
rounded corners=northwest,
|
|
||||||
colback=tcbcolframe,
|
|
||||||
boxrule=0pt,
|
|
||||||
},
|
|
||||||
underlay boxed title={%
|
|
||||||
\path[fill=tcbcolframe] (title.south west)--(title.south east)
|
|
||||||
to[out=0, in=180] ([xshift=5mm]title.east)--
|
|
||||||
(title.center-|frame.east)
|
|
||||||
[rounded corners=\kvtcb@arc] |-
|
|
||||||
(frame.north) -| cycle;
|
|
||||||
},
|
|
||||||
#1
|
|
||||||
}{def}
|
|
||||||
\makeatother
|
|
||||||
|
|
||||||
%================================
|
|
||||||
% SOLUTION BOX
|
|
||||||
%================================
|
|
||||||
|
|
||||||
\makeatletter
|
|
||||||
\newtcolorbox{solution}{enhanced,
|
|
||||||
breakable,
|
|
||||||
colback=white,
|
|
||||||
colframe=myg!80!black,
|
|
||||||
attach boxed title to top left={yshift*=-\tcboxedtitleheight},
|
|
||||||
title=Solution,
|
|
||||||
boxed title size=title,
|
|
||||||
boxed title style={%
|
|
||||||
sharp corners,
|
|
||||||
rounded corners=northwest,
|
|
||||||
colback=tcbcolframe,
|
|
||||||
boxrule=0pt,
|
|
||||||
},
|
|
||||||
underlay boxed title={%
|
|
||||||
\path[fill=tcbcolframe] (title.south west)--(title.south east)
|
|
||||||
to[out=0, in=180] ([xshift=5mm]title.east)--
|
|
||||||
(title.center-|frame.east)
|
|
||||||
[rounded corners=\kvtcb@arc] |-
|
|
||||||
(frame.north) -| cycle;
|
|
||||||
},
|
|
||||||
}
|
|
||||||
\makeatother
|
|
||||||
|
|
||||||
%================================
|
|
||||||
% Question BOX
|
|
||||||
%================================
|
|
||||||
|
|
||||||
\makeatletter
|
|
||||||
\newtcbtheorem{qstion}{\questiontitle}{enhanced,
|
|
||||||
breakable,
|
|
||||||
colback=white,
|
|
||||||
colframe=mygr,
|
|
||||||
attach boxed title to top left={yshift*=-\tcboxedtitleheight},
|
|
||||||
fonttitle=\bfseries,
|
|
||||||
title={#2},
|
|
||||||
boxed title size=title,
|
|
||||||
boxed title style={%
|
|
||||||
sharp corners,
|
|
||||||
rounded corners=northwest,
|
|
||||||
colback=tcbcolframe,
|
|
||||||
boxrule=0pt,
|
|
||||||
},
|
|
||||||
underlay boxed title={%
|
|
||||||
\path[fill=tcbcolframe] (title.south west)--(title.south east)
|
|
||||||
to[out=0, in=180] ([xshift=5mm]title.east)--
|
|
||||||
(title.center-|frame.east)
|
|
||||||
[rounded corners=\kvtcb@arc] |-
|
|
||||||
(frame.north) -| cycle;
|
|
||||||
},
|
|
||||||
#1
|
|
||||||
}{def}
|
|
||||||
\makeatother
|
|
||||||
|
|
||||||
\newtcbtheorem[number within=chapter]{wconc}{\wrongctitle}{
|
|
||||||
breakable,
|
|
||||||
enhanced,
|
|
||||||
colback=white,
|
|
||||||
colframe=myr,
|
|
||||||
arc=0pt,
|
|
||||||
outer arc=0pt,
|
|
||||||
fonttitle=\bfseries\sffamily\large,
|
|
||||||
colbacktitle=myr,
|
|
||||||
attach boxed title to top left={},
|
|
||||||
boxed title style={
|
|
||||||
enhanced,
|
|
||||||
skin=enhancedfirst jigsaw,
|
|
||||||
arc=3pt,
|
|
||||||
bottom=0pt,
|
|
||||||
interior style={fill=myr}
|
|
||||||
},
|
|
||||||
#1
|
|
||||||
}{def}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%================================
|
|
||||||
% NOTE BOX
|
|
||||||
%================================
|
|
||||||
|
|
||||||
\usetikzlibrary{arrows,calc,shadows.blur}
|
|
||||||
\tcbuselibrary{skins}
|
|
||||||
\newtcolorbox{note}[1][]{%
|
|
||||||
enhanced jigsaw,
|
|
||||||
colback=gray!20!white,%
|
|
||||||
colframe=gray!80!black,
|
|
||||||
size=small,
|
|
||||||
boxrule=1pt,
|
|
||||||
title=\textbf{Bemerkung:-},
|
|
||||||
halign title=flush center,
|
|
||||||
coltitle=black,
|
|
||||||
breakable,
|
|
||||||
drop shadow=black!50!white,
|
|
||||||
attach boxed title to top left={xshift=1cm,yshift=-\tcboxedtitleheight/2,yshifttext=-\tcboxedtitleheight/2},
|
|
||||||
minipage boxed title=2.5cm,
|
|
||||||
boxed title style={%
|
|
||||||
colback=white,
|
|
||||||
size=fbox,
|
|
||||||
boxrule=1pt,
|
|
||||||
boxsep=2pt,
|
|
||||||
underlay={%
|
|
||||||
\coordinate (dotA) at ($(interior.west) + (-0.5pt,0)$);
|
|
||||||
\coordinate (dotB) at ($(interior.east) + (0.5pt,0)$);
|
|
||||||
\begin{scope}
|
|
||||||
\clip (interior.north west) rectangle ([xshift=3ex]interior.east);
|
|
||||||
\filldraw [white, blur shadow={shadow opacity=60, shadow yshift=-.75ex}, rounded corners=2pt] (interior.north west) rectangle (interior.south east);
|
|
||||||
\end{scope}
|
|
||||||
\begin{scope}[gray!80!black]
|
|
||||||
\fill (dotA) circle (2pt);
|
|
||||||
\fill (dotB) circle (2pt);
|
|
||||||
\end{scope}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
#1,
|
|
||||||
}
|
|
||||||
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
||||||
% SELF MADE COMMANDS
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
||||||
|
|
||||||
|
|
||||||
\newcommand{\thm}[2]{\begin{Theorem}{#1}{}#2\end{Theorem}}
|
|
||||||
\newcommand{\cor}[2]{\begin{Corollary}{#1}{}#2\end{Corollary}}
|
|
||||||
\newcommand{\mlenma}[2]{\begin{Lenma}{#1}{}#2\end{Lenma}}
|
|
||||||
\newcommand{\mprop}[2]{\begin{Prop}{#1}{}#2\end{Prop}}
|
|
||||||
\newcommand{\clm}[3]{\begin{claim}{#1}{#2}#3\end{claim}}
|
|
||||||
\newcommand{\wc}[2]{\begin{wconc}{#1}{}\setlength{\parindent}{1cm}#2\end{wconc}}
|
|
||||||
\newcommand{\thmcon}[1]{\begin{Theoremcon}{#1}\end{Theoremcon}}
|
|
||||||
\newcommand{\exe}[2]{\begin{Exercise}{#1}{}#2\end{Exercise}}
|
|
||||||
\newcommand{\exa}[2]{\begin{Example}{#1}{}#2\end{Example}}
|
|
||||||
\newcommand{\dfn}[2]{\begin{Definition}[colbacktitle=red!75!black]{#1}{}#2\end{Definition}}
|
|
||||||
\newcommand{\dfnc}[2]{\begin{definition}[colbacktitle=red!75!black]{#1}{}#2\end{definition}}
|
|
||||||
\newcommand{\qs}[2]{\begin{question}{#1}{}#2\end{question}}
|
|
||||||
\newcommand{\pf}[2]{\begin{myproof}[#1]#2\end{myproof}}
|
|
||||||
\newcommand{\nt}[1]{\begin{note}#1\end{note}}
|
|
||||||
|
|
||||||
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
|
|
||||||
Wrong Concept \node[shape=circle,draw,inner sep=1pt] (char) {#1};}}
|
|
||||||
\newcommand\getcurrentref[1]{%
|
|
||||||
\ifnumequal{\value{#1}}{0}
|
|
||||||
{??}
|
|
||||||
{\the\value{#1}}%
|
|
||||||
}
|
|
||||||
\newcommand{\getCurrentSectionNumber}{\getcurrentref{section}}
|
|
||||||
\newenvironment{myproof}[1][\proofname]{%
|
|
||||||
\proof[\bfseries #1: ]%
|
|
||||||
}{\endproof}
|
|
||||||
|
|
||||||
\newcommand{\mclm}[2]{\begin{myclaim}[#1]#2\end{myclaim}}
|
|
||||||
\newenvironment{myclaim}[1][\claimname]{\proof[\bfseries #1: ]}{}
|
|
||||||
|
|
||||||
\newcounter{mylabelcounter}
|
|
||||||
|
|
||||||
\makeatletter
|
|
||||||
\newcommand{\setword}[2]{%
|
|
||||||
\phantomsection
|
|
||||||
#1\def\@currentlabel{\unexpanded{#1}}\label{#2}%
|
|
||||||
}
|
|
||||||
\makeatother
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
\tikzset{
|
|
||||||
symbol/.style={
|
|
||||||
draw=none,
|
|
||||||
every to/.append style={
|
|
||||||
edge node={node [sloped, allow upside down, auto=false]{$#1$}}}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
% deliminators
|
|
||||||
\DeclarePairedDelimiter{\abs}{\lvert}{\rvert}
|
|
||||||
\DeclarePairedDelimiter{\norm}{\lVert}{\rVert}
|
|
||||||
|
|
||||||
\DeclarePairedDelimiter{\ceil}{\lceil}{\rceil}
|
|
||||||
\DeclarePairedDelimiter{\floor}{\lfloor}{\rfloor}
|
|
||||||
\DeclarePairedDelimiter{\round}{\lfloor}{\rceil}
|
|
||||||
|
|
||||||
\newsavebox\diffdbox
|
|
||||||
\newcommand{\slantedromand}{{\mathpalette\makesl{d}}}
|
|
||||||
\newcommand{\makesl}[2]{%
|
|
||||||
\begingroup
|
|
||||||
\sbox{\diffdbox}{$\mathsurround=0pt#1\mathrm{#2}$}%
|
|
||||||
\pdfsave
|
|
||||||
\pdfsetmatrix{1 0 0.2 1}%
|
|
||||||
\rlap{\usebox{\diffdbox}}%
|
|
||||||
\pdfrestore
|
|
||||||
\hskip\wd\diffdbox
|
|
||||||
\endgroup
|
|
||||||
}
|
|
||||||
\newcommand{\dd}[1][]{\ensuremath{\mathop{}\!\ifstrempty{#1}{%
|
|
||||||
\slantedromand\@ifnextchar^{\hspace{0.2ex}}{\hspace{0.1ex}}}%
|
|
||||||
{\slantedromand\hspace{0.2ex}^{#1}}}}
|
|
||||||
\ProvideDocumentCommand\dv{o m g}{%
|
|
||||||
\ensuremath{%
|
|
||||||
\IfValueTF{#3}{%
|
|
||||||
\IfNoValueTF{#1}{%
|
|
||||||
\frac{\dd #2}{\dd #3}%
|
|
||||||
}{%
|
|
||||||
\frac{\dd^{#1} #2}{\dd #3^{#1}}%
|
|
||||||
}%
|
|
||||||
}{%
|
|
||||||
\IfNoValueTF{#1}{%
|
|
||||||
\frac{\dd}{\dd #2}%
|
|
||||||
}{%
|
|
||||||
\frac{\dd^{#1}}{\dd #2^{#1}}%
|
|
||||||
}%
|
|
||||||
}%
|
|
||||||
}%
|
|
||||||
}
|
|
||||||
\providecommand*{\pdv}[3][]{\frac{\partial^{#1}#2}{\partial#3^{#1}}}
|
|
||||||
% - others
|
|
||||||
\DeclareMathOperator{\Lap}{\mathcal{L}}
|
|
||||||
\DeclareMathOperator{\Var}{Var} % varience
|
|
||||||
\DeclareMathOperator{\Cov}{Cov} % covarience
|
|
||||||
\DeclareMathOperator{\E}{E} % expected
|
|
||||||
|
|
||||||
% Since the amsthm package isn't loaded
|
|
||||||
|
|
||||||
% I prefer the slanted \leq
|
|
||||||
\let\oldleq\leq % save them in case they're every wanted
|
|
||||||
\let\oldgeq\geq
|
|
||||||
\renewcommand{\leq}{\leqslant}
|
|
||||||
\renewcommand{\geq}{\geqslant}
|
|
||||||
|
|
||||||
% % redefine matrix env to allow for alignment, use r as default
|
|
||||||
% \renewcommand*\env@matrix[1][r]{\hskip -\arraycolsep
|
|
||||||
% \let\@ifnextchar\new@ifnextchar
|
|
||||||
% \array{*\c@MaxMatrixCols #1}}
|
|
||||||
|
|
||||||
|
|
||||||
%\usepackage{framed}
|
|
||||||
%\usepackage{titletoc}
|
|
||||||
%\usepackage{etoolbox}
|
|
||||||
%\usepackage{lmodern}
|
|
||||||
|
|
||||||
|
|
||||||
%\patchcmd{\tableofcontents}{\contentsname}{\sffamily\contentsname}{}{}
|
|
||||||
|
|
||||||
%\renewenvironment{leftbar}
|
|
||||||
%{\def\FrameCommand{\hspace{6em}%
|
|
||||||
% {\color{myyellow}\vrule width 2pt depth 6pt}\hspace{1em}}%
|
|
||||||
% \MakeFramed{\parshape 1 0cm \dimexpr\textwidth-6em\relax\FrameRestore}\vskip2pt%
|
|
||||||
%}
|
|
||||||
%{\endMakeFramed}
|
|
||||||
|
|
||||||
%\titlecontents{chapter}
|
|
||||||
%[0em]{\vspace*{2\baselineskip}}
|
|
||||||
%{\parbox{4.5em}{%
|
|
||||||
% \hfill\Huge\sffamily\bfseries\color{myred}\thecontentspage}%
|
|
||||||
% \vspace*{-2.3\baselineskip}\leftbar\textsc{\small\chaptername~\thecontentslabel}\\\sffamily}
|
|
||||||
%{}{\endleftbar}
|
|
||||||
%\titlecontents{section}
|
|
||||||
%[8.4em]
|
|
||||||
%{\sffamily\contentslabel{3em}}{}{}
|
|
||||||
%{\hspace{0.5em}\nobreak\itshape\color{myred}\contentspage}
|
|
||||||
%\titlecontents{subsection}
|
|
||||||
%[8.4em]
|
|
||||||
%{\sffamily\contentslabel{3em}}{}{}
|
|
||||||
%{\hspace{0.5em}\nobreak\itshape\color{myred}\contentspage}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
||||||
% TABLE OF CONTENTS
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
||||||
|
|
||||||
\usepackage{tikz}
|
|
||||||
\definecolor{doc}{RGB}{0,60,110}
|
|
||||||
\usepackage{titletoc}
|
|
||||||
\contentsmargin{0cm}
|
|
||||||
\titlecontents{chapter}[3.7pc]
|
|
||||||
{\addvspace{30pt}%
|
|
||||||
\begin{tikzpicture}[remember picture, overlay]%
|
|
||||||
\draw[fill=doc!60,draw=doc!60] (-7,-.1) rectangle (-0.9,.5);%
|
|
||||||
\pgftext[left,x=-3.5cm,y=0.2cm]{\color{white}\Large\sc\bfseries Kapitel\ \thecontentslabel};%
|
|
||||||
\end{tikzpicture}\color{doc!60}\large\sc\bfseries}%
|
|
||||||
{}
|
|
||||||
{}
|
|
||||||
{\;\titlerule\;\large\sc\bfseries Seite \thecontentspage
|
|
||||||
\begin{tikzpicture}[remember picture, overlay]
|
|
||||||
\draw[fill=doc!60,draw=doc!60] (2pt,0) rectangle (4,0.1pt);
|
|
||||||
\end{tikzpicture}}%
|
|
||||||
\titlecontents{section}[3.7pc]
|
|
||||||
{\addvspace{2pt}}
|
|
||||||
{\contentslabel[\thecontentslabel]{2pc}}
|
|
||||||
{}
|
|
||||||
{\hfill\small \thecontentspage}
|
|
||||||
[]
|
|
||||||
\titlecontents*{subsection}[3.7pc]
|
|
||||||
{\addvspace{-1pt}\small}
|
|
||||||
{}
|
|
||||||
{}
|
|
||||||
{\ --- \small\thecontentspage}
|
|
||||||
[ \textbullet\ ][]
|
|
||||||
|
|
||||||
\makeatletter
|
|
||||||
\renewcommand{\tableofcontents}{%
|
|
||||||
\chapter*{%
|
|
||||||
\vspace*{-20\p@}%
|
|
||||||
\begin{tikzpicture}[remember picture, overlay]%
|
|
||||||
\pgftext[right,x=15cm,y=0.2cm]{\color{doc!60}\Huge\sc\bfseries \contentsname};%
|
|
||||||
\draw[fill=doc!60,draw=doc!60] (13,-.75) rectangle (20,1);%
|
|
||||||
\clip (13,-.75) rectangle (20,1);
|
|
||||||
\pgftext[right,x=15cm,y=0.2cm]{\color{white}\Huge\sc\bfseries \contentsname};%
|
|
||||||
\end{tikzpicture}}%
|
|
||||||
\@starttoc{toc}}
|
|
||||||
\makeatother
|
|
||||||
@@ -1,729 +0,0 @@
|
|||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
||||||
% PACKAGE IMPORTS
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
||||||
|
|
||||||
% TODO: Change Bable Language if needed
|
|
||||||
% \usepackage[ngerman]{babel}
|
|
||||||
\usepackage[macchiato, styleAll]{catppuccinpalette}
|
|
||||||
\usepackage[tmargin=2cm,rmargin=1in,lmargin=1in,margin=0.85in,bmargin=2cm,footskip=.2in]{geometry}
|
|
||||||
\usepackage{amsmath,amsfonts,amsthm,amssymb,mathtools}
|
|
||||||
\usepackage[varbb]{newpxmath}
|
|
||||||
\usepackage{xfrac}
|
|
||||||
\usepackage[makeroom]{cancel}
|
|
||||||
\usepackage{mathtools}
|
|
||||||
\usepackage{bookmark}
|
|
||||||
\usepackage{enumitem}
|
|
||||||
\usepackage{hyperref,theoremref}
|
|
||||||
\hypersetup{
|
|
||||||
pdftitle={\papertitle},
|
|
||||||
colorlinks=true, linkcolor=CtpBlue!90,
|
|
||||||
bookmarksnumbered=true,
|
|
||||||
bookmarksopen=true
|
|
||||||
}
|
|
||||||
\usepackage[most,many,breakable]{tcolorbox}
|
|
||||||
\usepackage{xcolor}
|
|
||||||
\usepackage{varwidth}
|
|
||||||
\usepackage{varwidth}
|
|
||||||
\usepackage{etoolbox}
|
|
||||||
%\usepackage{authblk}
|
|
||||||
\usepackage{nameref}
|
|
||||||
\usepackage{multicol,array}
|
|
||||||
\usepackage{tikz-cd}
|
|
||||||
\usepackage{listings}
|
|
||||||
\usepackage{comment} % enables the use of multi-line comments (\ifx \fi)
|
|
||||||
\usepackage{import}
|
|
||||||
\usepackage{xifthen}
|
|
||||||
\usepackage{pdfpages}
|
|
||||||
\usepackage{transparent}
|
|
||||||
\usepackage{tikzsymbols}
|
|
||||||
\renewcommand\qedsymbol{$\Laughey$}
|
|
||||||
|
|
||||||
|
|
||||||
%\usepackage{import}
|
|
||||||
%\usepackage{xifthen}
|
|
||||||
%\usepackage{pdfpages}
|
|
||||||
%\usepackage{transparent}
|
|
||||||
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
||||||
% LISTINGS SETUP
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
||||||
|
|
||||||
% Add Settings for Code Blocks
|
|
||||||
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
||||||
% TCOLORBOX SETUPS
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
||||||
|
|
||||||
\setlength{\parindent}{0cm}
|
|
||||||
|
|
||||||
%================================
|
|
||||||
% THEOREM BOX
|
|
||||||
%================================
|
|
||||||
|
|
||||||
\tcbuselibrary{theorems,skins,hooks}
|
|
||||||
\newtcbtheorem[number within=section]{Theorem}{\theorytitle}
|
|
||||||
{%
|
|
||||||
enhanced,
|
|
||||||
breakable,
|
|
||||||
colback = CtpSurface0,
|
|
||||||
colupper = CtpText,
|
|
||||||
frame hidden,
|
|
||||||
boxrule = 0sp,
|
|
||||||
borderline west = {2pt}{0pt}{CtpLavender},
|
|
||||||
sharp corners,
|
|
||||||
detach title,
|
|
||||||
before upper = \tcbtitle\par\smallskip,
|
|
||||||
coltitle = CtpLavender,
|
|
||||||
fonttitle = \bfseries\sffamily,
|
|
||||||
description font = \mdseries,
|
|
||||||
separator sign none,
|
|
||||||
segmentation style={solid, CtpLavender},
|
|
||||||
}
|
|
||||||
{th}
|
|
||||||
|
|
||||||
\tcbuselibrary{theorems,skins,hooks}
|
|
||||||
\newtcbtheorem[number within=chapter]{theorem}{\theorytitle}
|
|
||||||
{%
|
|
||||||
enhanced,
|
|
||||||
breakable,
|
|
||||||
colback = CtpSurface0,
|
|
||||||
colupper = CtpText,
|
|
||||||
frame hidden,
|
|
||||||
boxrule = 0sp,
|
|
||||||
borderline west = {2pt}{0pt}{CtpLavender},
|
|
||||||
sharp corners,
|
|
||||||
detach title,
|
|
||||||
before upper = \tcbtitle\par\smallskip,
|
|
||||||
coltitle = CtpLavender,
|
|
||||||
fonttitle = \bfseries\sffamily,
|
|
||||||
description font = \mdseries,
|
|
||||||
separator sign none,
|
|
||||||
segmentation style={solid, CtpLavender},
|
|
||||||
}
|
|
||||||
{th}
|
|
||||||
|
|
||||||
|
|
||||||
\tcbuselibrary{theorems,skins,hooks}
|
|
||||||
\newtcolorbox{Theoremcon}
|
|
||||||
{%
|
|
||||||
enhanced
|
|
||||||
,breakable
|
|
||||||
,colback = CtpSurface0
|
|
||||||
,colupper = CtpText
|
|
||||||
,frame hidden
|
|
||||||
,boxrule = 0sp
|
|
||||||
,borderline west = {2pt}{0pt}{CtpLavender}
|
|
||||||
,sharp corners
|
|
||||||
,description font = \mdseries
|
|
||||||
,separator sign none
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
%================================
|
|
||||||
% Corollary
|
|
||||||
%================================
|
|
||||||
|
|
||||||
\tcbuselibrary{theorems,skins,hooks}
|
|
||||||
\newtcbtheorem[number within=section]{Corollary}{\corollarytitle}
|
|
||||||
{%
|
|
||||||
enhanced
|
|
||||||
,breakable
|
|
||||||
,colback = CtpSurface0
|
|
||||||
,colupper = CtpText
|
|
||||||
,frame hidden
|
|
||||||
,boxrule = 0sp
|
|
||||||
,borderline west = {2pt}{0pt}{CtpMauve!85!black}
|
|
||||||
,sharp corners
|
|
||||||
,detach title
|
|
||||||
,before upper = \tcbtitle\par\smallskip
|
|
||||||
,coltitle = CtpMauve!85!black
|
|
||||||
,fonttitle = \bfseries\sffamily
|
|
||||||
,description font = \mdseries
|
|
||||||
,separator sign none
|
|
||||||
,segmentation style={solid, CtpMauve!85!black}
|
|
||||||
}
|
|
||||||
{th}
|
|
||||||
\tcbuselibrary{theorems,skins,hooks}
|
|
||||||
\newtcbtheorem[number within=chapter]{corollary}{\corollarytitle}
|
|
||||||
{%
|
|
||||||
enhanced
|
|
||||||
,breakable
|
|
||||||
,colback = CtpSurface0
|
|
||||||
,colupper = CtpText
|
|
||||||
,frame hidden
|
|
||||||
,boxrule = 0sp
|
|
||||||
,borderline west = {2pt}{0pt}{CtpMauve!85!black}
|
|
||||||
,sharp corners
|
|
||||||
,detach title
|
|
||||||
,before upper = \tcbtitle\par\smallskip
|
|
||||||
,coltitle = CtpMauve!85!black
|
|
||||||
,fonttitle = \bfseries\sffamily
|
|
||||||
,description font = \mdseries
|
|
||||||
,separator sign none
|
|
||||||
,segmentation style={solid, CtpMauve!85!black}
|
|
||||||
}
|
|
||||||
{th}
|
|
||||||
|
|
||||||
|
|
||||||
%================================
|
|
||||||
% LENMA
|
|
||||||
%================================
|
|
||||||
|
|
||||||
\tcbuselibrary{theorems,skins,hooks}
|
|
||||||
\newtcbtheorem[number within=section]{Lenma}{Lenma}
|
|
||||||
{%
|
|
||||||
enhanced,
|
|
||||||
breakable,
|
|
||||||
colback = CtpSurface0,
|
|
||||||
colupper = CtpText,
|
|
||||||
frame hidden,
|
|
||||||
boxrule = 0sp,
|
|
||||||
borderline west = {2pt}{0pt}{CtpPeach},
|
|
||||||
sharp corners,
|
|
||||||
detach title,
|
|
||||||
before upper = \tcbtitle\par\smallskip,
|
|
||||||
coltitle = CtpPeach,
|
|
||||||
fonttitle = \bfseries\sffamily,
|
|
||||||
description font = \mdseries,
|
|
||||||
separator sign none,
|
|
||||||
segmentation style={solid, CtpPeach},
|
|
||||||
}
|
|
||||||
{th}
|
|
||||||
|
|
||||||
\tcbuselibrary{theorems,skins,hooks}
|
|
||||||
\newtcbtheorem[number within=chapter]{lenma}{Lenma}
|
|
||||||
{%
|
|
||||||
enhanced,
|
|
||||||
breakable,
|
|
||||||
colback = CtpSurface0,
|
|
||||||
colupper = CtpText,
|
|
||||||
frame hidden,
|
|
||||||
boxrule = 0sp,
|
|
||||||
borderline west = {2pt}{0pt}{CtpPeach},
|
|
||||||
sharp corners,
|
|
||||||
detach title,
|
|
||||||
before upper = \tcbtitle\par\smallskip,
|
|
||||||
coltitle = CtpPeach,
|
|
||||||
fonttitle = \bfseries\sffamily,
|
|
||||||
description font = \mdseries,
|
|
||||||
separator sign none,
|
|
||||||
segmentation style={solid, CtpPeach},
|
|
||||||
}
|
|
||||||
{th}
|
|
||||||
|
|
||||||
|
|
||||||
%================================
|
|
||||||
% PROPOSITION
|
|
||||||
%================================
|
|
||||||
|
|
||||||
\tcbuselibrary{theorems,skins,hooks}
|
|
||||||
\newtcbtheorem[number within=section]{Prop}{\proposaltitle}
|
|
||||||
{%
|
|
||||||
enhanced,
|
|
||||||
breakable,
|
|
||||||
colback = CtpBlue!10,
|
|
||||||
frame hidden,
|
|
||||||
boxrule = 0sp,
|
|
||||||
borderline west = {2pt}{0pt}{CtpBlue},
|
|
||||||
sharp corners,
|
|
||||||
detach title,
|
|
||||||
before upper = \tcbtitle\par\smallskip,
|
|
||||||
coltitle = CtpBlue,
|
|
||||||
fonttitle = \bfseries\sffamily,
|
|
||||||
description font = \mdseries,
|
|
||||||
separator sign none,
|
|
||||||
segmentation style={solid, CtpBlue},
|
|
||||||
}
|
|
||||||
{th}
|
|
||||||
|
|
||||||
\tcbuselibrary{theorems,skins,hooks}
|
|
||||||
\newtcbtheorem[number within=chapter]{prop}{\proposaltitle}
|
|
||||||
{%
|
|
||||||
enhanced,
|
|
||||||
breakable,
|
|
||||||
colback = CtpBlue!10,
|
|
||||||
frame hidden,
|
|
||||||
boxrule = 0sp,
|
|
||||||
borderline west = {2pt}{0pt}{CtpBlue},
|
|
||||||
sharp corners,
|
|
||||||
detach title,
|
|
||||||
before upper = \tcbtitle\par\smallskip,
|
|
||||||
coltitle = CtpBlue,
|
|
||||||
fonttitle = \bfseries\sffamily,
|
|
||||||
description font = \mdseries,
|
|
||||||
separator sign none,
|
|
||||||
segmentation style={solid, CtpBlue},
|
|
||||||
}
|
|
||||||
{th}
|
|
||||||
|
|
||||||
|
|
||||||
%================================
|
|
||||||
% CLAIM
|
|
||||||
%================================
|
|
||||||
|
|
||||||
\tcbuselibrary{theorems,skins,hooks}
|
|
||||||
\newtcbtheorem[number within=section]{claim}{\claimtitle}
|
|
||||||
{%
|
|
||||||
enhanced
|
|
||||||
,breakable
|
|
||||||
,colback = CtpSurface0
|
|
||||||
,colupper = CtpText
|
|
||||||
,frame hidden
|
|
||||||
,boxrule = 0sp
|
|
||||||
,borderline west = {2pt}{0pt}{CtpGreen}
|
|
||||||
,sharp corners
|
|
||||||
,detach title
|
|
||||||
,before upper = \tcbtitle\par\smallskip
|
|
||||||
,coltitle = CtpGreen!85!black
|
|
||||||
,fonttitle = \bfseries\sffamily
|
|
||||||
,description font = \mdseries
|
|
||||||
,separator sign none
|
|
||||||
,segmentation style={solid, CtpGreen!85!black}
|
|
||||||
}
|
|
||||||
{th}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%================================
|
|
||||||
% Exercise
|
|
||||||
%================================
|
|
||||||
|
|
||||||
\tcbuselibrary{theorems,skins,hooks}
|
|
||||||
\newtcbtheorem[number within=section]{Exercise}{\exercisetitle}
|
|
||||||
{%
|
|
||||||
enhanced,
|
|
||||||
breakable,
|
|
||||||
colback = CtpSurface0,
|
|
||||||
colupper = CtpText,
|
|
||||||
frame hidden,
|
|
||||||
boxrule = 0sp,
|
|
||||||
borderline west = {2pt}{0pt}{CtpBlue},
|
|
||||||
sharp corners,
|
|
||||||
detach title,
|
|
||||||
before upper = \tcbtitle\par\smallskip,
|
|
||||||
coltitle = CtpBlue,
|
|
||||||
fonttitle = \bfseries\sffamily,
|
|
||||||
description font = \mdseries,
|
|
||||||
separator sign none,
|
|
||||||
segmentation style={solid, CtpBlue},
|
|
||||||
}
|
|
||||||
{th}
|
|
||||||
|
|
||||||
\tcbuselibrary{theorems,skins,hooks}
|
|
||||||
\newtcbtheorem[number within=chapter]{exercise}{\exercisetitle}
|
|
||||||
{%
|
|
||||||
enhanced,
|
|
||||||
breakable,
|
|
||||||
colback = CtpSurface0,
|
|
||||||
colupper = CtpText,
|
|
||||||
frame hidden,
|
|
||||||
boxrule = 0sp,
|
|
||||||
borderline west = {2pt}{0pt}{CtpBlue},
|
|
||||||
sharp corners,
|
|
||||||
detach title,
|
|
||||||
before upper = \tcbtitle\par\smallskip,
|
|
||||||
coltitle = CtpBlue,
|
|
||||||
fonttitle = \bfseries\sffamily,
|
|
||||||
description font = \mdseries,
|
|
||||||
separator sign none,
|
|
||||||
segmentation style={solid, CtpBlue},
|
|
||||||
}
|
|
||||||
{th}
|
|
||||||
|
|
||||||
%================================
|
|
||||||
% EXAMPLE BOX
|
|
||||||
%================================
|
|
||||||
|
|
||||||
\newtcbtheorem[number within=section]{Example}{\exampletitle}
|
|
||||||
{%
|
|
||||||
colback = CtpSurface0
|
|
||||||
,colupper = CtpText
|
|
||||||
,breakable
|
|
||||||
,colframe = CtpTeal
|
|
||||||
,coltitle = CtpTeal
|
|
||||||
,boxrule = 1pt
|
|
||||||
,sharp corners
|
|
||||||
,detach title
|
|
||||||
,before upper=\tcbtitle\par\smallskip
|
|
||||||
,fonttitle = \bfseries
|
|
||||||
,description font = \mdseries
|
|
||||||
,separator sign none
|
|
||||||
,description delimiters parenthesis
|
|
||||||
}
|
|
||||||
{ex}
|
|
||||||
|
|
||||||
\newtcbtheorem[number within=chapter]{example}{\exampletitle}
|
|
||||||
{%
|
|
||||||
colback = CtpSurface0
|
|
||||||
,colupper = CtpText
|
|
||||||
,breakable
|
|
||||||
,colframe = CtpTeal
|
|
||||||
,coltitle = CtpTeal
|
|
||||||
,boxrule = 1pt
|
|
||||||
,sharp corners
|
|
||||||
,detach title
|
|
||||||
,before upper=\tcbtitle\par\smallskip
|
|
||||||
,fonttitle = \bfseries
|
|
||||||
,description font = \mdseries
|
|
||||||
,separator sign none
|
|
||||||
,description delimiters parenthesis
|
|
||||||
}
|
|
||||||
{ex}
|
|
||||||
|
|
||||||
%================================
|
|
||||||
% DEFINITION BOX
|
|
||||||
%================================
|
|
||||||
|
|
||||||
\newtcbtheorem[number within=section]{Definition}{Definition}{enhanced,
|
|
||||||
before skip=2mm,after skip=2mm, colback=CtpSurface0,colupper=CtpText,colframe=CtpRed!80!CtpText,boxrule=0.5mm,
|
|
||||||
attach boxed title to top left={xshift=1cm,yshift*=1mm-\tcboxedtitleheight}, varwidth boxed title*=-3cm,
|
|
||||||
boxed title style={frame code={
|
|
||||||
\path[fill=CtpRed]
|
|
||||||
([yshift=-1mm,xshift=-1mm]frame.north west)
|
|
||||||
arc[start angle=0,end angle=180,radius=1mm]
|
|
||||||
([yshift=-1mm,xshift=1mm]frame.north east)
|
|
||||||
arc[start angle=180,end angle=0,radius=1mm];
|
|
||||||
\path[left color=CtpRed!60!CtpText,right color=CtpRed!60!CtpText,
|
|
||||||
middle color=CtpRed!80!CtpText]
|
|
||||||
([xshift=-2mm]frame.north west) -- ([xshift=2mm]frame.north east)
|
|
||||||
[rounded corners=1mm]-- ([xshift=1mm,yshift=-1mm]frame.north east)
|
|
||||||
-- (frame.south east) -- (frame.south west)
|
|
||||||
-- ([xshift=-1mm,yshift=-1mm]frame.north west)
|
|
||||||
[sharp corners]-- cycle;
|
|
||||||
},interior engine=empty,
|
|
||||||
},
|
|
||||||
fonttitle=\bfseries,
|
|
||||||
title={#2},#1}{def}
|
|
||||||
\newtcbtheorem[number within=chapter]{definition}{Definition}{enhanced,
|
|
||||||
before skip=2mm,after skip=2mm, colback=CtpRed!5,colframe=CtpRed!80!CtpText,boxrule=0.5mm,
|
|
||||||
attach boxed title to top left={xshift=1cm,yshift*=1mm-\tcboxedtitleheight}, varwidth boxed title*=-3cm,
|
|
||||||
boxed title style={frame code={
|
|
||||||
\path[fill=CtpRed]
|
|
||||||
([yshift=-1mm,xshift=-1mm]frame.north west)
|
|
||||||
arc[start angle=0,end angle=180,radius=1mm]
|
|
||||||
([yshift=-1mm,xshift=1mm]frame.north east)
|
|
||||||
arc[start angle=180,end angle=0,radius=1mm];
|
|
||||||
\path[left color=CtpRed!60!CtpText,right color=CtpRed!60!CtpText,
|
|
||||||
middle color=CtpRed!80!CtpText]
|
|
||||||
([xshift=-2mm]frame.north west) -- ([xshift=2mm]frame.north east)
|
|
||||||
[rounded corners=1mm]-- ([xshift=1mm,yshift=-1mm]frame.north east)
|
|
||||||
-- (frame.south east) -- (frame.south west)
|
|
||||||
-- ([xshift=-1mm,yshift=-1mm]frame.north west)
|
|
||||||
[sharp corners]-- cycle;
|
|
||||||
},interior engine=empty,
|
|
||||||
},
|
|
||||||
fonttitle=\bfseries,
|
|
||||||
title={#2},#1}{def}
|
|
||||||
|
|
||||||
|
|
||||||
%================================
|
|
||||||
% Solution BOX
|
|
||||||
%================================
|
|
||||||
|
|
||||||
\makeatletter
|
|
||||||
\newtcbtheorem{question}{\questiontitle}{enhanced,
|
|
||||||
breakable,
|
|
||||||
colback=CtpSurface0,
|
|
||||||
colupper=CtpText,
|
|
||||||
colframe=CtpSaphire!80!CtpText,
|
|
||||||
attach boxed title to top left={yshift*=-\tcboxedtitleheight},
|
|
||||||
fonttitle=\bfseries,
|
|
||||||
title={#2},
|
|
||||||
boxed title size=title,
|
|
||||||
boxed title style={%
|
|
||||||
sharp corners,
|
|
||||||
rounded corners=northwest,
|
|
||||||
colback=tcbcolframe,
|
|
||||||
boxrule=0pt,
|
|
||||||
},
|
|
||||||
underlay boxed title={%
|
|
||||||
\path[fill=CtpSaphire] (title.south west)--(title.south east)
|
|
||||||
to[out=0, in=180] ([xshift=5mm]title.east)--
|
|
||||||
(title.center-|frame.east)
|
|
||||||
[rounded corners=\kvtcb@arc] |-
|
|
||||||
(frame.north) -| cycle;
|
|
||||||
},
|
|
||||||
#1
|
|
||||||
}{def}
|
|
||||||
\makeatother
|
|
||||||
|
|
||||||
%================================
|
|
||||||
% SOLUTION BOX
|
|
||||||
%================================
|
|
||||||
|
|
||||||
\makeatletter
|
|
||||||
\newtcolorbox{solution}{enhanced,
|
|
||||||
breakable,
|
|
||||||
colback=CtpSurface0,
|
|
||||||
colupper=CtpText,
|
|
||||||
colframe=CtpGreen!80!CtpText,
|
|
||||||
attach boxed title to top left={yshift*=-\tcboxedtitleheight},
|
|
||||||
title=Solution,
|
|
||||||
boxed title size=title,
|
|
||||||
boxed title style={%
|
|
||||||
sharp corners,
|
|
||||||
rounded corners=northwest,
|
|
||||||
colback=tcbcolframe,
|
|
||||||
boxrule=0pt,
|
|
||||||
},
|
|
||||||
underlay boxed title={%
|
|
||||||
\path[fill=CtpGreen] (title.south west)--(title.south east)
|
|
||||||
to[out=0, in=180] ([xshift=5mm]title.east)--
|
|
||||||
(title.center-|frame.east)
|
|
||||||
[rounded corners=\kvtcb@arc] |-
|
|
||||||
(frame.north) -| cycle;
|
|
||||||
},
|
|
||||||
}
|
|
||||||
\makeatother
|
|
||||||
|
|
||||||
%================================
|
|
||||||
% Question BOX
|
|
||||||
%================================
|
|
||||||
|
|
||||||
\makeatletter
|
|
||||||
\newtcbtheorem{qstion}{\questiontitle}{enhanced,
|
|
||||||
breakable,
|
|
||||||
colback=CtpSurface0,
|
|
||||||
colupper=CtpText,
|
|
||||||
colframe=CtpTeal,
|
|
||||||
attach boxed title to top left={yshift*=-\tcboxedtitleheight},
|
|
||||||
fonttitle=\bfseries,
|
|
||||||
title={#2},
|
|
||||||
boxed title size=title,
|
|
||||||
boxed title style={%
|
|
||||||
sharp corners,
|
|
||||||
rounded corners=northwest,
|
|
||||||
colback=tcbcolframe,
|
|
||||||
boxrule=0pt,
|
|
||||||
},
|
|
||||||
underlay boxed title={%
|
|
||||||
\path[fill=CtpTeal] (title.south west)--(title.south east)
|
|
||||||
to[out=0, in=180] ([xshift=5mm]title.east)--
|
|
||||||
(title.center-|frame.east)
|
|
||||||
[rounded corners=\kvtcb@arc] |-
|
|
||||||
(frame.north) -| cycle;
|
|
||||||
},
|
|
||||||
#1
|
|
||||||
}{def}
|
|
||||||
\makeatother
|
|
||||||
|
|
||||||
\newtcbtheorem[number within=chapter]{wconc}{\wrongctitle}{
|
|
||||||
breakable,
|
|
||||||
enhanced,
|
|
||||||
colback=CtpSurface0,
|
|
||||||
colupper=CtpText,
|
|
||||||
colframe=CtpTeal,
|
|
||||||
arc=0pt,
|
|
||||||
outer arc=0pt,
|
|
||||||
fonttitle=\bfseries\sffamily\large,
|
|
||||||
colbacktitle=CtpTeal,
|
|
||||||
attach boxed title to top left={},
|
|
||||||
boxed title style={
|
|
||||||
enhanced,
|
|
||||||
skin=enhancedfirst jigsaw,
|
|
||||||
arc=3pt,
|
|
||||||
bottom=0pt,
|
|
||||||
interior style={fill=CtpTeal}
|
|
||||||
},
|
|
||||||
#1
|
|
||||||
}{def}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%================================
|
|
||||||
% NOTE BOX
|
|
||||||
%================================
|
|
||||||
|
|
||||||
\usetikzlibrary{arrows,calc,shadows.blur}
|
|
||||||
\tcbuselibrary{skins}
|
|
||||||
\newtcolorbox{note}[1][]{%
|
|
||||||
enhanced jigsaw,
|
|
||||||
colback=CtpSurface0,%
|
|
||||||
colframe=CtpSurface1,
|
|
||||||
colupper=CtpText,
|
|
||||||
size=small,
|
|
||||||
boxrule=1pt,
|
|
||||||
title=\textbf{\notetitle},
|
|
||||||
halign title=flush center,
|
|
||||||
coltitle=CtpText,
|
|
||||||
breakable,
|
|
||||||
drop shadow=CtpCrust,
|
|
||||||
attach boxed title to top left={xshift=1cm,yshift=-\tcboxedtitleheight/2,yshifttext=-\tcboxedtitleheight/2},
|
|
||||||
minipage boxed title=2.5cm,
|
|
||||||
boxed title style={%
|
|
||||||
colback=CtpSurface0,
|
|
||||||
colupper=CtpText,
|
|
||||||
size=fbox,
|
|
||||||
boxrule=1pt,
|
|
||||||
boxsep=2pt,
|
|
||||||
underlay={%
|
|
||||||
\coordinate (dotA) at ($(interior.west) + (-0.5pt,0)$);
|
|
||||||
\coordinate (dotB) at ($(interior.east) + (0.5pt,0)$);
|
|
||||||
\begin{scope}
|
|
||||||
\clip (interior.north west) rectangle ([xshift=3ex]interior.east);
|
|
||||||
\filldraw [CtpBase, blur shadow={shadow opacity=60, shadow yshift=-.75ex}, rounded corners=2pt] (interior.north west) rectangle (interior.south east);
|
|
||||||
\end{scope}
|
|
||||||
\begin{scope}[CtpSurface1]
|
|
||||||
\fill (dotA) circle (2pt);
|
|
||||||
\fill (dotB) circle (2pt);
|
|
||||||
\end{scope}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
#1,
|
|
||||||
}
|
|
||||||
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
||||||
% SELF MADE COMMANDS
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
||||||
|
|
||||||
|
|
||||||
\newcommand{\thm}[2]{\begin{Theorem}{#1}{}#2\end{Theorem}}
|
|
||||||
\newcommand{\cor}[2]{\begin{Corollary}{#1}{}#2\end{Corollary}}
|
|
||||||
\newcommand{\mlenma}[2]{\begin{Lenma}{#1}{}#2\end{Lenma}}
|
|
||||||
\newcommand{\mprop}[2]{\begin{Prop}{#1}{}#2\end{Prop}}
|
|
||||||
\newcommand{\clm}[3]{\begin{claim}{#1}{#2}#3\end{claim}}
|
|
||||||
\newcommand{\wc}[2]{\begin{wconc}{#1}{}\setlength{\parindent}{1cm}#2\end{wconc}}
|
|
||||||
\newcommand{\thmcon}[1]{\begin{Theoremcon}{#1}\end{Theoremcon}}
|
|
||||||
\newcommand{\ex}[2]{\begin{Example}{#1}{}#2\end{Example}}
|
|
||||||
\newcommand{\dfn}[2]{\begin{Definition}[colbacktitle=red!75!black]{#1}{}#2\end{Definition}}
|
|
||||||
\newcommand{\dfnc}[2]{\begin{definition}[colbacktitle=red!75!black]{#1}{}#2\end{definition}}
|
|
||||||
\newcommand{\qs}[2]{\begin{question}{#1}{}#2\end{question}}
|
|
||||||
\newcommand{\pf}[2]{\begin{myproof}[#1]#2\end{myproof}}
|
|
||||||
\newcommand{\nt}[1]{\begin{note}#1\end{note}}
|
|
||||||
|
|
||||||
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
|
|
||||||
Wrong Concept \node[shape=circle,draw,inner sep=1pt] (char) {#1};}}
|
|
||||||
\newcommand\getcurrentref[1]{%
|
|
||||||
\ifnumequal{\value{#1}}{0}
|
|
||||||
{??}
|
|
||||||
{\the\value{#1}}%
|
|
||||||
}
|
|
||||||
\newcommand{\getCurrentSectionNumber}{\getcurrentref{section}}
|
|
||||||
\newenvironment{myproof}[1][\proofname]{%
|
|
||||||
\proof[\bfseries #1: ]%
|
|
||||||
}{\endproof}
|
|
||||||
|
|
||||||
\newcommand{\mclm}[2]{\begin{myclaim}[#1]#2\end{myclaim}}
|
|
||||||
\newenvironment{myclaim}[1][\claimname]{\proof[\bfseries #1: ]}{}
|
|
||||||
|
|
||||||
\newcounter{mylabelcounter}
|
|
||||||
|
|
||||||
\makeatletter
|
|
||||||
\newcommand{\setword}[2]{%
|
|
||||||
\phantomsection
|
|
||||||
#1\def\@currentlabel{\unexpanded{#1}}\label{#2}%
|
|
||||||
}
|
|
||||||
\makeatother
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
\tikzset{
|
|
||||||
symbol/.style={
|
|
||||||
draw=none,
|
|
||||||
every to/.append style={
|
|
||||||
edge node={node [sloped, allow upside down, auto=false]{$#1$}}}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
% deliminators
|
|
||||||
\DeclarePairedDelimiter{\abs}{\lvert}{\rvert}
|
|
||||||
\DeclarePairedDelimiter{\norm}{\lVert}{\rVert}
|
|
||||||
|
|
||||||
\DeclarePairedDelimiter{\ceil}{\lceil}{\rceil}
|
|
||||||
\DeclarePairedDelimiter{\floor}{\lfloor}{\rfloor}
|
|
||||||
\DeclarePairedDelimiter{\round}{\lfloor}{\rceil}
|
|
||||||
|
|
||||||
\newsavebox\diffdbox
|
|
||||||
\newcommand{\slantedromand}{{\mathpalette\makesl{d}}}
|
|
||||||
\newcommand{\makesl}[2]{%
|
|
||||||
\begingroup
|
|
||||||
\sbox{\diffdbox}{$\mathsurround=0pt#1\mathrm{#2}$}%
|
|
||||||
\pdfsave
|
|
||||||
\pdfsetmatrix{1 0 0.2 1}%
|
|
||||||
\rlap{\usebox{\diffdbox}}%
|
|
||||||
\pdfrestore
|
|
||||||
\hskip\wd\diffdbox
|
|
||||||
\endgroup
|
|
||||||
}
|
|
||||||
\newcommand{\dd}[1][]{\ensuremath{\mathop{}\!\ifstrempty{#1}{%
|
|
||||||
\slantedromand\@ifnextchar^{\hspace{0.2ex}}{\hspace{0.1ex}}}%
|
|
||||||
{\slantedromand\hspace{0.2ex}^{#1}}}}
|
|
||||||
\ProvideDocumentCommand\dv{o m g}{%
|
|
||||||
\ensuremath{%
|
|
||||||
\IfValueTF{#3}{%
|
|
||||||
\IfNoValueTF{#1}{%
|
|
||||||
\frac{\dd #2}{\dd #3}%
|
|
||||||
}{%
|
|
||||||
\frac{\dd^{#1} #2}{\dd #3^{#1}}%
|
|
||||||
}%
|
|
||||||
}{%
|
|
||||||
\IfNoValueTF{#1}{%
|
|
||||||
\frac{\dd}{\dd #2}%
|
|
||||||
}{%
|
|
||||||
\frac{\dd^{#1}}{\dd #2^{#1}}%
|
|
||||||
}%
|
|
||||||
}%
|
|
||||||
}%
|
|
||||||
}
|
|
||||||
\providecommand*{\pdv}[3][]{\frac{\partial^{#1}#2}{\partial#3^{#1}}}
|
|
||||||
% - others
|
|
||||||
\DeclareMathOperator{\Lap}{\mathcal{L}}
|
|
||||||
\DeclareMathOperator{\Var}{Var} % varience
|
|
||||||
\DeclareMathOperator{\Cov}{Cov} % covarience
|
|
||||||
\DeclareMathOperator{\E}{E} % expected
|
|
||||||
|
|
||||||
% Since the amsthm package isn't loaded
|
|
||||||
|
|
||||||
% I prefer the slanted \leq
|
|
||||||
\let\oldleq\leq % save them in case they're every wanted
|
|
||||||
\let\oldgeq\geq
|
|
||||||
\renewcommand{\leq}{\leqslant}
|
|
||||||
\renewcommand{\geq}{\geqslant}
|
|
||||||
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
||||||
% TABLE OF CONTENTS
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
||||||
|
|
||||||
\usepackage{tikz}
|
|
||||||
\usepackage{titletoc}
|
|
||||||
\contentsmargin{0cm}
|
|
||||||
\titlecontents{chapter}[3.7pc]
|
|
||||||
{\addvspace{30pt}%
|
|
||||||
\begin{tikzpicture}[remember picture, overlay]%
|
|
||||||
\draw[fill=CtpBlue!60,draw=CtpBlue!60] (-7,-.1) rectangle (-0.5,.5);%
|
|
||||||
\pgftext[left,x=-3.5cm,y=0.2cm]{\color{white}\Large\sc\bfseries \chaptertitle\ \thecontentslabel};%
|
|
||||||
\end{tikzpicture}\color{CtpBlue!60}\large\sc\bfseries}%
|
|
||||||
{}
|
|
||||||
{}
|
|
||||||
{\;\titlerule\;\large\sc\bfseries \pagetitle\ \thecontentspage
|
|
||||||
\begin{tikzpicture}[remember picture, overlay]
|
|
||||||
\draw[fill=CtpBlue!60,draw=CtpBlue!60] (2pt,0) rectangle (4,0.1pt);
|
|
||||||
\end{tikzpicture}}%
|
|
||||||
\titlecontents{section}[4.7pc]
|
|
||||||
{\addvspace{2pt}}
|
|
||||||
{\contentslabel[\thecontentslabel]{2pc}}
|
|
||||||
{}
|
|
||||||
{\hfill\small \thecontentspage}
|
|
||||||
[]
|
|
||||||
\titlecontents*{subsection}[3.7pc]
|
|
||||||
{\addvspace{-1pt}\small}
|
|
||||||
{}
|
|
||||||
{}
|
|
||||||
{\ --- \small\thecontentspage}
|
|
||||||
[ \textbullet\ ][]
|
|
||||||
|
|
||||||
\makeatletter
|
|
||||||
\renewcommand{\tableofcontents}{%
|
|
||||||
\chapter*{%
|
|
||||||
\vspace*{-20\p@}%
|
|
||||||
\begin{tikzpicture}[remember picture, overlay]%
|
|
||||||
\pgftext[right,x=15cm,y=0.2cm]{\color{CtpBlue!60}\Huge\sc\bfseries \contentsname};%
|
|
||||||
\draw[fill=CtpBlue!60,draw=CtpBlue!60] (13,-.75) rectangle (20,1);%
|
|
||||||
\clip (13,-.75) rectangle (20,1);
|
|
||||||
\pgftext[right,x=15cm,y=0.2cm]{\color{white}\Huge\sc\bfseries \contentsname};%
|
|
||||||
\end{tikzpicture}}%
|
|
||||||
\@starttoc{toc}}
|
|
||||||
\makeatother
|
|
||||||
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
// TODO: Change Title and Author variables
|
|
||||||
#let papertitle = [Title]
|
|
||||||
#let paperauthor = "Jirayu Ruh"
|
|
||||||
|
|
||||||
// TODO: Change language
|
|
||||||
#let is_german = false
|
|
||||||
|
|
||||||
#set page(
|
|
||||||
paper: "a4",
|
|
||||||
header: {
|
|
||||||
grid(
|
|
||||||
columns: (1fr, 1fr),
|
|
||||||
align(left)[#context document.title], align(right)[#context document.author.at(0)],
|
|
||||||
)
|
|
||||||
line(length: 100%, stroke: 0.5pt)
|
|
||||||
},
|
|
||||||
numbering: "1",
|
|
||||||
margin: (left: 2.5cm, right: 2.5cm, top: 2.5cm, bottom: 2cm),
|
|
||||||
)
|
|
||||||
|
|
||||||
#set text(
|
|
||||||
size: 11pt,
|
|
||||||
lang: if is_german { "de" } else { "en" },
|
|
||||||
region: if is_german { "ch" } else { "us" },
|
|
||||||
)
|
|
||||||
|
|
||||||
#set document(
|
|
||||||
title: papertitle,
|
|
||||||
author: paperauthor,
|
|
||||||
)
|
|
||||||
|
|
||||||
#set par(
|
|
||||||
justify: true,
|
|
||||||
leading: 0.75em,
|
|
||||||
)
|
|
||||||
|
|
||||||
#set heading(numbering: "1.1.1.1.1")
|
|
||||||
|
|
||||||
= #context document.title
|
|
||||||
|
|
||||||
// TODO: Begin Title here
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
// TODO: Change language
|
|
||||||
//ltex: language=de-ch
|
|
||||||
|
|
||||||
#import "../setup.typ": *
|
|
||||||
#import "../preamble.typ": *
|
|
||||||
|
|
||||||
// TODO: Add Lecture Information
|
|
||||||
|
|
||||||
= DISCLAIMER
|
|
||||||
|
|
||||||
Diese Zusammenfassung basiert auf der Vorlesung "" von .
|
|
||||||
|
|
||||||
Ich übernehme keine Haftung für mögliche Fehler in der Zusammenfassung. Bitte beachten Sie, dass diese Zusammenfassung unter Zuhilfenahme von Gemini Notebook erstellt wurde. Obwohl KI ein leistungsstarkes Werkzeug ist, kann sie technische Ungenauigkeiten oder sogenannte „Halluzinationen“ erzeugen. Darüber hinaus habe ich Abschnitte paraphrasiert und eigene Beobachtungen hinzugefügt, was weitere Fehlerquellen darstellen kann.
|
|
||||||
|
|
||||||
*Urheberrecht & Inhaltlicher Hinweis:* Dies ist eine inoffizielle Ressource; sie steht in keiner Verbindung zur ZHAW und wird von dieser nicht unterstützt. Da diese Zusammenfassung mit Hilfe von KI erstellt wurden, kann ich nicht garantieren, dass alle Inhalte ausreichend umformuliert wurden. Einige Abschnitte können den ursprünglichen Präsentationsfolien oder Skripten stark ähneln oder diese direkt zitieren. Alle geistigen Eigentumsrechte am ursprünglichen Kursinhalt verbleiben bei den jeweiligen Autoren der ZHAW.
|
|
||||||
|
|
||||||
*Hinweis für Rechteinhaber:* Dieses Dokument wird ausschliesslich zu Bildungszwecken geteilt. Wenn Sie Rechteinhaber sind und der Aufnahme bestimmter Inhalte widersprechen, kontaktieren Sie mich bitte, und ich werde diese umgehend entfernen.
|
|
||||||
|
|
||||||
Sofern nicht anders angegeben, wurden alle Grafiken persönlich erstellt.
|
|
||||||
|
|
||||||
Fehler können per E-Mail an #link("mailto:ruhjir01@students.zhaw.ch") gemeldet werden.
|
|
||||||
|
|
||||||
Jirayu Ruh
|
|
||||||
|
|
||||||
#datetime.today().display("[day]. [month repr:long] [year]")
|
|
||||||
|
|
||||||
= Credits
|
|
||||||
|
|
||||||
#pagebreak()
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
//ltex: language=de-ch
|
|
||||||
|
|
||||||
#import "setup.typ": *
|
|
||||||
#import "preamble.typ": *
|
|
||||||
|
|
||||||
#show: setup
|
|
||||||
|
|
||||||
#page(numbering: none)[
|
|
||||||
#include "sections/disclaimer.typ"
|
|
||||||
]
|
|
||||||
|
|
||||||
#align(
|
|
||||||
center,
|
|
||||||
[
|
|
||||||
#set par(spacing: 0.4em)
|
|
||||||
#text(
|
|
||||||
size: 11pt,
|
|
||||||
[
|
|
||||||
#context document.title
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
#text(
|
|
||||||
size: 7pt,
|
|
||||||
[
|
|
||||||
von #context paperauthor, Fehler bitte an #context email
|
|
||||||
],
|
|
||||||
)
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
#counter(page).update(1)
|
|
||||||
@@ -1,175 +0,0 @@
|
|||||||
// TODO: Change ltex language
|
|
||||||
//ltex: language=de-ch
|
|
||||||
|
|
||||||
//==============================
|
|
||||||
// VARIABLE IMPORTS
|
|
||||||
//==============================
|
|
||||||
|
|
||||||
#import "setup.typ": *
|
|
||||||
|
|
||||||
//==============================
|
|
||||||
// PACKAGE IMPORTS
|
|
||||||
//==============================
|
|
||||||
|
|
||||||
#import "@preview/catppuccin:1.1.0": catppuccin, flavors
|
|
||||||
#import "@preview/cetz:0.5.2"
|
|
||||||
#import "@preview/cetz-plot:0.1.4"
|
|
||||||
#import "@preview/zap:0.6.0"
|
|
||||||
|
|
||||||
//==============================
|
|
||||||
// COLORS
|
|
||||||
//==============================
|
|
||||||
|
|
||||||
#let flavor = if is_dark_theme {
|
|
||||||
flavors.macchiato
|
|
||||||
} else {
|
|
||||||
flavors.latte
|
|
||||||
}
|
|
||||||
|
|
||||||
#let palette = flavor.colors
|
|
||||||
|
|
||||||
#let CtpRosewater = palette.rosewater.rgb
|
|
||||||
#let CtpFlamingo = palette.flamingo.rgb
|
|
||||||
#let CtpPink = palette.pink.rgb
|
|
||||||
#let CtpMauve = palette.mauve.rgb
|
|
||||||
#let CtpRed = palette.red.rgb
|
|
||||||
#let CtpMaroon = palette.maroon.rgb
|
|
||||||
#let CtpPeach = palette.peach.rgb
|
|
||||||
#let CtpYellow = palette.yellow.rgb
|
|
||||||
#let CtpGreen = palette.green.rgb
|
|
||||||
#let CtpTeal = palette.teal.rgb
|
|
||||||
#let CtpSky = palette.sky.rgb
|
|
||||||
#let CtpSaphire = palette.sapphire.rgb
|
|
||||||
#let CtpBlue = palette.blue.rgb
|
|
||||||
#let CtpLavender = palette.lavender.rgb
|
|
||||||
#let CtpText = palette.text.rgb
|
|
||||||
#let CtpBase = palette.base.rgb
|
|
||||||
#let CtpSurface0 = palette.surface0.rgb
|
|
||||||
|
|
||||||
// TODO: Change MainColor
|
|
||||||
|
|
||||||
#let MainColor = CtpPeach
|
|
||||||
|
|
||||||
|
|
||||||
//==============================
|
|
||||||
// Big Box & Equation Box
|
|
||||||
//==============================
|
|
||||||
|
|
||||||
#let bigbox(body) = align(center)[
|
|
||||||
#block(
|
|
||||||
fill: none,
|
|
||||||
stroke: 5pt + color.mix((MainColor, 20%), (CtpBase, 80%)),
|
|
||||||
inset: 5pt,
|
|
||||||
width: 100% - 5pt,
|
|
||||||
align(left)[#body],
|
|
||||||
)
|
|
||||||
]
|
|
||||||
|
|
||||||
#let smallbox(body) = align(center)[
|
|
||||||
#block(
|
|
||||||
fill: none,
|
|
||||||
stroke: 1pt + color.mix((MainColor, 20%), (CtpBase, 80%)),
|
|
||||||
inset: 5pt,
|
|
||||||
width: 100% - 1pt,
|
|
||||||
align(left)[#body],
|
|
||||||
)
|
|
||||||
]
|
|
||||||
|
|
||||||
#let eqbox(body) = box(
|
|
||||||
fill: color.mix((MainColor, 20%), (CtpBase, 80%)),
|
|
||||||
stroke: 2pt + color.mix((MainColor, 40%), (CtpBase, 60%)),
|
|
||||||
inset: 2pt,
|
|
||||||
body,
|
|
||||||
)
|
|
||||||
|
|
||||||
//==============================
|
|
||||||
// SETUP
|
|
||||||
//==============================
|
|
||||||
|
|
||||||
#let setup(body) = {
|
|
||||||
show: catppuccin.with(flavor)
|
|
||||||
|
|
||||||
set columns(gutter: 7pt)
|
|
||||||
|
|
||||||
set page(
|
|
||||||
paper: "a4",
|
|
||||||
flipped: true,
|
|
||||||
columns: 3,
|
|
||||||
fill: if not is_dark_theme {
|
|
||||||
none
|
|
||||||
} else {
|
|
||||||
CtpBase
|
|
||||||
},
|
|
||||||
margin: (left: 0.6cm, right: 0.6cm, top: 0.6cm, bottom: 0.9cm),
|
|
||||||
numbering: "1",
|
|
||||||
)
|
|
||||||
|
|
||||||
set text(
|
|
||||||
size: 8pt,
|
|
||||||
lang: if is_german { "de" } else { "en" },
|
|
||||||
region: if is_german { "ch" } else { "us" },
|
|
||||||
)
|
|
||||||
|
|
||||||
set document(
|
|
||||||
title: papertitle,
|
|
||||||
author: paperauthor,
|
|
||||||
)
|
|
||||||
|
|
||||||
set par(
|
|
||||||
justify: true,
|
|
||||||
leading: 0.75em,
|
|
||||||
)
|
|
||||||
|
|
||||||
show math.equation.where(block: false): it => {
|
|
||||||
set text(top-edge: "bounds", bottom-edge: "bounds")
|
|
||||||
math.display(it)
|
|
||||||
}
|
|
||||||
show math.equation.where(block: true): set block(above: 0.1em, below: 0.1em)
|
|
||||||
|
|
||||||
show heading.where(level: 1): it => {
|
|
||||||
v(-6pt)
|
|
||||||
block(
|
|
||||||
width: 100%,
|
|
||||||
fill: color.mix((MainColor, 60%), (CtpBase, 40%)),
|
|
||||||
inset: (top: 2pt, bottom: 4pt, left: 2pt, right: 2pt),
|
|
||||||
text(
|
|
||||||
fill: CtpText,
|
|
||||||
size: 11pt,
|
|
||||||
weight: "bold",
|
|
||||||
it.body,
|
|
||||||
),
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
show heading.where(level: 2): it => {
|
|
||||||
v(-9pt)
|
|
||||||
block(
|
|
||||||
width: 100%,
|
|
||||||
fill: color.mix((MainColor, 40%), (CtpBase, 60%)),
|
|
||||||
inset: (top: 2pt, bottom: 4pt, left: 2pt, right: 2pt),
|
|
||||||
text(
|
|
||||||
fill: CtpText,
|
|
||||||
size: 8pt,
|
|
||||||
weight: "bold",
|
|
||||||
it.body,
|
|
||||||
),
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
show heading.where(level: 3): it => {
|
|
||||||
v(-9pt)
|
|
||||||
block(
|
|
||||||
width: 100%,
|
|
||||||
fill: color.mix((MainColor, 20%), (CtpBase, 80%)),
|
|
||||||
inset: (top: 2pt, bottom: 4pt, left: 2pt, right: 2pt),
|
|
||||||
text(
|
|
||||||
fill: CtpText,
|
|
||||||
size: 8pt,
|
|
||||||
weight: "bold",
|
|
||||||
it.body,
|
|
||||||
),
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
body
|
|
||||||
}
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
//ltex: language=de-ch
|
|
||||||
|
|
||||||
//==============================
|
|
||||||
// SETUP
|
|
||||||
//==============================
|
|
||||||
|
|
||||||
// TODO: Change Title, Author, and email
|
|
||||||
|
|
||||||
#let papertitle = [Title]
|
|
||||||
#let paperauthor = "J. Ruh"
|
|
||||||
#let email = link("mailto:ruhjir01@students.zhaw.ch")
|
|
||||||
|
|
||||||
// TODO: Change language and theme
|
|
||||||
|
|
||||||
#let is_german = true
|
|
||||||
#let is_dark_theme = false
|
|
||||||
|
|
||||||
#let pic_path = if is_dark_theme { "./fig/dark" } else { "./fig/light" }
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
// TODO: Change language
|
|
||||||
//ltex: language=de-ch
|
|
||||||
|
|
||||||
#import "../setup.typ": *
|
|
||||||
#import "../preamble.typ": *
|
|
||||||
|
|
||||||
= DISCLAIMER
|
|
||||||
|
|
||||||
Diese Notizen basiert auf der Vorlesung "" von .
|
|
||||||
|
|
||||||
Ich übernehme keine Haftung für mögliche Fehler in den Notizen. Bitte beachten Sie, dass diese Notizen unter Zuhilfenahme von Gemini Notebook erstellt wurde. Obwohl KI ein leistungsstarkes Werkzeug ist, kann sie technische Ungenauigkeiten oder sogenannte „Halluzinationen“ erzeugen. Darüber hinaus habe ich Abschnitte paraphrasiert und eigene Beobachtungen hinzugefügt, was weitere Fehlerquellen darstellen kann.
|
|
||||||
|
|
||||||
*Urheberrecht & Inhaltlicher Hinweis:* Dies ist eine inoffizielle Ressource; sie steht in keiner Verbindung zur ZHAW und wird von dieser nicht unterstützt. Da diese Notizen mit Hilfe von KI erstellt wurden, kann ich nicht garantieren, dass alle Inhalte ausreichend umformuliert wurden. Einige Abschnitte können den ursprünglichen Präsentationsfolien oder Skripten stark ähneln oder diese direkt zitieren. Alle geistigen Eigentumsrechte am ursprünglichen Kursinhalt verbleiben bei den jeweiligen Autoren der ZHAW.
|
|
||||||
|
|
||||||
*Hinweis für Rechteinhaber:* Dieses Dokument wird ausschliesslich zu Bildungszwecken geteilt. Wenn Sie Rechteinhaber sind und der Aufnahme bestimmter Inhalte widersprechen, kontaktieren Sie mich bitte, und ich werde diese umgehend entfernen.
|
|
||||||
|
|
||||||
Sofern nicht anders angegeben, wurden alle Grafiken persönlich erstellt.
|
|
||||||
|
|
||||||
Fehler können per E-Mail an #link("mailto:ruhjir01@students.zhaw.ch") gemeldet werden.
|
|
||||||
|
|
||||||
Jirayu Ruh
|
|
||||||
|
|
||||||
= Credits
|
|
||||||
|
|
||||||
#pagebreak()
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
#import "setup.typ": *
|
|
||||||
#import "preamble.typ": *
|
|
||||||
|
|
||||||
#show: setup
|
|
||||||
|
|
||||||
#page(header: none, footer: none)[
|
|
||||||
#set align(center)
|
|
||||||
#title[#context document.title]
|
|
||||||
#v(2cm)
|
|
||||||
#text(size: 14pt, weight: "bold")[
|
|
||||||
#context paperauthor
|
|
||||||
]
|
|
||||||
#v(0.5cm)
|
|
||||||
#text(size: 14pt, weight: "bold")[
|
|
||||||
#context paperdate
|
|
||||||
]
|
|
||||||
]
|
|
||||||
|
|
||||||
#page(numbering: none)[
|
|
||||||
#include "sections/disclaimer.typ"
|
|
||||||
]
|
|
||||||
|
|
||||||
#set page(numbering: "i")
|
|
||||||
#counter(page).update(1)
|
|
||||||
#customtoc()
|
|
||||||
#pagebreak()
|
|
||||||
|
|
||||||
|
|
||||||
#set page(numbering: "1")
|
|
||||||
#counter(page).update(1)
|
|
||||||
|
|
||||||
@@ -1,771 +0,0 @@
|
|||||||
// TODO: Change ltex language
|
|
||||||
//ltex: language=de-ch
|
|
||||||
|
|
||||||
//==============================
|
|
||||||
// VARIABLE IMPORTS
|
|
||||||
//==============================
|
|
||||||
|
|
||||||
#import "setup.typ": *
|
|
||||||
|
|
||||||
//==============================
|
|
||||||
// PACKAGE IMPORTS
|
|
||||||
//==============================
|
|
||||||
|
|
||||||
#import "@preview/catppuccin:1.1.0": catppuccin, flavors
|
|
||||||
#import "@preview/cetz:0.5.2"
|
|
||||||
|
|
||||||
//==============================
|
|
||||||
// COLORS
|
|
||||||
//==============================
|
|
||||||
|
|
||||||
#let flavor = if is_dark_theme {
|
|
||||||
flavors.macchiato
|
|
||||||
} else {
|
|
||||||
flavors.latte
|
|
||||||
}
|
|
||||||
|
|
||||||
#let palette = flavor.colors
|
|
||||||
|
|
||||||
#let CtpRosewater = palette.rosewater.rgb
|
|
||||||
#let CtpFlamingo = palette.flamingo.rgb
|
|
||||||
#let CtpPink = palette.pink.rgb
|
|
||||||
#let CtpMauve = palette.mauve.rgb
|
|
||||||
#let CtpRed = palette.red.rgb
|
|
||||||
#let CtpMaroon = palette.maroon.rgb
|
|
||||||
#let CtpPeach = palette.peach.rgb
|
|
||||||
#let CtpYellow = palette.yellow.rgb
|
|
||||||
#let CtpGreen = palette.green.rgb
|
|
||||||
#let CtpTeal = palette.teal.rgb
|
|
||||||
#let CtpSky = palette.sky.rgb
|
|
||||||
#let CtpSaphire = palette.sapphire.rgb
|
|
||||||
#let CtpBlue = palette.blue.rgb
|
|
||||||
#let CtpLavender = palette.lavender.rgb
|
|
||||||
#let CtpText = palette.text.rgb
|
|
||||||
#let CtpBase = palette.base.rgb
|
|
||||||
#let CtpSurface0 = palette.surface0.rgb
|
|
||||||
|
|
||||||
// TODO: Define MainColor
|
|
||||||
|
|
||||||
// #let MainColor =
|
|
||||||
|
|
||||||
//==============================
|
|
||||||
// COUNTERS
|
|
||||||
//==============================
|
|
||||||
|
|
||||||
#let def-counter = counter("definition")
|
|
||||||
#let thm-counter = counter("theorem")
|
|
||||||
#let cor-counter = counter("corollary")
|
|
||||||
#let lem-counter = counter("lemma")
|
|
||||||
#let prop-counter = counter("proposition")
|
|
||||||
#let claim-counter = counter("claim")
|
|
||||||
#let q-counter = counter("question")
|
|
||||||
#let exe-counter = counter("exercise")
|
|
||||||
#let exa-counter = counter("example")
|
|
||||||
|
|
||||||
//==============================
|
|
||||||
// CUSTOM TOC
|
|
||||||
//==============================
|
|
||||||
|
|
||||||
#let customtoc() = {
|
|
||||||
set page(numbering: none, header: none, footer: none)
|
|
||||||
set par(spacing: 0em)
|
|
||||||
|
|
||||||
layout(size => {
|
|
||||||
let text-size = 25pt
|
|
||||||
let box-height = 1.75cm
|
|
||||||
|
|
||||||
let blue-bg-width = 8cm
|
|
||||||
let right-margin = 2.5cm
|
|
||||||
|
|
||||||
let box-left-edge = (size.width - blue-bg-width) + right-margin
|
|
||||||
|
|
||||||
let shift = 0cm
|
|
||||||
if is_german { shift = 4cm } else { shift = 2cm }
|
|
||||||
let text-dx = box-left-edge - shift
|
|
||||||
|
|
||||||
let title-text(fill-color) = text(
|
|
||||||
size: text-size,
|
|
||||||
weight: "bold",
|
|
||||||
font: "Libertinus Serif",
|
|
||||||
fill: fill-color,
|
|
||||||
)[#toctitle]
|
|
||||||
|
|
||||||
box(width: 100%, height: box-height)[
|
|
||||||
#place(left + horizon, dx: text-dx, title-text(CtpBlue.lighten(40%)))
|
|
||||||
|
|
||||||
#place(right, dx: right-margin, box(
|
|
||||||
width: blue-bg-width,
|
|
||||||
height: 100%,
|
|
||||||
fill: CtpBlue.lighten(40%),
|
|
||||||
clip: true,
|
|
||||||
radius: (left: 2pt),
|
|
||||||
{
|
|
||||||
let relative-dx = text-dx - box-left-edge
|
|
||||||
place(left + horizon, dx: relative-dx, title-text(white))
|
|
||||||
},
|
|
||||||
))
|
|
||||||
]
|
|
||||||
})
|
|
||||||
|
|
||||||
v(1cm)
|
|
||||||
|
|
||||||
context {
|
|
||||||
let headings = query(heading.where(outlined: true))
|
|
||||||
|
|
||||||
for (i, head) in headings.enumerate() {
|
|
||||||
let parent_l2 = headings.slice(0, i + 1).rev().find(h => h.level == 2)
|
|
||||||
|
|
||||||
let ghost_spacing_section = if parent_l2 != none and parent_l2.numbering != none {
|
|
||||||
hide(box(inset: (x: 5pt, y: 6pt), radius: 1pt)[
|
|
||||||
#text(weight: "bold", size: 13pt)[
|
|
||||||
#chaptertitle
|
|
||||||
#let nums = counter(heading).at(parent_l2.location())
|
|
||||||
#if nums.len() > 1 { numbering("1.1", ..nums.slice(1)) } else { numbering(parent_l2.numbering, ..nums) }
|
|
||||||
]
|
|
||||||
])
|
|
||||||
h(0.8em)
|
|
||||||
} else { none }
|
|
||||||
|
|
||||||
let ghost_spacing_sub = if parent_l2 != none and parent_l2.numbering != none {
|
|
||||||
hide(box(inset: (x: 5pt, y: 3pt), radius: 1pt)[
|
|
||||||
#text(weight: "bold", size: 13pt)[
|
|
||||||
#chaptertitle
|
|
||||||
#let nums = counter(heading).at(parent_l2.location())
|
|
||||||
#if nums.len() > 1 { numbering("1.1", ..nums.slice(1)) } else { numbering(parent_l2.numbering, ..nums) }
|
|
||||||
]
|
|
||||||
])
|
|
||||||
h(0.8em)
|
|
||||||
} else { none }
|
|
||||||
|
|
||||||
if head.level == 1 {
|
|
||||||
link(head.location())[
|
|
||||||
#block(width: 100%, inset: (top: 20pt, bottom: 15pt))[
|
|
||||||
#text(size: 16pt, weight: "bold", fill: CtpBlue)[
|
|
||||||
#if head.numbering != none [
|
|
||||||
#numbering(head.numbering, ..counter(heading).at(head.location()))
|
|
||||||
#h(1.5em)
|
|
||||||
]
|
|
||||||
#head.body
|
|
||||||
]
|
|
||||||
#h(1fr)
|
|
||||||
#text(size: 16pt, weight: "bold", fill: CtpText)[#head.location().page()]
|
|
||||||
]
|
|
||||||
]
|
|
||||||
} else if head.level == 2 {
|
|
||||||
link(head.location())[
|
|
||||||
#block(width: 100%)[
|
|
||||||
#box(width: 100%)[
|
|
||||||
#set align(horizon)
|
|
||||||
#box(fill: CtpBlue.lighten(40%), inset: (x: 5pt, y: 0pt), outset: (y: 6pt), radius: 1pt)[
|
|
||||||
#text(fill: white, weight: "bold", size: 13pt)[
|
|
||||||
#chaptertitle
|
|
||||||
#let nums = counter(heading).at(head.location())
|
|
||||||
#if nums.len() > 1 { numbering("1.1", ..nums.slice(1)) } else { numbering(head.numbering, ..nums) }
|
|
||||||
]
|
|
||||||
]
|
|
||||||
#h(0.8em)
|
|
||||||
#text(fill: CtpBlue, size: 13pt)[#head.body]
|
|
||||||
#h(0.5em)
|
|
||||||
#box(width: 1fr, height: 7pt, align(bottom, line(
|
|
||||||
length: 100%,
|
|
||||||
stroke: 0.3pt + CtpText,
|
|
||||||
)))
|
|
||||||
#h(0.5em)
|
|
||||||
#box(
|
|
||||||
text(fill: CtpText, size: 13pt)[
|
|
||||||
#pagetitle
|
|
||||||
#head.location().page()
|
|
||||||
],
|
|
||||||
)
|
|
||||||
#let right-margin = 2.54cm
|
|
||||||
#place(
|
|
||||||
right,
|
|
||||||
dx: right-margin,
|
|
||||||
box(
|
|
||||||
width: right-margin - 0.5em,
|
|
||||||
height: 0pt,
|
|
||||||
align(bottom, line(
|
|
||||||
length: 100%,
|
|
||||||
stroke: 0.3pt + CtpText,
|
|
||||||
)),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
]
|
|
||||||
]
|
|
||||||
]
|
|
||||||
} else if head.level == 3 {
|
|
||||||
link(head.location())[
|
|
||||||
#block(width: 100%)[
|
|
||||||
#box(width: 100%)[
|
|
||||||
#set align(horizon)
|
|
||||||
#ghost_spacing_section
|
|
||||||
#text(fill: CtpText, size: 10.5pt)[
|
|
||||||
#if head.numbering != none [
|
|
||||||
#let nums = counter(heading).at(head.location())
|
|
||||||
#if nums.len() > 1 { numbering("1.1", ..nums.slice(1)) } else { numbering(head.numbering, ..nums) }
|
|
||||||
#h(0.8em)
|
|
||||||
]
|
|
||||||
]
|
|
||||||
#text(fill: CtpBlue, size: 10.5pt)[#head.body]
|
|
||||||
#h(1fr)
|
|
||||||
#text(fill: CtpText, size: 10.5pt)[
|
|
||||||
#head.location().page()
|
|
||||||
]
|
|
||||||
]
|
|
||||||
]
|
|
||||||
]
|
|
||||||
} else if head.level == 4 {
|
|
||||||
let is_first = i == 0 or headings.at(i - 1).level != 4
|
|
||||||
let is_last = i == headings.len() - 1 or headings.at(i + 1).level != 4
|
|
||||||
if is_first {
|
|
||||||
ghost_spacing_sub
|
|
||||||
}
|
|
||||||
link(head.location())[
|
|
||||||
#text(fill: CtpBlue, size: 10pt)[
|
|
||||||
#head.body
|
|
||||||
]
|
|
||||||
#text(fill: CtpText, size: 10pt)[
|
|
||||||
--- #head.location().page()
|
|
||||||
]
|
|
||||||
]
|
|
||||||
if not is_last {
|
|
||||||
text(fill: CtpText.lighten(20%), size: 10pt)[
|
|
||||||
#h(0.5em) • #h(0.5em)
|
|
||||||
]
|
|
||||||
} else {
|
|
||||||
parbreak()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//==============================
|
|
||||||
// BOXES
|
|
||||||
//==============================
|
|
||||||
|
|
||||||
//------------------------------
|
|
||||||
// DEFINITION
|
|
||||||
//------------------------------
|
|
||||||
|
|
||||||
#let definition(title, body) = {
|
|
||||||
let border-color = color.mix((CtpRed, 80%), (CtpText, 20%))
|
|
||||||
let bg-color = CtpSurface0
|
|
||||||
|
|
||||||
let badge-edge = color.mix((CtpRed, 60%), (CtpText, 40%))
|
|
||||||
let badge-mid = color.mix((CtpRed, 80%), (CtpText, 20%))
|
|
||||||
let badge-bg = gradient.linear(badge-edge, badge-mid, badge-edge)
|
|
||||||
|
|
||||||
block(width: 100%, breakable: false)[
|
|
||||||
#v(16pt)
|
|
||||||
#def-counter.step()
|
|
||||||
|
|
||||||
#block(
|
|
||||||
width: 100%,
|
|
||||||
fill: bg-color,
|
|
||||||
stroke: 1.5pt + border-color,
|
|
||||||
radius: 5pt,
|
|
||||||
inset: (top: 24pt, bottom: 15pt, left: 15pt, right: 15pt),
|
|
||||||
)[
|
|
||||||
#set text(fill: CtpText)
|
|
||||||
#body
|
|
||||||
]
|
|
||||||
|
|
||||||
#place(
|
|
||||||
top + left,
|
|
||||||
dx: 25pt,
|
|
||||||
dy: 4pt,
|
|
||||||
box(fill: badge-bg, inset: (x: 12pt, y: 6pt), radius: 4pt)[
|
|
||||||
#text(fill: white, weight: "bold", size: 11pt)[
|
|
||||||
#context {
|
|
||||||
let h-nums = counter(heading).get().slice(0, 2)
|
|
||||||
let all-nums = h-nums + def-counter.get()
|
|
||||||
let numbering-string = all-nums.map(str).join(".")
|
|
||||||
[Definition #numbering-string: #title]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
],
|
|
||||||
)
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
//------------------------------
|
|
||||||
// THEOREM
|
|
||||||
//------------------------------
|
|
||||||
|
|
||||||
#let theorem(body) = {
|
|
||||||
let border-color = CtpLavender
|
|
||||||
let bg-color = CtpSurface0
|
|
||||||
let text-color = CtpText
|
|
||||||
|
|
||||||
block(
|
|
||||||
width: 100%,
|
|
||||||
fill: bg-color,
|
|
||||||
stroke: (left: 4pt + border-color),
|
|
||||||
inset: (top: 12pt, bottom: 12pt, left: 16pt, right: 12pt),
|
|
||||||
breakable: true,
|
|
||||||
)[
|
|
||||||
#thm-counter.step()
|
|
||||||
|
|
||||||
#context {
|
|
||||||
let h-nums = counter(heading).get().slice(0, 2)
|
|
||||||
let all-nums = h-nums + thm-counter.get()
|
|
||||||
let numbering-string = all-nums.map(str).join(".")
|
|
||||||
|
|
||||||
text(fill: border-color, weight: "bold", size: 11pt)[
|
|
||||||
#theorytitle #numbering-string
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
#v(0.5em, weak: true)
|
|
||||||
|
|
||||||
#set text(fill: text-color)
|
|
||||||
#body
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
//------------------------------
|
|
||||||
// COROLLARY
|
|
||||||
//------------------------------
|
|
||||||
|
|
||||||
#let corollary(body) = {
|
|
||||||
let border-color = CtpMauve
|
|
||||||
let bg-color = CtpSurface0
|
|
||||||
let text-color = CtpText
|
|
||||||
|
|
||||||
block(
|
|
||||||
width: 100%,
|
|
||||||
fill: bg-color,
|
|
||||||
stroke: (left: 4pt + border-color),
|
|
||||||
inset: (top: 12pt, bottom: 12pt, left: 16pt, right: 12pt),
|
|
||||||
breakable: true,
|
|
||||||
)[
|
|
||||||
#cor-counter.step()
|
|
||||||
#context {
|
|
||||||
let h-nums = counter(heading).get().slice(0, 2)
|
|
||||||
let all-nums = h-nums + cor-counter.get()
|
|
||||||
let numbering-string = all-nums.map(str).join(".")
|
|
||||||
|
|
||||||
text(fill: border-color, weight: "bold", size: 11pt)[
|
|
||||||
#corollarytitle #numbering-string
|
|
||||||
]
|
|
||||||
}
|
|
||||||
#v(0.5em, weak: true)
|
|
||||||
#set text(fill: text-color)
|
|
||||||
#body
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
//-----------------------------
|
|
||||||
// LEMMA
|
|
||||||
//-----------------------------
|
|
||||||
|
|
||||||
#let lemma(body) = {
|
|
||||||
let border-color = CtpPeach
|
|
||||||
let bg-color = CtpSurface0
|
|
||||||
let text-color = CtpText
|
|
||||||
|
|
||||||
block(
|
|
||||||
width: 100%,
|
|
||||||
fill: bg-color,
|
|
||||||
stroke: (left: 4pt + border-color),
|
|
||||||
inset: (top: 12pt, bottom: 12pt, left: 16pt, right: 12pt),
|
|
||||||
breakable: true,
|
|
||||||
)[
|
|
||||||
#lem-counter.step()
|
|
||||||
|
|
||||||
#context {
|
|
||||||
let h-nums = counter(heading).get().slice(0, 2)
|
|
||||||
let all-nums = h-nums + lem-counter.get()
|
|
||||||
let numbering-string = all-nums.map(str).join(".")
|
|
||||||
|
|
||||||
text(fill: border-color, weight: "bold", size: 11pt)[
|
|
||||||
Lemma #numbering-string
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
#v(0.5em, weak: true)
|
|
||||||
|
|
||||||
#set text(fill: text-color)
|
|
||||||
#body
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
//------------------------------
|
|
||||||
// PROPOSITION
|
|
||||||
//------------------------------
|
|
||||||
|
|
||||||
#let proposition(body) = {
|
|
||||||
let border-color = CtpSky
|
|
||||||
let bg-color = CtpSurface0
|
|
||||||
let text-color = CtpText
|
|
||||||
|
|
||||||
block(
|
|
||||||
width: 100%,
|
|
||||||
fill: bg-color,
|
|
||||||
stroke: (left: 4pt + border-color),
|
|
||||||
inset: (top: 12pt, bottom: 12pt, left: 16pt, right: 12pt),
|
|
||||||
breakable: true,
|
|
||||||
)[
|
|
||||||
// Step the proposition counter
|
|
||||||
#prop-counter.step()
|
|
||||||
|
|
||||||
// 1. The Dynamic Title
|
|
||||||
#context {
|
|
||||||
// Grab heading numbers up to level 2 and combine with proposition count
|
|
||||||
let h-nums = counter(heading).get().slice(0, 2)
|
|
||||||
let all-nums = h-nums + prop-counter.get()
|
|
||||||
let numbering-string = all-nums.map(str).join(".")
|
|
||||||
|
|
||||||
text(fill: border-color, weight: "bold", size: 11pt)[
|
|
||||||
#proposaltitle #numbering-string
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
// 2. Spacing between title and body
|
|
||||||
#v(0.5em, weak: true)
|
|
||||||
|
|
||||||
// 3. The Body Content
|
|
||||||
#set text(fill: text-color)
|
|
||||||
#body
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
//------------------------------
|
|
||||||
// CLAIM
|
|
||||||
//------------------------------
|
|
||||||
|
|
||||||
#let claim(title, body) = {
|
|
||||||
let border-color = CtpGreen
|
|
||||||
let bg-color = CtpSurface0
|
|
||||||
let text-color = CtpText
|
|
||||||
|
|
||||||
block(
|
|
||||||
width: 100%,
|
|
||||||
fill: bg-color,
|
|
||||||
stroke: (left: 4pt + border-color),
|
|
||||||
inset: (top: 12pt, bottom: 12pt, left: 16pt, right: 12pt),
|
|
||||||
breakable: true,
|
|
||||||
)[
|
|
||||||
#claim-counter.step()
|
|
||||||
|
|
||||||
#context {
|
|
||||||
let h-nums = counter(heading).get().slice(0, 2)
|
|
||||||
let all-nums = h-nums + claim-counter.get()
|
|
||||||
let numbering-string = all-nums.map(str).join(".")
|
|
||||||
|
|
||||||
text(fill: border-color)[
|
|
||||||
#text(weight: "bold", size: 11pt)[#claimtitle #numbering-string]
|
|
||||||
#if title != none [ #text(weight: "regular", size: 11pt)[#title] ]
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
#v(0.5em, weak: true)
|
|
||||||
|
|
||||||
#set text(fill: text-color)
|
|
||||||
#body
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
//------------------------------
|
|
||||||
// EXERCISE
|
|
||||||
//------------------------------
|
|
||||||
|
|
||||||
#let exercise(title, body) = {
|
|
||||||
let border-color = CtpBlue
|
|
||||||
let bg-color = CtpSurface0
|
|
||||||
let text-color = CtpText
|
|
||||||
|
|
||||||
block(
|
|
||||||
width: 100%,
|
|
||||||
fill: bg-color,
|
|
||||||
stroke: (left: 4pt + border-color),
|
|
||||||
inset: (top: 12pt, bottom: 12pt, left: 16pt, right: 12pt),
|
|
||||||
breakable: true,
|
|
||||||
)[
|
|
||||||
#exe-counter.step()
|
|
||||||
|
|
||||||
#context {
|
|
||||||
let h-nums = counter(heading).get().slice(0, 2)
|
|
||||||
let all-nums = h-nums + exe-counter.get()
|
|
||||||
let numbering-string = all-nums.map(str).join(".")
|
|
||||||
|
|
||||||
text(fill: border-color)[
|
|
||||||
#text(weight: "bold", size: 11pt)[Aufgabe #numbering-string]
|
|
||||||
#if title != none [ #text(weight: "regular", size: 11pt)[ #title] ]
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
#v(0.5em, weak: true)
|
|
||||||
|
|
||||||
#set text(fill: text-color)
|
|
||||||
#body
|
|
||||||
]
|
|
||||||
}
|
|
||||||
//------------------------------
|
|
||||||
// EXAMPLE
|
|
||||||
//------------------------------
|
|
||||||
|
|
||||||
#let example(title, body) = {
|
|
||||||
let border-color = CtpTeal
|
|
||||||
let bg-color = CtpSurface0
|
|
||||||
let text-color = CtpText
|
|
||||||
|
|
||||||
block(
|
|
||||||
width: 100%,
|
|
||||||
fill: bg-color,
|
|
||||||
stroke: 1pt + border-color,
|
|
||||||
inset: (top: 12pt, bottom: 12pt, left: 12pt, right: 12pt),
|
|
||||||
breakable: true,
|
|
||||||
)[
|
|
||||||
#exa-counter.step()
|
|
||||||
|
|
||||||
#context {
|
|
||||||
let h-nums = counter(heading).get().slice(0, 2)
|
|
||||||
let all-nums = h-nums + exa-counter.get()
|
|
||||||
let numbering-string = all-nums.map(str).join(".")
|
|
||||||
|
|
||||||
text(fill: border-color)[
|
|
||||||
#text(weight: "bold", size: 11pt)[Example #numbering-string]
|
|
||||||
#if title != none [ #text(weight: "regular", size: 11pt)[ (#title)] ]
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
#v(0.5em, weak: true)
|
|
||||||
|
|
||||||
#set text(fill: text-color)
|
|
||||||
#body
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
//------------------------------
|
|
||||||
// SOLUTION BOX
|
|
||||||
//------------------------------
|
|
||||||
|
|
||||||
#let solution(body) = {
|
|
||||||
block(
|
|
||||||
width: 100%,
|
|
||||||
breakable: true,
|
|
||||||
above: 1.2em,
|
|
||||||
below: 1.2em,
|
|
||||||
)[
|
|
||||||
_*#solutiontitle:*_ #body
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
//------------------------------
|
|
||||||
// QUESTION
|
|
||||||
//------------------------------
|
|
||||||
|
|
||||||
#let question(body) = {
|
|
||||||
let border-color = CtpSaphire
|
|
||||||
let bg-color = CtpSurface0
|
|
||||||
let text-color = CtpText
|
|
||||||
|
|
||||||
block(
|
|
||||||
width: 100%,
|
|
||||||
fill: bg-color,
|
|
||||||
stroke: 2pt + border-color,
|
|
||||||
radius: 4pt,
|
|
||||||
breakable: true,
|
|
||||||
inset: (top: 0pt, bottom: 12pt, left: 12pt, right: 12pt),
|
|
||||||
)[
|
|
||||||
#q-counter.step()
|
|
||||||
|
|
||||||
#place(
|
|
||||||
top + left,
|
|
||||||
dx: -13pt,
|
|
||||||
dy: 0pt,
|
|
||||||
block(
|
|
||||||
fill: border-color,
|
|
||||||
radius: (bottom-right: 12pt, top-left: 4pt),
|
|
||||||
inset: (top: 8pt, bottom: 8pt, left: 14pt, right: 16pt),
|
|
||||||
)[
|
|
||||||
#text(fill: white, weight: "bold", size: 11pt)[
|
|
||||||
#context [
|
|
||||||
#questiontitle #q-counter.display()
|
|
||||||
]
|
|
||||||
]
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
#block(height: 28pt)
|
|
||||||
#set text(fill: text-color)
|
|
||||||
#body
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
//==============================
|
|
||||||
// NOTE
|
|
||||||
//==============================
|
|
||||||
|
|
||||||
#let note(body) = {
|
|
||||||
let border-color = CtpText
|
|
||||||
let bg-color = CtpSurface0
|
|
||||||
let text-color = CtpText
|
|
||||||
|
|
||||||
block(
|
|
||||||
width: 100%,
|
|
||||||
fill: bg-color,
|
|
||||||
stroke: 1pt + border-color,
|
|
||||||
radius: 4pt,
|
|
||||||
breakable: true,
|
|
||||||
above: 2em,
|
|
||||||
inset: (top: 18pt, bottom: 12pt, left: 12pt, right: 12pt),
|
|
||||||
)[
|
|
||||||
#place(
|
|
||||||
top + left,
|
|
||||||
dx: 16pt,
|
|
||||||
dy: -28pt,
|
|
||||||
box(
|
|
||||||
fill: CtpBase,
|
|
||||||
stroke: 1pt + border-color,
|
|
||||||
radius: 4pt,
|
|
||||||
inset: (x: 8pt, y: 4pt),
|
|
||||||
)[
|
|
||||||
#place(left + horizon, dx: -10pt)[
|
|
||||||
#circle(radius: 2pt, fill: border-color)
|
|
||||||
]
|
|
||||||
|
|
||||||
#place(right + horizon, dx: 10pt)[
|
|
||||||
#circle(radius: 2pt, fill: border-color)
|
|
||||||
]
|
|
||||||
|
|
||||||
#text(weight: "bold", size: 11pt)[Note:-]
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
#set text(fill: text-color)
|
|
||||||
#body
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
//==============================
|
|
||||||
// SHORTCODES
|
|
||||||
//==============================
|
|
||||||
|
|
||||||
#let def(title, body) = definition(title, body)
|
|
||||||
#let thm(body) = theorem(body)
|
|
||||||
#let cor(body) = corollary(body)
|
|
||||||
#let lem(body) = lemma(body)
|
|
||||||
#let prop(body) = proposition(body)
|
|
||||||
#let clm(title, body) = claim(title, body)
|
|
||||||
#let exe(title, body) = exercise(title, body)
|
|
||||||
#let qst(body) = question(body)
|
|
||||||
#let exa(title, body) = example(title, body)
|
|
||||||
#let sol(body) = solution(body)
|
|
||||||
#let nt(body) = note(body)
|
|
||||||
|
|
||||||
//==============================
|
|
||||||
// SETUP
|
|
||||||
//==============================
|
|
||||||
|
|
||||||
#let setup(body) = {
|
|
||||||
show: catppuccin.with(flavor)
|
|
||||||
|
|
||||||
set page(
|
|
||||||
paper: "a4",
|
|
||||||
fill: if not is_dark_theme {
|
|
||||||
none
|
|
||||||
} else {
|
|
||||||
CtpBase
|
|
||||||
},
|
|
||||||
numbering: "1",
|
|
||||||
)
|
|
||||||
|
|
||||||
set text(
|
|
||||||
size: 11pt,
|
|
||||||
lang: if is_german { "de" } else { "en" },
|
|
||||||
region: if is_german { "ch" } else { "us" },
|
|
||||||
)
|
|
||||||
|
|
||||||
set document(
|
|
||||||
title: papertitle,
|
|
||||||
author: paperauthor,
|
|
||||||
)
|
|
||||||
|
|
||||||
set par(
|
|
||||||
justify: true,
|
|
||||||
leading: 0.75em,
|
|
||||||
)
|
|
||||||
|
|
||||||
set heading(numbering: "I.1.1.1.1")
|
|
||||||
|
|
||||||
show math.equation.where(block: false): it => {
|
|
||||||
math.display(it)
|
|
||||||
}
|
|
||||||
|
|
||||||
//==============================
|
|
||||||
// REPORT SETUP
|
|
||||||
//==============================
|
|
||||||
|
|
||||||
//------------------------------
|
|
||||||
// PART HEADING
|
|
||||||
//------------------------------
|
|
||||||
|
|
||||||
show heading.where(level: 1): it => {
|
|
||||||
pagebreak(weak: true)
|
|
||||||
|
|
||||||
align(center + horizon)[
|
|
||||||
#text(size: 2.5em, weight: "regular")[
|
|
||||||
Part #counter(heading).display()
|
|
||||||
]
|
|
||||||
#v(0em)
|
|
||||||
#text(size: 2.5em, weight: "regular")[
|
|
||||||
#it.body
|
|
||||||
]
|
|
||||||
]
|
|
||||||
|
|
||||||
pagebreak()
|
|
||||||
}
|
|
||||||
|
|
||||||
//------------------------------
|
|
||||||
// CHAPTER HEADING
|
|
||||||
//------------------------------
|
|
||||||
|
|
||||||
show heading.where(level: 2): it => {
|
|
||||||
def-counter.update(0)
|
|
||||||
thm-counter.update(0)
|
|
||||||
cor-counter.update(0)
|
|
||||||
lem-counter.update(0)
|
|
||||||
prop-counter.update(0)
|
|
||||||
claim-counter.update(0)
|
|
||||||
exe-counter.update(0)
|
|
||||||
exa-counter.update(0)
|
|
||||||
pagebreak(weak: true)
|
|
||||||
v(5em)
|
|
||||||
|
|
||||||
// This block creates the large LaTeX-style header
|
|
||||||
block(width: 100%)[
|
|
||||||
#text(size: 2em, weight: "regular")[
|
|
||||||
Chapter #counter(heading).display((..nums) => str(nums.pos().last()))
|
|
||||||
]
|
|
||||||
#v(0em)
|
|
||||||
#text(size: 2.5em, weight: "regular")[
|
|
||||||
#it.body
|
|
||||||
]
|
|
||||||
]
|
|
||||||
|
|
||||||
v(1.5em)
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//------------------------------
|
|
||||||
// HEADING NUMBERING
|
|
||||||
//------------------------------
|
|
||||||
|
|
||||||
set heading(numbering: (..nums) => {
|
|
||||||
let vals = nums.pos()
|
|
||||||
|
|
||||||
if vals.len() == 1 {
|
|
||||||
numbering("I", ..vals)
|
|
||||||
} else if vals.len() == 2 {
|
|
||||||
numbering("1", ..vals.slice(1))
|
|
||||||
} else {
|
|
||||||
numbering("1.1", ..vals.slice(1))
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
body
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
//==============================
|
|
||||||
// SETUP
|
|
||||||
//==============================
|
|
||||||
|
|
||||||
// TODO: Change papertitle
|
|
||||||
#let papertitle = []
|
|
||||||
#let paperauthor = "J. Ruh"
|
|
||||||
#let email = link("mailto:ruhjir01@students.zhaw.ch")
|
|
||||||
|
|
||||||
// TODO: Change language and theme
|
|
||||||
#let is_german = true
|
|
||||||
#let is_dark_theme = false
|
|
||||||
|
|
||||||
#let pic_path = if is_dark_theme { "./Bilder/dark" } else { "./Bilder/light" }
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
# Get editor completions based on the config schema
|
|
||||||
"$schema" = 'https://starship.rs/config-schema.json'
|
|
||||||
# Minimal left prompt
|
|
||||||
format = """$directory$character"""
|
|
||||||
# Right prompt
|
|
||||||
right_format = """$git_branch$git_commit$git_status$python$c"""
|
|
||||||
|
|
||||||
# Inserts a blank line between shell prompts
|
|
||||||
add_newline = true
|
|
||||||
|
|
||||||
# Replace the '❯' symbol in the prompt with '➜'
|
|
||||||
[character] # The name of the module we are configuring is 'character'
|
|
||||||
success_symbol = '[❯](bold green)' # The 'success_symbol' segment is being set to '➜' with the color 'bold green'
|
|
||||||
|
|
||||||
# Git module
|
|
||||||
[git_branch]
|
|
||||||
format = ' [$symbol$branch(:$remote_branch)]($style)'
|
|
||||||
|
|
||||||
# Disable the package module, hiding it from the prompt completely
|
|
||||||
[package]
|
|
||||||
disabled = false
|
|
||||||
Binary file not shown.
@@ -1 +0,0 @@
|
|||||||
{"binaries":["uv","uvx"],"binary_aliases":{},"cdylibs":[],"cstaticlibs":[],"install_layout":"flat","install_prefix":"/Users/jirayu/.local/bin","modify_path":true,"provider":{"source":"cargo-dist","version":"0.30.1"},"source":{"app_name":"uv","name":"uv","owner":"astral-sh","release_type":"github"},"version":"0.9.7"}
|
|
||||||
@@ -1,98 +0,0 @@
|
|||||||
-- Pull in the wezterm API
|
|
||||||
local wezterm = require("wezterm")
|
|
||||||
|
|
||||||
-- require plugin
|
|
||||||
|
|
||||||
local sessionizer = wezterm.plugin.require("https://github.com/mikkasendke/sessionizer.wezterm")
|
|
||||||
|
|
||||||
-- initialize module vairable
|
|
||||||
|
|
||||||
local module = {}
|
|
||||||
|
|
||||||
local edu_schema = {
|
|
||||||
options = {
|
|
||||||
prompt = "Select a project: ",
|
|
||||||
},
|
|
||||||
"EDU",
|
|
||||||
"default",
|
|
||||||
wezterm.home_dir .. "/Polybox_ETH/",
|
|
||||||
wezterm.home_dir .. "/Nextcloud/Vault/edu/ZHAW/hs26/analysis_I",
|
|
||||||
wezterm.home_dir .. "/Nextcloud/Vault/edu/ZHAW/hs26/digitaltechnik",
|
|
||||||
wezterm.home_dir .. "/Nextcloud/Vault/edu/ZHAW/hs26/elektrizitaetslehre",
|
|
||||||
wezterm.home_dir .. "/Nextcloud/Vault/edu/ZHAW/hs26/informatik_I",
|
|
||||||
wezterm.home_dir .. "/Nextcloud/Vault/edu/ETH/hs26/italian_a2",
|
|
||||||
wezterm.home_dir .. "/Nextcloud/Vault/edu/ZHAW/hs26/lineare_algebra_I",
|
|
||||||
wezterm.home_dir .. "/Nextcloud/Vault/edu/ZHAW/hs26/messtechnik_projekt",
|
|
||||||
wezterm.home_dir .. "/Nextcloud/Vault/edu/ZHAW/hs26/physik_I",
|
|
||||||
wezterm.home_dir .. "/Nextcloud/Vault/edu/ZHAW/hs26/werkstoffe_der_elektrotechnik",
|
|
||||||
wezterm.home_dir .. "/Nextcloud/Vault/edu/ZHAW/hs26/wirtschaft_fuer_ingeneure",
|
|
||||||
sessionizer.FdSearch({ fd_path = "/opt/homebrew/bin/fd", wezterm.home_dir .. "/Projects/EDU" }),
|
|
||||||
}
|
|
||||||
|
|
||||||
local sw_schema = {
|
|
||||||
options = {
|
|
||||||
prompt = "Select a project: ",
|
|
||||||
},
|
|
||||||
"software",
|
|
||||||
"default",
|
|
||||||
{ label = "JirR02", id = wezterm.home_dir .. "/Projects/JirR02" },
|
|
||||||
{ label = "blogwiki", id = wezterm.home_dir .. "/Projects/JR/blogwiki" },
|
|
||||||
sessionizer.FdSearch({ fd_path = "/opt/homebrew/bin/fd", wezterm.home_dir .. "/Projects/JR/sw" }),
|
|
||||||
sessionizer.FdSearch({ fd_path = "/opt/homebrew/bin/fd", wezterm.home_dir .. "/Projects/Private" }),
|
|
||||||
sessionizer.FdSearch({ fd_path = "/opt/homebrew/bin/fd", wezterm.home_dir .. "~/Projects/Public" }),
|
|
||||||
}
|
|
||||||
|
|
||||||
local hw_schema = {
|
|
||||||
options = {
|
|
||||||
prompt = "Select a project: ",
|
|
||||||
},
|
|
||||||
"hardware",
|
|
||||||
"default",
|
|
||||||
wezterm.home_dir .. "/Nextcloud/Vault/maker_space",
|
|
||||||
sessionizer.FdSearch({ fd_path = "/opt/homebrew/bin/fd", wezterm.home_dir .. "/Projects/JR/hw" }),
|
|
||||||
}
|
|
||||||
|
|
||||||
local choice = {
|
|
||||||
{ label = "EDU", id = "edu" },
|
|
||||||
{ label = "JR Software", id = "sw" },
|
|
||||||
{ label = "JR Hardware", id = "hw" },
|
|
||||||
}
|
|
||||||
|
|
||||||
-- key map
|
|
||||||
|
|
||||||
module.keys = {
|
|
||||||
{
|
|
||||||
key = "s",
|
|
||||||
mods = "LEADER",
|
|
||||||
action = wezterm.action_callback(function(window, pane)
|
|
||||||
window:perform_action(
|
|
||||||
wezterm.action.InputSelector({
|
|
||||||
title = "Choose Session Category",
|
|
||||||
choices = choice,
|
|
||||||
action = wezterm.action_callback(function(inner_window, inner_pane, id, label)
|
|
||||||
-- If the user escapes/cancels, do nothing
|
|
||||||
if not id then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Select the schema based on the ID chosen
|
|
||||||
local selected_schema
|
|
||||||
if id == "edu" then
|
|
||||||
selected_schema = edu_schema
|
|
||||||
elseif id == "sw" then
|
|
||||||
selected_schema = sw_schema
|
|
||||||
elseif id == "hw" then
|
|
||||||
selected_schema = hw_schema
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Now trigger the actual sessionizer with the sub-schema
|
|
||||||
inner_window:perform_action(sessionizer.show(selected_schema), inner_pane)
|
|
||||||
end),
|
|
||||||
}),
|
|
||||||
pane
|
|
||||||
)
|
|
||||||
end),
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
return module
|
|
||||||
@@ -1,57 +0,0 @@
|
|||||||
local wezterm = require("wezterm")
|
|
||||||
|
|
||||||
-- if you are *NOT* lazy-loading smart-splits.nvim (recommended)
|
|
||||||
local function is_vim(pane)
|
|
||||||
-- this is set by the plugin, and unset on ExitPre in Neovim
|
|
||||||
return pane:get_user_vars().IS_NVIM == "true"
|
|
||||||
end
|
|
||||||
|
|
||||||
-- if you *ARE* lazy-loading smart-splits.nvim (not recommended)
|
|
||||||
-- you have to use this instead, but note that this will not work
|
|
||||||
-- in all cases (e.g. over an SSH connection). Also note that
|
|
||||||
-- `pane:get_foreground_process_name()` can have high and highly variable
|
|
||||||
-- latency, so the other implementation of `is_vim()` will be more
|
|
||||||
-- performant as well.
|
|
||||||
|
|
||||||
local direction_keys = {
|
|
||||||
h = "Left",
|
|
||||||
j = "Down",
|
|
||||||
k = "Up",
|
|
||||||
l = "Right",
|
|
||||||
}
|
|
||||||
|
|
||||||
local function split_nav(resize_or_move, key)
|
|
||||||
return {
|
|
||||||
key = key,
|
|
||||||
mods = resize_or_move == "resize" and "CTRL|SHIFT" or "CTRL",
|
|
||||||
action = wezterm.action_callback(function(win, pane)
|
|
||||||
if is_vim(pane) then
|
|
||||||
-- pass the keys through to vim/nvim
|
|
||||||
win:perform_action({
|
|
||||||
SendKey = { key = key, mods = resize_or_move == "resize" and "CTRL|SHIFT" or "CTRL" },
|
|
||||||
}, pane)
|
|
||||||
else
|
|
||||||
if resize_or_move == "resize" then
|
|
||||||
win:perform_action({ AdjustPaneSize = { direction_keys[key], 3 } }, pane)
|
|
||||||
else
|
|
||||||
win:perform_action({ ActivatePaneDirection = direction_keys[key] }, pane)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end),
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
return {
|
|
||||||
keys = {
|
|
||||||
-- move between split panes
|
|
||||||
split_nav("move", "h"),
|
|
||||||
split_nav("move", "j"),
|
|
||||||
split_nav("move", "k"),
|
|
||||||
split_nav("move", "l"),
|
|
||||||
-- resize panes
|
|
||||||
split_nav("resize", "h"),
|
|
||||||
split_nav("resize", "j"),
|
|
||||||
split_nav("resize", "k"),
|
|
||||||
split_nav("resize", "l"),
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
-- Pull in the wezterm API
|
|
||||||
|
|
||||||
local wezterm = require("wezterm")
|
|
||||||
|
|
||||||
-- require plugin
|
|
||||||
|
|
||||||
local tabline = wezterm.plugin.require("https://github.com/michaelbrusegard/tabline.wez")
|
|
||||||
|
|
||||||
-- initialize module variable
|
|
||||||
|
|
||||||
local module = {}
|
|
||||||
|
|
||||||
-- initialize setup function
|
|
||||||
|
|
||||||
function module.apply_to_config(config)
|
|
||||||
tabline.setup({
|
|
||||||
options = {
|
|
||||||
theme = "Catppuccin Macchiato",
|
|
||||||
section_separators = {
|
|
||||||
left = wezterm.nerdfonts.ple_right_half_circle_thick,
|
|
||||||
right = wezterm.nerdfonts.ple_left_half_circle_thick,
|
|
||||||
},
|
|
||||||
component_separators = {
|
|
||||||
left = wezterm.nerdfonts.ple_left_half_circle_thin,
|
|
||||||
right = wezterm.nerdfonts.ple_left_half_circle_thin,
|
|
||||||
},
|
|
||||||
tab_separators = {
|
|
||||||
left = wezterm.nerdfonts.ple_right_half_circle_thick,
|
|
||||||
right = wezterm.nerdfonts.ple_left_half_circle_thick,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
sections = {
|
|
||||||
tab_active = {
|
|
||||||
"index",
|
|
||||||
":",
|
|
||||||
"tab",
|
|
||||||
},
|
|
||||||
tab_inactive = {
|
|
||||||
"index",
|
|
||||||
":",
|
|
||||||
"tab",
|
|
||||||
},
|
|
||||||
tabline_x = {},
|
|
||||||
tabline_y = {},
|
|
||||||
tabline_z = { "datetime" },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
return module
|
|
||||||
@@ -1,261 +0,0 @@
|
|||||||
-- Pull in the wezterm API
|
|
||||||
local wezterm = require("wezterm")
|
|
||||||
|
|
||||||
-- This will hold the configuration.
|
|
||||||
local config = wezterm.config_builder()
|
|
||||||
|
|
||||||
-- Wezterm plugins
|
|
||||||
|
|
||||||
local sessionizer = require("plugins/sessionizer")
|
|
||||||
local tabline = require("plugins/tabline")
|
|
||||||
local smart_splits = require("plugins/smart_splits")
|
|
||||||
|
|
||||||
-- This will hold the actions
|
|
||||||
|
|
||||||
local actions = wezterm.action
|
|
||||||
|
|
||||||
-- TMUX config
|
|
||||||
|
|
||||||
-- Leader key like in TMUX
|
|
||||||
|
|
||||||
config.leader = { key = "a", mods = "CTRL", timeout_milliseconds = 1000 }
|
|
||||||
|
|
||||||
-- Blinking Cursor Bar
|
|
||||||
|
|
||||||
config.default_cursor_style = "BlinkingBar"
|
|
||||||
|
|
||||||
-- unix socket to enable sessions
|
|
||||||
|
|
||||||
config.unix_domains = {
|
|
||||||
{
|
|
||||||
name = "unix",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
-- general keybindings
|
|
||||||
|
|
||||||
config.keys = {
|
|
||||||
{
|
|
||||||
key = "p",
|
|
||||||
mods = "CTRL",
|
|
||||||
action = wezterm.action.ShowDebugOverlay,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
-- sessionizer
|
|
||||||
key = "s",
|
|
||||||
mods = "LEADER|SHIFT",
|
|
||||||
action = actions.PromptInputLine({
|
|
||||||
description = wezterm.format({
|
|
||||||
{ Attribute = { Intensity = "Bold" } },
|
|
||||||
{ Foreground = { AnsiColor = "Fuchsia" } },
|
|
||||||
{ Text = "Enter name for new workspace" },
|
|
||||||
}),
|
|
||||||
action = wezterm.action_callback(function(window, pane, line)
|
|
||||||
if line then
|
|
||||||
window:perform_action(
|
|
||||||
actions.SwitchToWorkspace({
|
|
||||||
name = line,
|
|
||||||
}),
|
|
||||||
pane
|
|
||||||
)
|
|
||||||
end
|
|
||||||
end),
|
|
||||||
}),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
-- Maximize Pane
|
|
||||||
key = "m",
|
|
||||||
mods = "LEADER",
|
|
||||||
action = actions.TogglePaneZoomState,
|
|
||||||
},
|
|
||||||
-- Split Panes
|
|
||||||
{
|
|
||||||
key = "-",
|
|
||||||
mods = "LEADER",
|
|
||||||
action = actions.SplitVertical,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key = "|",
|
|
||||||
mods = "LEADER",
|
|
||||||
action = actions.SplitHorizontal,
|
|
||||||
},
|
|
||||||
-- Rename Session or Tab
|
|
||||||
{
|
|
||||||
key = ",",
|
|
||||||
mods = "LEADER",
|
|
||||||
action = wezterm.action.PromptInputLine({
|
|
||||||
description = "Enter new workspace name",
|
|
||||||
action = wezterm.action_callback(function(window, pane, line)
|
|
||||||
if line and line ~= "" then
|
|
||||||
window:set_workspace(line)
|
|
||||||
wezterm.notify("Workspace renamed to: " .. line, "WezTerm", { urgency = "normal" })
|
|
||||||
else
|
|
||||||
wezterm.notify("Workspace rename cancelled", "WezTerm", { urgency = "normal" })
|
|
||||||
end
|
|
||||||
end),
|
|
||||||
}),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key = ".",
|
|
||||||
mods = "LEADER",
|
|
||||||
action = wezterm.action.PromptInputLine({
|
|
||||||
description = "Enter new tab title",
|
|
||||||
action = wezterm.action_callback(function(window, pane, line)
|
|
||||||
if line and line ~= "" then
|
|
||||||
pane:tab():set_title(line)
|
|
||||||
wezterm.notify("Tab renamed to: " .. line, "WezTerm", { urgency = "normal" })
|
|
||||||
else
|
|
||||||
wezterm.notify("Tab rename cancelled", "WezTerm", { urgency = "normal" })
|
|
||||||
end
|
|
||||||
end),
|
|
||||||
}),
|
|
||||||
},
|
|
||||||
-- Create and Kill Tab
|
|
||||||
{
|
|
||||||
key = "c",
|
|
||||||
mods = "LEADER",
|
|
||||||
action = actions.SpawnCommandInNewTab,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key = "x",
|
|
||||||
mods = "LEADER",
|
|
||||||
action = wezterm.action_callback(function(window, pane)
|
|
||||||
local tab = pane:tab()
|
|
||||||
if tab then
|
|
||||||
local pane_count = #tab:panes()
|
|
||||||
if pane_count > 1 then
|
|
||||||
window:perform_action(wezterm.action.CloseCurrentPane({ confirm = false }), pane)
|
|
||||||
else
|
|
||||||
window:perform_action(wezterm.action.CloseCurrentTab({ confirm = false }), pane)
|
|
||||||
end
|
|
||||||
else
|
|
||||||
wezterm.notify("No tab found, cannot close", "WezTerm", { urgency = "normal" })
|
|
||||||
end
|
|
||||||
end),
|
|
||||||
},
|
|
||||||
-- Move Tab to index
|
|
||||||
{
|
|
||||||
key = "/",
|
|
||||||
mods = "LEADER",
|
|
||||||
action = wezterm.action.PromptInputLine({
|
|
||||||
description = "Move Tab to Index",
|
|
||||||
action = wezterm.action_callback(function(window, pane, line)
|
|
||||||
if not line or line == "" then
|
|
||||||
wezterm.notify("Tab move cancelled", "WezTerm", { urgency = "normal" })
|
|
||||||
return
|
|
||||||
end
|
|
||||||
local index = tonumber(line)
|
|
||||||
if not index then
|
|
||||||
wezterm.notify("Invalid index: must be a number", "WezTerm", { urgency = "normal" })
|
|
||||||
return
|
|
||||||
end
|
|
||||||
-- Convert 1-based user input to 0-based index
|
|
||||||
index = index - 1
|
|
||||||
local tab_count = #window:mux_window():tabs()
|
|
||||||
if index < 0 or index >= tab_count then
|
|
||||||
wezterm.notify(
|
|
||||||
"Invalid index: must be between 1 and " .. tab_count,
|
|
||||||
"WezTerm",
|
|
||||||
{ urgency = "normal" }
|
|
||||||
)
|
|
||||||
return
|
|
||||||
end
|
|
||||||
window:perform_action(wezterm.action.MoveTab(index), pane)
|
|
||||||
wezterm.notify("Tab moved to index: " .. (index + 1), "WezTerm", { urgency = "normal" })
|
|
||||||
end),
|
|
||||||
}),
|
|
||||||
},
|
|
||||||
-- Move to next and previous Tab
|
|
||||||
{
|
|
||||||
key = "n",
|
|
||||||
mods = "LEADER",
|
|
||||||
action = actions.ActivateTabRelative(1),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key = "p",
|
|
||||||
mods = "LEADER",
|
|
||||||
action = actions.ActivateTabRelative(-1),
|
|
||||||
},
|
|
||||||
-- Vim Mode
|
|
||||||
{
|
|
||||||
key = "[",
|
|
||||||
mods = "LEADER",
|
|
||||||
action = actions.ActivateCopyMode,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key = "y",
|
|
||||||
mods = "LEADER",
|
|
||||||
action = wezterm.action_callback(function(window, pane)
|
|
||||||
-- Get current working directory of the active pane
|
|
||||||
local cwd_uri = pane:get_current_working_dir()
|
|
||||||
local cwd = ""
|
|
||||||
-- Spawn yazi in a new pane/tab/window using the detected CWD
|
|
||||||
window:perform_action(
|
|
||||||
wezterm.action.SpawnCommandInNewTab({
|
|
||||||
args = { "/opt/homebrew/bin/yazi" },
|
|
||||||
}),
|
|
||||||
pane
|
|
||||||
)
|
|
||||||
end),
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Go to Tab with index
|
|
||||||
|
|
||||||
for i = 1, 8 do
|
|
||||||
-- LEADER + number to move to that position
|
|
||||||
table.insert(config.keys, {
|
|
||||||
key = tostring(i),
|
|
||||||
mods = "LEADER",
|
|
||||||
action = actions.ActivateTab(i - 1),
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
-- This causes `wezterm` to act as though it was started as
|
|
||||||
-- `wezterm connect unix` by default, connecting to the unix
|
|
||||||
-- domain on startup.
|
|
||||||
-- If you prefer to connect manually, leave out this line.
|
|
||||||
config.default_gui_startup_args = { "connect", "unix" }
|
|
||||||
|
|
||||||
-- Tabline plugin
|
|
||||||
|
|
||||||
tabline.apply_to_config(config)
|
|
||||||
|
|
||||||
-- Append keys from plugins
|
|
||||||
|
|
||||||
for _, key in ipairs(sessionizer.keys) do
|
|
||||||
table.insert(config.keys, key)
|
|
||||||
end
|
|
||||||
|
|
||||||
for _, key in ipairs(smart_splits.keys) do
|
|
||||||
table.insert(config.keys, key)
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Font Config
|
|
||||||
|
|
||||||
config.font = wezterm.font({
|
|
||||||
family = "JetBrainsMono Nerd Font",
|
|
||||||
assume_emoji_presentation = false,
|
|
||||||
})
|
|
||||||
config.font_size = 13
|
|
||||||
|
|
||||||
-- Color Scheme
|
|
||||||
|
|
||||||
config.color_scheme = "Catppuccin Macchiato"
|
|
||||||
|
|
||||||
-- Window Config
|
|
||||||
|
|
||||||
config.window_decorations = "RESIZE"
|
|
||||||
config.use_fancy_tab_bar = false
|
|
||||||
|
|
||||||
--Key Config
|
|
||||||
|
|
||||||
config.send_composed_key_when_left_alt_is_pressed = true
|
|
||||||
|
|
||||||
--Variables
|
|
||||||
|
|
||||||
config.set_environment_variables = {
|
|
||||||
PATH = os.getenv("PATH"),
|
|
||||||
}
|
|
||||||
|
|
||||||
return config
|
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
set window-title-basename "true"
|
|
||||||
set selection-clipboard "clipboard"
|
|
||||||
|
|
||||||
# Dracula color theme
|
|
||||||
|
|
||||||
set notification-error-bg "#ff5555" # Red
|
|
||||||
set notification-error-fg "#f8f8f2" # Foreground
|
|
||||||
set notification-warning-bg "#ffb86c" # Orange
|
|
||||||
set notification-warning-fg "#44475a" # Selection
|
|
||||||
set notification-bg "#282a36" # Background
|
|
||||||
set notification-fg "#f8f8f2" # Foreground
|
|
||||||
|
|
||||||
set completion-bg "#282a36" # Background
|
|
||||||
set completion-fg "#6272a4" # Comment
|
|
||||||
set completion-group-bg "#282a36" # Background
|
|
||||||
set completion-group-fg "#6272a4" # Comment
|
|
||||||
set completion-highlight-bg "#44475a" # Selection
|
|
||||||
set completion-highlight-fg "#f8f8f2" # Foreground
|
|
||||||
|
|
||||||
set index-bg "#282a36" # Background
|
|
||||||
set index-fg "#f8f8f2" # Foreground
|
|
||||||
set index-active-bg "#44475a" # Current Line
|
|
||||||
set index-active-fg "#f8f8f2" # Foreground
|
|
||||||
|
|
||||||
set inputbar-bg "#282a36" # Background
|
|
||||||
set inputbar-fg "#f8f8f2" # Foreground
|
|
||||||
set statusbar-bg "#282a36" # Background
|
|
||||||
set statusbar-fg "#f8f8f2" # Foreground
|
|
||||||
|
|
||||||
set highlight-color "#ffb86c" # Orange
|
|
||||||
set highlight-active-color "#ff79c6" # Pink
|
|
||||||
|
|
||||||
set default-bg "#282a36" # Background
|
|
||||||
set default-fg "#f8f8f2" # Foreground
|
|
||||||
|
|
||||||
set render-loading true
|
|
||||||
set render-loading-fg "#282a36" # Background
|
|
||||||
set render-loading-bg "#f8f8f2" # Foreground
|
|
||||||
|
|
||||||
set recolor-lightcolor "#282a36" # Background
|
|
||||||
set recolor-darkcolor "#f8f8f2" # Foreground
|
|
||||||
|
|
||||||
set adjust-open width
|
|
||||||
|
|
||||||
# Keymaps
|
|
||||||
|
|
||||||
map r recolor
|
|
||||||
map f adjust_window best-fit
|
|
||||||
map w adjust_window width
|
|
||||||
map p goto
|
|
||||||
-14
@@ -1,14 +0,0 @@
|
|||||||
# Exclude following Files
|
|
||||||
|
|
||||||
.config/raycast
|
|
||||||
.config/macchina/
|
|
||||||
.config/kicad-db-lib/
|
|
||||||
.config/kicad/
|
|
||||||
.config/tmux/plugins/
|
|
||||||
.config/thefuck/
|
|
||||||
.config/opencode
|
|
||||||
|
|
||||||
# Copyright Reasons
|
|
||||||
|
|
||||||
.config/nvim/templates/latex/eth_paper
|
|
||||||
.config/nvim/templates/latex/eth_beamer
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
.git
|
|
||||||
.gitignore
|
|
||||||
.gitmodules
|
|
||||||
desktop.png
|
|
||||||
README.md
|
|
||||||
LICENSE
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
|
||||||
export PATH="$(brew --prefix python)/libexec/bin:$PATH"
|
|
||||||
|
|
||||||
# Created by `pipx` on 2024-11-21 21:29:27
|
|
||||||
export PATH="$PATH:/Users/jirayu/.local/bin"
|
|
||||||
@@ -1,193 +0,0 @@
|
|||||||
########################
|
|
||||||
# Initialize oh-my-zsh #
|
|
||||||
########################
|
|
||||||
export ZSH="$HOME/.oh-my-zsh"
|
|
||||||
|
|
||||||
#####################
|
|
||||||
# oh-my-zsh plugins #
|
|
||||||
#####################
|
|
||||||
plugins=(zsh-autosuggestions sudo zsh-syntax-highlighting)
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
|
||||||
|
|
||||||
######################
|
|
||||||
# User configuration #
|
|
||||||
######################
|
|
||||||
|
|
||||||
export DBUS_SESSION_BUS_ADRESS="unix:path=$DBUS_LAUNCHD_SESSION_BUS_SOCKET"
|
|
||||||
|
|
||||||
##############
|
|
||||||
# on startup #
|
|
||||||
##############
|
|
||||||
|
|
||||||
clear
|
|
||||||
fastfetch
|
|
||||||
|
|
||||||
eval $(thefuck --alias)
|
|
||||||
eval "$(zoxide init --cmd cd zsh)"
|
|
||||||
|
|
||||||
######################
|
|
||||||
# Terminal Shortcuts #
|
|
||||||
######################
|
|
||||||
|
|
||||||
alias srz="source ~/.zshrc"
|
|
||||||
|
|
||||||
alias l="eza --tree --level=2 --color=always --long --git --no-filesize --icons=always --no-time --no-user --no-permissions"
|
|
||||||
|
|
||||||
function ct {
|
|
||||||
clear
|
|
||||||
fastfetch
|
|
||||||
cd
|
|
||||||
}
|
|
||||||
|
|
||||||
function c {
|
|
||||||
clear
|
|
||||||
fastfetch
|
|
||||||
}
|
|
||||||
|
|
||||||
function li () {
|
|
||||||
eza --color=always --long --git --no-filesize --icons=always --no-time --no-user --no-permissions $1
|
|
||||||
}
|
|
||||||
|
|
||||||
function z () {
|
|
||||||
zathura $1 &>/dev/null &
|
|
||||||
}
|
|
||||||
|
|
||||||
function s () {
|
|
||||||
sioyek $1 --new-window --execute-command toggle_presentation_mode toggle_custom_color&>/dev/null &
|
|
||||||
}
|
|
||||||
|
|
||||||
##########
|
|
||||||
# Docker #
|
|
||||||
##########
|
|
||||||
|
|
||||||
function isfestart ()
|
|
||||||
{
|
|
||||||
cp ~/Projects/Private/isfe_exercises/template/Dockerfile .
|
|
||||||
cp ~/Projects/Private/isfe_exercises/template/install.sh .
|
|
||||||
cp ~/Projects/Private/isfe_exercises/template/docker-compose.yml .
|
|
||||||
cp -r ~/Projects/Private/isfe_exercises/template/files .
|
|
||||||
cp -r ~/Projects/Private/isfe_exercises/template/notebooks .
|
|
||||||
mv ex*_notebook.ipynb notebooks
|
|
||||||
docker-compose build --no-cache
|
|
||||||
docker-compose up -d
|
|
||||||
}
|
|
||||||
|
|
||||||
function isfestop ()
|
|
||||||
{
|
|
||||||
docker-compose down
|
|
||||||
mv notebooks/ex*_notebook.ipynb .
|
|
||||||
rm Dockerfile
|
|
||||||
rm install.sh
|
|
||||||
rm docker-compose.yml
|
|
||||||
rm -rf files
|
|
||||||
rm -rf notebooks
|
|
||||||
docker system prune -a
|
|
||||||
}
|
|
||||||
|
|
||||||
function pestart ()
|
|
||||||
{
|
|
||||||
cp ~/Projects/Private/class-hs25/template/Dockerfile .
|
|
||||||
cp ~/Projects/Private/class-hs25/template/docker-compose.yml .
|
|
||||||
docker-compose build --no-cache
|
|
||||||
docker-compose up -d
|
|
||||||
}
|
|
||||||
|
|
||||||
function pestop ()
|
|
||||||
{
|
|
||||||
docker-compose down
|
|
||||||
rm docker-compose.yml
|
|
||||||
rm Dockerfile
|
|
||||||
rm -rf .*
|
|
||||||
docker system prune -a
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#########
|
|
||||||
# Latex #
|
|
||||||
#########
|
|
||||||
|
|
||||||
function theory () {
|
|
||||||
mkdir fig
|
|
||||||
cp ~/.config/nvim/templates/latex/theory/letterfonts.latex .
|
|
||||||
cp ~/.config/nvim/templates/latex/theory/macros.latex .
|
|
||||||
cp ~/.config/nvim/templates/latex/theory/preamble.latex .
|
|
||||||
cp ~/.config/nvim/templates/latex/theory/main.latex .
|
|
||||||
mv main.latex main.tex
|
|
||||||
mv preamble.latex preamble.tex
|
|
||||||
mv macros.latex macros.tex
|
|
||||||
mv letterfonts.latex letterfonts.tex
|
|
||||||
}
|
|
||||||
|
|
||||||
alias Facharbeit="cp ~/Nextcloud/Layouts/Facharbeit/Facharbeit.tex ."
|
|
||||||
|
|
||||||
alias Layout="cp ~/Nextcloud/Layouts/Layout/layout.tex ."
|
|
||||||
|
|
||||||
###########
|
|
||||||
# Prompts #
|
|
||||||
###########
|
|
||||||
|
|
||||||
function PromptAna {
|
|
||||||
local prompt_text='Write a short summary in German of the Presentation to the [] supplementing the summary with content from [] from the Script of my Professor. The Summary should be 3-4 Pages of length beginning with a short overview of the chapter followed up with the relevant information. Put important definitions, concepts and remarks in separate codeblocks of the following format: Defintion: \dfn{Title}{Definition}, concept: \thm{title}{Theorem}, remark: \nt{remark}. Please use LaTeX to write this summary and output your answer in a codeblock. Do not use any numbers to indicate where you got the information from. I will input this chapter to the main file so leave out the preamble as well as the begin document section. In addition, please use normal sections i.e. \section{...} and not \section*{...} and do not numberate the section titles.'
|
|
||||||
printf '%s' "$prompt_text" | pbcopy
|
|
||||||
}
|
|
||||||
|
|
||||||
function PromptInfo {
|
|
||||||
local prompt_text='Write a short summary of the Presentation to the [] supplementing the summary with content to the corresponding presentation of my Professor. The Summary should be 3-4 Pages of length beginning with a short overview of the chapter followed up with the relevant information. Put important definitions, concepts and remarks in separate codeblocks of the following format: Defintion: \dfn{Title}{Definition}, concept: \thm{title}{Theorem}, remark: \nt{remark}. Please use LaTeX to write this summary and output your answer in a codeblock. Do not use any numbers to indicate where you got the information from and do not citate anything from the presentation. Please rewrite the sentences from the presentation. I will input this chapter to the main file so leave out the preamble as well as the begin document section. In addition, please use normal sections i.e. \section{...} and not \section*{...} and do not numberate the section titles.'
|
|
||||||
printf '%s' "$prompt_text" | pbcopy
|
|
||||||
}
|
|
||||||
|
|
||||||
function PromptKoma {
|
|
||||||
local prompt_text='Write a short summary in German of the Presentation to the [] supplementing the summary with content from [] from the Script of my Professor. The Summary should be 3-4 Pages of length beginning with a short overview of the chapter followed up with the relevant information. Put important definitions, concepts and remarks in separate codeblocks of the following format: Defintion: \dfn{Title}{Definition}, concept: \thm{title}{Theorem}, remark: \nt{remark}. Please use LaTeX to write this summary and output your answer in a codeblock. Do not use any numbers to indicate where you got the information from. I will input this chapter to the main file so leave out the preamble as well as the begin document section. In addition, please use normal sections i.e. \section{...} and not \section*{...} and do not numberate the section titles.'
|
|
||||||
printf '%s' "$prompt_text" | pbcopy
|
|
||||||
}
|
|
||||||
|
|
||||||
function PromptNUS {
|
|
||||||
local prompt_text='Write a short summary in German of the Presentation to the [] supplementing the summary with content from [] from the Script of my Professor. The Summary should be 3-4 Pages of length beginning with a short overview of the chapter followed up with the relevant information. Put important definitions, concepts and remarks in separate codeblocks of the following format: Defintion: \dfn{Title}{Definition}, concept: \thm{title}{Theorem}, remark: \nt{remark}. Please use LaTeX to write this summary and output your answer in a codeblock. Do not use any numbers to indicate where you got the information from. I will input this chapter to the main file so leave out the preamble as well as the begin document section. In addition, please use normal sections i.e. \section{...} and not \section*{...} and do not numberate the section titles.'
|
|
||||||
printf '%s' "$prompt_text" | pbcopy
|
|
||||||
}
|
|
||||||
|
|
||||||
function PromptPhysik {
|
|
||||||
local prompt_text='Write a short summary in German of the Presentation to the [] supplementing the summary with content from [] from the "Physics For Scientist and Engineers" Book and the content to the corresponding presentation of my Professor. The Summary should be 3-4 Pages of length beginning with a short overview of the chapter followed up with the relevant information. Put important definitions, concepts and remarks in separate codeblocks of the following format: Defintion: \dfn{Title}{Definition}, concept: \thm{title}{Theorem}, remark: \nt{remark}. Please use LaTeX to write this summary and output your answer in a codeblock. Do not use any numbers to indicate where you got the information from. I will input this chapter to the main file so leave out the preamble as well as the begin document section. In addition, please use normal sections i.e. \section{...} and not \section*{...} and do not numberate the section titles.'
|
|
||||||
printf '%s' "$prompt_text" | pbcopy
|
|
||||||
}
|
|
||||||
|
|
||||||
#######################
|
|
||||||
# Initialize Starship #
|
|
||||||
#######################
|
|
||||||
eval "$(starship init zsh)"
|
|
||||||
export STARSHIP_CONFIG=~/.config/starship/starship.toml
|
|
||||||
|
|
||||||
###############################################
|
|
||||||
# Setup fzf key bindings and fuzzy completion #
|
|
||||||
###############################################
|
|
||||||
eval "$(fzf --zsh)"
|
|
||||||
|
|
||||||
eval "$(/usr/libexec/path_helper)"
|
|
||||||
|
|
||||||
####################
|
|
||||||
# BAT (better cat) #
|
|
||||||
####################
|
|
||||||
export BAT_THEME=Dracula
|
|
||||||
|
|
||||||
###########
|
|
||||||
# Lazygit #
|
|
||||||
###########
|
|
||||||
alias lg="lazygit"
|
|
||||||
|
|
||||||
#######
|
|
||||||
# pip #
|
|
||||||
#######
|
|
||||||
export PATH="$PATH:/Users/jirayu/.local/bin"
|
|
||||||
|
|
||||||
#################
|
|
||||||
# Homebrew path #
|
|
||||||
#################
|
|
||||||
export PATH="$PATH:/opt/homebrew/bin"
|
|
||||||
|
|
||||||
############
|
|
||||||
# opencode #
|
|
||||||
############
|
|
||||||
export PATH=/Users/jirayu/.opencode/bin:$PATH
|
|
||||||
export PATH=$PATH:$HOME/go/bin
|
|
||||||
|
|
||||||
export STM32CubeMX_PATH=/Applications/STMicroelectronics/STM32CubeMX.app/Contents/Resources
|
|
||||||
@@ -156,4 +156,3 @@ Section 8 – Interpretation.
|
|||||||
Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses.
|
Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses.
|
||||||
|
|
||||||
Creative Commons may be contacted at creativecommons.org.
|
Creative Commons may be contacted at creativecommons.org.
|
||||||
|
|
||||||
@@ -1,20 +1,3 @@
|
|||||||
# MY DOTFILES 🚀
|
# dotfiles
|
||||||
|
|
||||||

|
My dotfiles
|
||||||
|
|
||||||
**IMPORTANT: This setup is just a inspiration and a setup I like to use. Do not copy one to one. Use at your own risk.**
|
|
||||||
|
|
||||||
For more detailed information read my wiki page about my setup.
|
|
||||||
|
|
||||||
This setup is inspired by the following People:
|
|
||||||
|
|
||||||
- [josean-dev](https://github.com/josean-dev)
|
|
||||||
- [Dreams of Code / Dreams of Autonomy](https://github.com/elliottminns)
|
|
||||||
- [Distrotube](https://gitlab.com/dwt1)
|
|
||||||
- [DevOps Toolbox / omerxx](https://github.com/omerxx)
|
|
||||||
|
|
||||||
Show them some love! ❤️
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
Made by JirR02 in Switzerland 🇨🇭
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
#!/bin/zsh
|
|
||||||
|
|
||||||
echo "========================"
|
|
||||||
echo " Setup Script "
|
|
||||||
echo "========================"
|
|
||||||
|
|
||||||
# Check if running on macOS or Linux
|
|
||||||
if [[ "$(uname)" == "Darwin" ]]; then
|
|
||||||
OS="macOS"
|
|
||||||
elif [[ "$(uname)" == "Linux" ]]; then
|
|
||||||
OS="Linux"
|
|
||||||
else
|
|
||||||
error "Unsupported OS: $(uname)"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
success "Detected OS: $OS"
|
|
||||||
|
|
||||||
if [[ "$OS" == "macOS" ]]; then
|
|
||||||
echo "==========================="
|
|
||||||
echo " Installing Brew "
|
|
||||||
echo "==========================="
|
|
||||||
|
|
||||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
||||||
|
|
||||||
|
|
||||||
else
|
|
||||||
echo "Maybe someday Linux..."
|
|
||||||
fi
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 8.2 MiB |
Reference in new issue
Block a user