From ce413964acd5b267c1f086f02b8ab7eab3e2a565 Mon Sep 17 00:00:00 2001 From: Joshua Liu Date: Thu, 12 Feb 2026 21:40:31 -0500 Subject: feat: adding code for making code boxes as well as adding line to autogenerate a table of contents --- template_Notes.tex | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/template_Notes.tex b/template_Notes.tex index 4a81891..d5a3eeb 100644 --- a/template_Notes.tex +++ b/template_Notes.tex @@ -42,6 +42,22 @@ } % setting global options for tcolorbox \makeatletter +\lstset{frame=tb, + language=Java, + aboveskip=3mm, + belowskip=3mm, + showstringspaces=false, + columns=flexible, + basicstyle={\small\ttfamily}, + numbers=none, + numberstyle=\tiny\color{gray}, + keywordstyle=\color{blue}, + commentstyle=\color{dkgreen}, + stringstyle=\color{mauve}, + breaklines=true, + breakatwhitespace=true, + tabsize=3 +} %My Custom Commands \newcommand{\mnewline}{\newline\newline\newline} @@ -137,4 +153,5 @@ includefoot=true,top=19mm,nohead,footskip=12mm,bottom=6mm]{geometry} {\bf Insert Unit Name here} \end{center} \end{TitleBox} + \tableofcontents \end{document} -- cgit v1.2.3