MA0301/exam_template_graphics/main.tex

62 lines
1.0 KiB
TeX

\documentclass[12pt]{article}
\usepackage{ntnu}
\usepackage{ntnu-math}
\author{TODO: STUDENTNUMMER}
\title{Exam v2021}
\usetikzlibrary{automata, positioning, arrows.meta}
\newcommand{\I}{Option 1 is correct}
\newcommand{\II}{Option 2 is correct}
\newcommand{\III}{Option 3 is correct}
\renewcommand{\theenumi}{\arabic{enumi}}
\renewcommand{\theenumii}{(\arabic{enumii})}
\renewcommand{\theenumiii}{\alph{enumiii})}
\usepackage{verbatim}
\newcommand{\verbatimDiagram}[1]{
\section{#1}
\verbatiminput{graphics/src/#1.txt}
\includeDiagram{graphics/#1.tex}
\break{}
}
\newcommand{\verbatimInput}[1]{
\section{#1}
\verbatiminput{graphics/src/#1.txt}
\input{graphics/#1.tex}
\break{}
}
\begin{document}
\ntnuTitle{}
\break{}
\tableofcontents
\verbatimDiagram{hasse}
\verbatimDiagram{automata}
\verbatimInput{truthtable}
\verbatimDiagram{undirectedGraph}
\verbatimDiagram{complete6}
\verbatimDiagram{adjacency}
\verbatimInput{undirectedGraphToMatrix}
\verbatimDiagram{directedFromMatrix}
\end{document}