changes to snippets

This commit is contained in:
EvilMuffinHa 2022-12-16 19:09:01 -05:00
parent a2bf910fba
commit 6052cd8df0
6 changed files with 20 additions and 16 deletions

View File

@ -546,7 +546,7 @@ snippet pmat "Paren Matrix" iA
endsnippet endsnippet
context "math()" context "math()"
snippet bmat "Bracket Matrix" iA snippet matr "Bracket Matrix" iA
\begin{bmatrix} $1 \end{bmatrix} $0 \begin{bmatrix} $1 \end{bmatrix} $0
endsnippet endsnippet
@ -744,7 +744,7 @@ snippet nn "Tikz node" w
$0 $0
endsnippet endsnippet
snippet problem "Problem" iA snippet problem "Problem" biA
\pbl{$1} \pbl{$1}
$0 $0
endsnippet endsnippet
@ -801,7 +801,7 @@ snippet impc "Import Code" wA
\begin{listing}[${1:H}] \begin{listing}[${1:H}]
\caption{$2} \caption{$2}
\label{lst:$3} \label{lst:$3}
\importcode{$1}{$2}$0 \importcode{$4}{$5}$0
\end{listing} \end{listing}
endsnippet endsnippet

View File

@ -177,11 +177,12 @@
\definecolor{MintedBg}{RGB}{38, 38, 38} \definecolor{MintedBg}{RGB}{38, 38, 38}
\newenvironment{code}[1]{\color{white}\VerbatimEnvironment\begin{minted}[bgcolor=MintedBg]{#1}}{\end{minted}}
\newcommand{\inlinecode}[2]{\color{white}\mintinline[bgcolor=MintedBg]{#1}|#2|} \newenvironment{code}[1]{\color{white}\VerbatimEnvironment\begin{minted}[breaklines, bgcolor=MintedBg]{#1}}{\end{minted}}
\newcommand{\importcode}[2]{\color{white}\VerbatimEnvironment\inputminted[bgcolor=MintedBg]{#1}{#2}} \newcommand{\inlinecode}[2]{\color{white}\mintinline[breaklines, bgcolor=MintedBg]{#1}|#2|}
\newcommand{\importcode}[2]{\color{white}\inputminted[breaklines, bgcolor=MintedBg]{#1}{#2}}
\DeclareMathOperator{\GL}{GL} \DeclareMathOperator{\GL}{GL}
\DeclareMathOperator{\Imm}{Im} \DeclareMathOperator{\Imm}{Im}

View File

@ -182,11 +182,11 @@
\newcommand{\toc}{\tableofcontents\raggedbottom} \newcommand{\toc}{\tableofcontents\raggedbottom}
\newenvironment{code}[1]{\color{white}\VerbatimEnvironment\begin{minted}[bgcolor=MintedBg]{#1}}{\end{minted}} \newenvironment{code}[1]{\color{white}\VerbatimEnvironment\begin{minted}[breaklines, bgcolor=MintedBg]{#1}}{\end{minted}}
\newcommand{\inlinecode}[2]{\color{white}\mintinline[bgcolor=MintedBg]{#1}|#2|} \newcommand{\inlinecode}[2]{\color{white}\mintinline[breaklines, bgcolor=MintedBg]{#1}|#2|}
\newcommand{\importcode}[2]{\color{white}\VerbatimEnvironment\inputminted[bgcolor=MintedBg]{#1}{#2}} \newcommand{\importcode}[2]{\color{white}\inputminted[breaklines, bgcolor=MintedBg]{#1}{#2}}
\DeclareMathOperator{\GL}{GL} \DeclareMathOperator{\GL}{GL}
\DeclareMathOperator{\Imm}{Im} \DeclareMathOperator{\Imm}{Im}

View File

@ -182,11 +182,12 @@
\definecolor{MintedBg}{RGB}{38, 38, 38} \definecolor{MintedBg}{RGB}{38, 38, 38}
\newenvironment{code}[1]{\color{white}\VerbatimEnvironment\begin{minted}[bgcolor=MintedBg]{#1}}{\end{minted}} \newenvironment{code}[1]{\color{white}\VerbatimEnvironment\begin{minted}[breaklines, bgcolor=MintedBg]{#1}}{\end{minted}}
\newcommand{\inlinecode}[2]{\color{white}\mintinline[bgcolor=MintedBg]{#1}|#2|} \newcommand{\inlinecode}[2]{\color{white}\mintinline[breaklines, bgcolor=MintedBg]{#1}|#2|}
\newcommand{\importcode}[2]{\color{white}\inputminted[breaklines, bgcolor=MintedBg]{#1}{#2}}
\newcommand{\importcode}[2]{\color{white}\VerbatimEnvironment\inputminted[bgcolor=MintedBg]{#1}{#2}}
\DeclareMathOperator{\GL}{GL} \DeclareMathOperator{\GL}{GL}
\DeclareMathOperator{\Imm}{Im} \DeclareMathOperator{\Imm}{Im}

View File

@ -142,11 +142,12 @@
\import{./figures/}{#1.pdf_tex} \import{./figures/}{#1.pdf_tex}
} }
\newenvironment{code}[1]{\VerbatimEnvironment\begin{minted}[frame=lines,framesep=7pt, linenos]{#1}}{\end{minted}}
\newenvironment{code}[1]{\VerbatimEnvironment\begin{minted}[frame=lines,framesep=7pt, linenos, breaklines]{#1}}{\end{minted}}
\newcommand{\inlinecode}[2]{\mintinline{#1}|#2|} \newcommand{\inlinecode}[2]{\mintinline{#1}|#2|}
\newcommand{\importcode}[2]{\VerbatimEnvironment\inputminted[frame=lines, framesep=7pt, linenos]{#1}{#2}} \newcommand{\importcode}[2]{\inputminted[frame=lines, framesep=7pt, linenos, breaklines]{#1}{#2}}
\DeclareMathOperator{\GL}{GL} \DeclareMathOperator{\GL}{GL}
\DeclareMathOperator{\Imm}{Im} \DeclareMathOperator{\Imm}{Im}

View File

@ -148,11 +148,12 @@
\import{./figures/}{#1.pdf_tex} \import{./figures/}{#1.pdf_tex}
} }
\newenvironment{code}[1]{\VerbatimEnvironment\begin{minted}[frame=lines,framesep=7pt, linenos]{#1}}{\end{minted}} \newenvironment{code}[1]{\VerbatimEnvironment\begin{minted}[frame=lines,framesep=7pt, linenos, breaklines]{#1}}{\end{minted}}
\newcommand{\inlinecode}[2]{\mintinline{#1}|#2|} \newcommand{\inlinecode}[2]{\mintinline{#1}|#2|}
\newcommand{\importcode}[2]{\VerbatimEnvironment\inputminted[frame=lines, framesep=7pt, linenos]{#1}{#2}} \newcommand{\importcode}[2]{\inputminted[frame=lines, framesep=7pt, linenos, breaklines]{#1}{#2}}
\DeclareMathOperator{\GL}{GL} \DeclareMathOperator{\GL}{GL}
\DeclareMathOperator{\Imm}{Im} \DeclareMathOperator{\Imm}{Im}