Add roman numerals

This commit is contained in:
Oystein Kristoffer Tveit 2021-05-17 22:29:48 +02:00
parent 9a6dac6e33
commit 63882c9da6
2 changed files with 13 additions and 7 deletions

View File

@ -1,15 +1,18 @@
\documentclass[12pt]{article} \documentclass[12pt]{article}
\usepackage{ntnu} \usepackage{ntnu}
\usepackage{ntnu-math} \usepackage{ntnu-math}
\usepackage{ntnu-code}
\author{TODO: STUDENTNUMMER} \author{TODO: STUDENTNUMMER}
\title{Exam v2021} \title{Exam v2021}
\usetikzlibrary{automata, positioning, arrows.meta} \usetikzlibrary{automata, positioning, arrows.meta}
\newcommand{\I}{Option 1 is correct} \newcommand{\I}{\Huge\textbf{I}}
\newcommand{\II}{Option 2 is correct} \newcommand{\II}{\Huge\textbf{I\!I}}
\newcommand{\III}{Option 3 is correct} \newcommand{\III}{\Huge\textbf{I\!I\!I}}
\usepackage{listings}
\renewcommand{\theenumi}{\arabic{enumi}} \renewcommand{\theenumi}{\arabic{enumi}}
\renewcommand{\theenumii}{(\arabic{enumii})} \renewcommand{\theenumii}{(\arabic{enumii})}

View File

@ -8,15 +8,14 @@
\usetikzlibrary{automata, positioning, arrows.meta} \usetikzlibrary{automata, positioning, arrows.meta}
\newcommand{\I}{Option 1 is correct} \newcommand{\I}{\Huge\textbf{I}}
\newcommand{\II}{Option 2 is correct} \newcommand{\II}{\Huge\textbf{I\!I}}
\newcommand{\III}{Option 3 is correct} \newcommand{\III}{\Huge\textbf{I\!I\!I}}
\renewcommand{\theenumi}{\arabic{enumi}} \renewcommand{\theenumi}{\arabic{enumi}}
\renewcommand{\theenumii}{(\arabic{enumii})} \renewcommand{\theenumii}{(\arabic{enumii})}
\renewcommand{\theenumiii}{\alph{enumiii})} \renewcommand{\theenumiii}{\alph{enumiii})}
\usepackage{verbatim}
\usepackage{listings} \usepackage{listings}
\newcommand{\listFile}[1]{ \newcommand{\listFile}[1]{
@ -57,6 +56,10 @@
\newpage{} \newpage{}
\I \\
\II \\
\III
\section{Propositional Logic} \section{Propositional Logic}
\verbatimInput{truthtable} \verbatimInput{truthtable}