Add moghimi things (lang and TOC)

This commit is contained in:
Kenwood 2025-04-20 16:42:28 -04:00
parent a98b9ed6ca
commit 72f55bc3b7
2 changed files with 29 additions and 0 deletions

View File

@ -42,6 +42,33 @@
captionpos=b captionpos=b
} }
\lstdefinelanguage{SimpleASM}{
morekeywords={INA,OUTA,DEC,JNZ,HALT},
sensitive=true,
morecomment=[l]{;},
morestring=[b]",
}
\lstset{
language=SimpleASM,
basicstyle=\ttfamily\small,
keywordstyle=\color{blue}\bfseries,
commentstyle=\color{gray}\itshape,
stringstyle=\color{teal},
numbers=left,
numberstyle=\tiny,
stepnumber=1,
numbersep=10pt,
backgroundcolor=\color{black!2},
showspaces=false,
showstringspaces=false,
breaklines=true,
frame=single,
captionpos=b,
tabsize=4
}
% Custom version command to print revision and compile date in footer % Custom version command to print revision and compile date in footer
\renewcommand{\revision}[1]{ \renewcommand{\revision}[1]{
\clearpage \clearpage

View File

@ -11,6 +11,8 @@
\begin{document} \begin{document}
\maketitle \maketitle
\tableofcontents
% \newpage
\exer[Question]{1} \exer[Question]{1}