latex: update document and presentation snippet
This commit is contained in:
@@ -2,13 +2,6 @@ PATH=$HOME/.dots/scripts:$HOME/.cargo/bin:$HOME/.ghcup/bin:$HOME/.local/bin:$HOM
|
|||||||
EDITOR=vim
|
EDITOR=vim
|
||||||
VISUAL=vim
|
VISUAL=vim
|
||||||
|
|
||||||
# gnome
|
|
||||||
GTK_IM_MODULE=ibus
|
|
||||||
QT_IM_MODULE=ibus
|
|
||||||
XMODIFIERS=@im=ibus
|
|
||||||
SDL_IM_MODULE=ibus
|
|
||||||
GLFW_IM_MODULE=ibus
|
|
||||||
|
|
||||||
# sway/i3
|
# sway/i3
|
||||||
# fcitx-5 fcitx5-configtool fcitx5-gtk4 fcitx5-qt fcitx5-mozc
|
# fcitx-5 fcitx5-configtool fcitx5-gtk4 fcitx5-qt fcitx5-mozc
|
||||||
# GTK_IM_MODULE=fcitx5
|
# GTK_IM_MODULE=fcitx5
|
||||||
@@ -16,3 +9,10 @@ GLFW_IM_MODULE=ibus
|
|||||||
# SDL_IM_MODULE=fcitx5
|
# SDL_IM_MODULE=fcitx5
|
||||||
# GLFW_IM_MODULE=ibus
|
# GLFW_IM_MODULE=ibus
|
||||||
# XMODIFIERS="@im=fcitx5"
|
# XMODIFIERS="@im=fcitx5"
|
||||||
|
|
||||||
|
# gnome
|
||||||
|
GTK_IM_MODULE=ibus
|
||||||
|
QT_IM_MODULE=ibus
|
||||||
|
XMODIFIERS=@im=ibus
|
||||||
|
SDL_IM_MODULE=ibus
|
||||||
|
GLFW_IM_MODULE=ibus
|
||||||
|
|||||||
@@ -1,46 +1,50 @@
|
|||||||
{
|
{
|
||||||
"notes": {
|
"notes": {
|
||||||
"prefix": "notes",
|
"prefix": "document",
|
||||||
"body": [
|
"body": [
|
||||||
"%%% compile with `latexmk -xelatex -shell-escape DOC.tex`",
|
"% compile with `latexmk -xelatex -shell-escape main.tex`",
|
||||||
|
"% if glossaries are used, run `makeglossaries`",
|
||||||
"",
|
"",
|
||||||
|
"%",
|
||||||
"%%% general article setup",
|
"%%% general article setup",
|
||||||
|
"%",
|
||||||
"\\documentclass{article}[a4paper]",
|
"\\documentclass{article}[a4paper]",
|
||||||
"",
|
"",
|
||||||
"%%% general includes",
|
"%",
|
||||||
|
"%%% includes + their setup",
|
||||||
|
"%",
|
||||||
|
"% use a4 paper",
|
||||||
"\\usepackage{a4wide}",
|
"\\usepackage{a4wide}",
|
||||||
|
"% math typesetting",
|
||||||
"\\usepackage{mathtools}",
|
"\\usepackage{mathtools}",
|
||||||
"\\usepackage{amsthm}",
|
"\\usepackage{amsthm}",
|
||||||
"\\usepackage{amssymb}",
|
"\\usepackage{amssymb}",
|
||||||
"\\usepackage{amsmath}",
|
"\\usepackage{amsmath}",
|
||||||
"\\usepackage{amsfonts}",
|
"\\usepackage{amsfonts}",
|
||||||
|
"% correct hyphons",
|
||||||
"\\usepackage{hyphenat}",
|
"\\usepackage{hyphenat}",
|
||||||
|
"% draw things and color correctly",
|
||||||
"\\usepackage{tikz}",
|
"\\usepackage{tikz}",
|
||||||
"\\usepackage{graphicx}",
|
"\\usepackage{graphicx}",
|
||||||
"\\usepackage{xcolor}",
|
"% import other files",
|
||||||
"\\usepackage{color}",
|
|
||||||
"",
|
|
||||||
"%%% used to \\import{PATH}{FILE}",
|
|
||||||
"\\usepackage{import}",
|
"\\usepackage{import}",
|
||||||
"",
|
"% german names",
|
||||||
"%%% DEUTSCH!",
|
|
||||||
"\\usepackage[ngerman]{babel}",
|
"\\usepackage[ngerman]{babel}",
|
||||||
"",
|
"% lorem impsum",
|
||||||
"%%% lorem ipsum text",
|
|
||||||
"\\usepackage{blindtext}",
|
"\\usepackage{blindtext}",
|
||||||
"",
|
"% figures in text flow",
|
||||||
"%%% figures in text flow",
|
|
||||||
"\\usepackage{wrapfig}",
|
"\\usepackage{wrapfig}",
|
||||||
"",
|
"% everything related to links",
|
||||||
"%%% links in toc etc",
|
|
||||||
"\\usepackage{hyperref}",
|
"\\usepackage{hyperref}",
|
||||||
"",
|
"% listings",
|
||||||
"%%% source code",
|
|
||||||
"\\usepackage{listings}",
|
"\\usepackage{listings}",
|
||||||
"\\usepackage{minted}",
|
"\\usepackage{minted}",
|
||||||
|
"\\usepackage{fontspec}",
|
||||||
|
"\\setmonofont[Scale=0.85]{SFMono Nerd Font}",
|
||||||
|
"\\usepackage{xcolor}",
|
||||||
|
"\\usepackage{color}",
|
||||||
"\\definecolor{bg}{rgb}{0.95, 0.95, 1.0}",
|
"\\definecolor{bg}{rgb}{0.95, 0.95, 1.0}",
|
||||||
"",
|
"% enumerations",
|
||||||
"%%% define own enumeration styles",
|
|
||||||
"% use custom labels with `\\begin{enumerate}[label=$\\bullet$]`",
|
"% use custom labels with `\\begin{enumerate}[label=$\\bullet$]`",
|
||||||
"% \\arabic*) or \\roman*) also work",
|
"% \\arabic*) or \\roman*) also work",
|
||||||
"\\usepackage{enumerate}",
|
"\\usepackage{enumerate}",
|
||||||
@@ -50,43 +54,25 @@
|
|||||||
"\\setlist[enumerate, 1]{label=$\\bullet$}",
|
"\\setlist[enumerate, 1]{label=$\\bullet$}",
|
||||||
"\\setlist[enumerate, 2]{label=$\\bullet$}",
|
"\\setlist[enumerate, 2]{label=$\\bullet$}",
|
||||||
"\\setlist[enumerate, 3]{label=$\\bullet$}",
|
"\\setlist[enumerate, 3]{label=$\\bullet$}",
|
||||||
"",
|
"% newline indentation at beginning",
|
||||||
"%%% cleaner newline indentation",
|
|
||||||
"\\usepackage[parfill]{parskip}",
|
"\\usepackage[parfill]{parskip}",
|
||||||
"",
|
"% break page on new section",
|
||||||
"%%% break page on new section",
|
|
||||||
"\\usepackage{titlesec}",
|
"\\usepackage{titlesec}",
|
||||||
"\\newcommand{\\sectionbreak}{\\clearpage}",
|
"\\newcommand{\\sectionbreak}{\\clearpage}",
|
||||||
"",
|
"% headers and footers",
|
||||||
"%%% remove page numbers (fancyhdr provides its own)",
|
|
||||||
"\\usepackage{nopageno}",
|
|
||||||
"",
|
|
||||||
"%%% fancy headers and footers",
|
|
||||||
"\\usepackage{fancyhdr}",
|
"\\usepackage{fancyhdr}",
|
||||||
"\\pagestyle{headings}",
|
"\\pagestyle{headings}",
|
||||||
"",
|
"\\usepackage{nopageno}",
|
||||||
"%%% theorem-style environments",
|
"% glossary",
|
||||||
"\\usepackage{proof}",
|
|
||||||
"\\theoremstyle{definition}",
|
|
||||||
"\\newtheorem{definition}{Definition}[section]",
|
|
||||||
"\\newtheorem{example}{Beispiel}[section]",
|
|
||||||
"\\newtheorem{algo}{Algorithmus}[section]",
|
|
||||||
"\\newtheorem{theorem}{Satz}[section]",
|
|
||||||
"\\newtheorem*{remark}{Bemerkung}",
|
|
||||||
"",
|
|
||||||
"%%% glossary, use with \\gls{}",
|
|
||||||
"% make sure to run `makeglossaries FILE` to generate the glossary entries",
|
|
||||||
"\\usepackage[toc]{glossaries}",
|
"\\usepackage[toc]{glossaries}",
|
||||||
"",
|
"% quotes",
|
||||||
"%%% bibtex - cite with \\autocite{}, will show in footnote",
|
|
||||||
"\\usepackage{csquotes}",
|
"\\usepackage{csquotes}",
|
||||||
"\\usepackage[style=verbose-trad2]{biblatex}",
|
"% bibtex",
|
||||||
|
"\\usepackage{biblatex}",
|
||||||
"",
|
"",
|
||||||
"%%% set monospace font and decrease size, to match 80c in minted",
|
"%",
|
||||||
"\\usepackage{fontspec}",
|
"%%% document",
|
||||||
"\\setmonofont[Scale=0.85]{SFMono Nerd Font}",
|
"%",
|
||||||
"",
|
|
||||||
"%%% set titlepage",
|
|
||||||
"\\title{ \\\\\\[0.2em] \\large }",
|
"\\title{ \\\\\\[0.2em] \\large }",
|
||||||
"\\author{Marco Thomas}",
|
"\\author{Marco Thomas}",
|
||||||
"\\date{\\today}",
|
"\\date{\\today}",
|
||||||
@@ -96,26 +82,22 @@
|
|||||||
"",
|
"",
|
||||||
"\\begin{document}",
|
"\\begin{document}",
|
||||||
"",
|
"",
|
||||||
"% use with \\gls{nvim}, new entry with snippet nge",
|
|
||||||
"% \\import{.}{glossary.tex}",
|
"% \\import{.}{glossary.tex}",
|
||||||
"",
|
"",
|
||||||
"% create title page with toc",
|
|
||||||
"\\maketitle",
|
"\\maketitle",
|
||||||
"\\newpage",
|
"\\newpage",
|
||||||
"\\tableofcontents",
|
"\\tableofcontents",
|
||||||
"\\newpage",
|
"\\newpage",
|
||||||
"",
|
"",
|
||||||
"% glossary, use with \\gls{TERM}; make sure to run `makeglossaries`",
|
"% 1. Close NVim",
|
||||||
"\\printglossaries",
|
"% 2. `touch .latexmkrc`",
|
||||||
"",
|
|
||||||
"% begin here; don't forget to relaunch nvim",
|
|
||||||
"% and create a .latexmkrc :>",
|
|
||||||
"\\section{}",
|
"\\section{}",
|
||||||
"",
|
"",
|
||||||
"% bibliography, cite with \\autocite{}",
|
"% \\listofigures",
|
||||||
"\\printbibliography[heading=bibintoc,title={Quellenverzeichnis}]",
|
"% \\listotables",
|
||||||
|
"% \\printglossaries",
|
||||||
|
"% \\printbibliography[heading=bibintoc,title={Quellenverzeichnis}]",
|
||||||
"",
|
"",
|
||||||
"% optional appendix",
|
|
||||||
"% \\appendix",
|
"% \\appendix",
|
||||||
"% \\section{optional appendix}",
|
"% \\section{optional appendix}",
|
||||||
"",
|
"",
|
||||||
@@ -126,17 +108,15 @@
|
|||||||
"presentation": {
|
"presentation": {
|
||||||
"prefix": "presentation",
|
"prefix": "presentation",
|
||||||
"body": [
|
"body": [
|
||||||
"%%% compile with `latexmk -xelatex -interaction=nonstop -synctex=1 -shell-escape DOC.tex",
|
"% compile with `latexmk -xelatex -interaction=nonstop -synctex=1 -shell-escape main.tex",
|
||||||
"",
|
"",
|
||||||
"%%% general beamer setup",
|
|
||||||
"\\documentclass[presentation, smaller, aspectratio=169]{beamer}",
|
"\\documentclass[presentation, smaller, aspectratio=169]{beamer}",
|
||||||
"\\usetheme{Singapore}",
|
"\\usetheme{Singapore}",
|
||||||
"\\usecolortheme{rose}",
|
"\\usecolortheme{rose}",
|
||||||
"",
|
|
||||||
"% \\definecolor{accent}{rgb}{0.98047, 0.33203, 0.33203}",
|
"% \\definecolor{accent}{rgb}{0.98047, 0.33203, 0.33203}",
|
||||||
"% \\setbeamercolor{structure}{fg=accent}",
|
"% \\setbeamercolor{structure}{fg=accent}",
|
||||||
"",
|
"",
|
||||||
"%%% page numbers in the bottom right",
|
"% page numbers in the bottom right",
|
||||||
"\\addtobeamertemplate{navigation symbols}{}{%",
|
"\\addtobeamertemplate{navigation symbols}{}{%",
|
||||||
" \\usebeamerfont{footline}%",
|
" \\usebeamerfont{footline}%",
|
||||||
" \\usebeamercolor[fg]{footline}%",
|
" \\usebeamercolor[fg]{footline}%",
|
||||||
@@ -144,7 +124,7 @@
|
|||||||
" \\raisebox{2pt}[0pt][0pt]{\\insertframenumber/\\inserttotalframenumber}",
|
" \\raisebox{2pt}[0pt][0pt]{\\insertframenumber/\\inserttotalframenumber}",
|
||||||
"}",
|
"}",
|
||||||
"",
|
"",
|
||||||
"%%% Show section title",
|
"% Show section title",
|
||||||
"\\AtBeginSection[] {",
|
"\\AtBeginSection[] {",
|
||||||
" \\begin{frame}",
|
" \\begin{frame}",
|
||||||
" \\vfill",
|
" \\vfill",
|
||||||
@@ -156,25 +136,28 @@
|
|||||||
" \\end{frame}",
|
" \\end{frame}",
|
||||||
"}",
|
"}",
|
||||||
"",
|
"",
|
||||||
"%%% DEUTSCH!",
|
"%",
|
||||||
|
"%%% include + their setup",
|
||||||
|
"%",
|
||||||
|
"% german names",
|
||||||
"\\usepackage[ngerman]{babel}",
|
"\\usepackage[ngerman]{babel}",
|
||||||
"",
|
"% math type setting",
|
||||||
"%%% general includes",
|
|
||||||
"\\usepackage{mathtools}",
|
"\\usepackage{mathtools}",
|
||||||
"\\usepackage{amsthm}",
|
"\\usepackage{amsthm}",
|
||||||
"\\usepackage{amssymb}",
|
"\\usepackage{amssymb}",
|
||||||
"\\usepackage{amsmath}",
|
"\\usepackage{amsmath}",
|
||||||
|
"% correct hyphenation",
|
||||||
"\\usepackage{hyphenat}",
|
"\\usepackage{hyphenat}",
|
||||||
|
"% draw things and color correctly",
|
||||||
"\\usepackage{tikz}",
|
"\\usepackage{tikz}",
|
||||||
"\\usepackage{graphicx}",
|
"\\usepackage{graphicx}",
|
||||||
"\\usepackage{color}",
|
"\\usepackage{color}",
|
||||||
"\\usepackage{proof}",
|
"% listings",
|
||||||
"",
|
|
||||||
"%%% source code",
|
|
||||||
"\\usepackage{listings}",
|
"\\usepackage{listings}",
|
||||||
"\\usepackage{minted}",
|
"\\usepackage{minted}",
|
||||||
"",
|
"\\usepackage{fontspec}",
|
||||||
"%%% define own enumeration styles",
|
"\\setmonofont[Scale=0.85]{SFMono Nerd Font}",
|
||||||
|
"% enumerations",
|
||||||
"% use custom labels with `\\begin{enumerate}[label=$\\bullet$]`",
|
"% use custom labels with `\\begin{enumerate}[label=$\\bullet$]`",
|
||||||
"% \\arabic*) or \\roman*) also work",
|
"% \\arabic*) or \\roman*) also work",
|
||||||
"\\usepackage{enumerate}",
|
"\\usepackage{enumerate}",
|
||||||
@@ -185,11 +168,9 @@
|
|||||||
"\\setlist[enumerate, 2]{label=$\\bullet$}",
|
"\\setlist[enumerate, 2]{label=$\\bullet$}",
|
||||||
"\\setlist[enumerate, 3]{label=$\\bullet$}",
|
"\\setlist[enumerate, 3]{label=$\\bullet$}",
|
||||||
"",
|
"",
|
||||||
"%%% set monospace font and decrease size, to match 80c in minted",
|
"%",
|
||||||
"\\usepackage{fontspec}",
|
"%%% document",
|
||||||
"\\setmonofont[Scale=0.85]{SFMono Nerd Font}",
|
"%",
|
||||||
"",
|
|
||||||
"%%% set metadata",
|
|
||||||
"\\title{}",
|
"\\title{}",
|
||||||
"\\subtitle{}",
|
"\\subtitle{}",
|
||||||
"%\\institute{}",
|
"%\\institute{}",
|
||||||
@@ -211,10 +192,10 @@
|
|||||||
"\\end{frame}",
|
"\\end{frame}",
|
||||||
"\\newpage",
|
"\\newpage",
|
||||||
"",
|
"",
|
||||||
"% begin here; don't forget to relaunch nvim",
|
"% 1. Close nvim",
|
||||||
"% and create a .latexmkrc :>",
|
"% 2. `touch .latexmkrc`",
|
||||||
"\\section{}",
|
"\\section{}",
|
||||||
"\\begin{frame}",
|
"\\begin{frame}[fragile]{}",
|
||||||
"\\end{frame}",
|
"\\end{frame}",
|
||||||
"",
|
"",
|
||||||
"\\end{document}"
|
"\\end{document}"
|
||||||
@@ -224,9 +205,6 @@
|
|||||||
"letter": {
|
"letter": {
|
||||||
"prefix": "letter",
|
"prefix": "letter",
|
||||||
"body": [
|
"body": [
|
||||||
"%%% compile with TODO",
|
|
||||||
"",
|
|
||||||
"%%% general letter setup",
|
|
||||||
"\\documentclass[",
|
"\\documentclass[",
|
||||||
" fontsize=12pt,",
|
" fontsize=12pt,",
|
||||||
" parskip=full,",
|
" parskip=full,",
|
||||||
@@ -238,12 +216,12 @@
|
|||||||
" version=last",
|
" version=last",
|
||||||
"]{scrlttr2}",
|
"]{scrlttr2}",
|
||||||
"",
|
"",
|
||||||
"%%% DEUTSCH!",
|
"%",
|
||||||
"\\usepackage[ngerman]{babel}",
|
"%%% includes + their setup",
|
||||||
"",
|
"%",
|
||||||
"%%% general includes",
|
|
||||||
"\\usepackage{pdfpages}",
|
"\\usepackage{pdfpages}",
|
||||||
"\\usepackage[hidelinks]{hyperref}",
|
"\\usepackage[hidelinks]{hyperref}",
|
||||||
|
"\\usepackage[ngerman]{babel}",
|
||||||
"",
|
"",
|
||||||
"\\begin{document}",
|
"\\begin{document}",
|
||||||
"",
|
"",
|
||||||
@@ -265,7 +243,8 @@
|
|||||||
"",
|
"",
|
||||||
"\\opening{Sehr geehrter}",
|
"\\opening{Sehr geehrter}",
|
||||||
"",
|
"",
|
||||||
"% type here; don't forget to relaunch nvim :>",
|
"% 1. Close nvim",
|
||||||
|
"% 2. `touch .latexmkrc`",
|
||||||
"",
|
"",
|
||||||
"\\closing{mit freundlichen Grüßen}",
|
"\\closing{mit freundlichen Grüßen}",
|
||||||
"",
|
"",
|
||||||
|
|||||||
Reference in New Issue
Block a user