From 8f8f7c229c777033049c483df474fa1a191f29d7 Mon Sep 17 00:00:00 2001 From: h Date: Thu, 8 Feb 2024 02:01:17 -0500 Subject: [PATCH] hyperref --- nvim/ultisnips/tex.snippets | 10 ++++++++++ tex/handout.cls | 8 ++++++++ 2 files changed, 18 insertions(+) diff --git a/nvim/ultisnips/tex.snippets b/nvim/ultisnips/tex.snippets index 9664c0e..83eaca1 100644 --- a/nvim/ultisnips/tex.snippets +++ b/nvim/ultisnips/tex.snippets @@ -767,6 +767,16 @@ snippet image "Image" wA \end{figure} $0 endsnippet +snippet tikzfig "Tikz Figure" wA +\begin{figure}[${1:H}] + \begin{center} + \begin{tikzpicture} + $2 + \end{tikzpicture} + \end{center} +\end{figure} $0 +endsnippet + snippet plot "Plot" w \begin{figure}[$1] \centering diff --git a/tex/handout.cls b/tex/handout.cls index 58632b9..1017320 100644 --- a/tex/handout.cls +++ b/tex/handout.cls @@ -39,6 +39,14 @@ \RequirePackage{parskip} \RequirePackage{algpseudocode} \RequirePackage{algorithm} +\RequirePackage{hyperref} + +\hypersetup{ + colorlinks=true, + linkcolor=blue, + filecolor=blue, + urlcolor=blue, +} \pgfplotsset{ compat=newest,