From 581930e793439015dd2f7715262a0ed84f9107ab Mon Sep 17 00:00:00 2001 From: EvilMuffinHa Date: Sun, 4 Dec 2022 23:37:31 -0500 Subject: [PATCH] ye --- nvim/ultisnips/tex.snippets | 8 +++++++- tex/handout.cls | 6 ++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/nvim/ultisnips/tex.snippets b/nvim/ultisnips/tex.snippets index 3927077..2cff66e 100644 --- a/nvim/ultisnips/tex.snippets +++ b/nvim/ultisnips/tex.snippets @@ -101,6 +101,12 @@ snippet definition "Definition" bA \end{definition} $0 endsnippet +snippet example "Example" bA +\begin{eg}[$1] + $2 +\end{eg} $0 +endsnippet + # Math snippet sm "Math" wA @@ -739,7 +745,7 @@ else: `$2 endsnippet -snippet sc "Inline Code" wA +snippet ssc "Inline Code" wA \inlinecode{${1}}{${2}}`!p if t[2] and t[2][0] not in [',', '.', '?', '-', ' ']: snip.rv = ' ' diff --git a/tex/handout.cls b/tex/handout.cls index 9707314..6c9e4b3 100644 --- a/tex/handout.cls +++ b/tex/handout.cls @@ -36,6 +36,7 @@ \RequirePackage{tikz} \RequirePackage{tikz-cd} \RequirePackage{pgfplots} +\RequirePackage{parskip} \pgfplotsset{ compat=newest, @@ -125,6 +126,7 @@ \declaretheorem[style=thmthm, name=Proposition]{proposition} \declaretheorem[style=thmthm, numbered=no, name=Corollary]{corollary} \declaretheorem[style=thmexample, numbered=no, name=Example]{eg} +\declaretheorem[name=Problem]{prob} \declaretheorem[style=thmproof, name=Proof]{thmproof} @@ -194,8 +196,8 @@ \DeclareMathOperator{\Hol}{Hol} \pagestyle{fancy} -\fancyhead[RO,L]{\@section} -\fancyhead[R,LO]{\@title} +\fancyhead[L]{\@title} +\fancyhead[R]{\@section} \makeatother