From 2a352fa1fb90764d8b70ec4302ac662c5bc79bb4 Mon Sep 17 00:00:00 2001 From: chhan11 Date: Mon, 22 May 2017 12:52:13 +0200 Subject: [PATCH] Changed from minted to lstlisting --- main.tex | 41 ++++++++++++++++++++++++++++++++++------- 1 file changed, 34 insertions(+), 7 deletions(-) diff --git a/main.tex b/main.tex index a0d640d..f2314a2 100644 --- a/main.tex +++ b/main.tex @@ -6,10 +6,37 @@ \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{geometry} -\usepackage{minted} +\usepackage{listings} +\usepackage{color} \usepackage{graphicx} \usepackage{float} +% Define color +\definecolor{codegreen}{rgb}{0,0.6,0} +\definecolor{codegray}{rgb}{0.5,0.5,0.5} +\definecolor{codepurple}{rgb}{0.58,0,0.82} +\definecolor{backcolour}{rgb}{0.95,0.95,0.92} + +\lstdefinestyle{mystyle}{ + backgroundcolor=\color{backcolour}, + commentstyle=\color{codegreen}, + keywordstyle=\color{magenta}, + numberstyle=\tiny\color{codegray}, + stringstyle=\color{codepurple}, + basicstyle=\footnotesize, + breakatwhitespace=false, + breaklines=true, + captionpos=b, + keepspaces=true, + numbers=left, + numbersep=5pt, + showspaces=false, + showstringspaces=false, + showtabs=false, + tabsize=4 +} + +\lstset{style=mystyle} % Path where images are located relative % to the file main.tex @@ -69,25 +96,25 @@ \subsection{Router} \subsubsection{File: base.cfg} -%\inputminted[frame=lines,framesep=2mm,baselinestretch=1.2,bgcolor=lightgray,fontsize=\footnotesize,linenos,breaklines=true]{tcl}{code/router/base.cfg} +%\lstinputlisting[language=tcl]{code/router/base.cfg} \subsubsection{File: reset.tcl} -%\inputminted[frame=lines,framesep=2mm,baselinestretch=1.2,bgcolor=lightgray,fontsize=\footnotesize,linenos,breaklines=true]{tcl}{code/router/reset.tcl} +%\lstinputlisting[language=tcl]{code/router/reset.tcl} % \subsection{Layer 3 Switch} \subsubsection{File: base.cfg} -\inputminted[frame=lines,framesep=2mm,baselinestretch=1.2,bgcolor=lightgray,fontsize=\footnotesize,linenos,breaklines=true]{tcl}{code/l3switch/base.cfg} +\lstinputlisting[language=tcl]{code/l3switch/base.cfg} \subsubsection{File: reset.tcl} -\inputminted[frame=lines,framesep=2mm,baselinestretch=1.2,bgcolor=lightgray,fontsize=\footnotesize,linenos,breaklines=true]{tcl}{code/l3switch/reset-tcl.txt} +\lstinputlisting[language=tcl]{code/l3switch/reset-tcl.txt} % \subsection{Layer 2 Switch} \subsubsection{File: base.cfg} -\inputminted[frame=lines,framesep=2mm,baselinestretch=1.2,bgcolor=lightgray,fontsize=\footnotesize,linenos,breaklines=true]{tcl}{code/l2switch/base.cfg} +\lstinputlisting[language=tcl]{code/l2switch/base.cfg} \subsubsection{File: reset.tcl} -\inputminted[frame=lines,framesep=2mm,baselinestretch=1.2,bgcolor=lightgray,fontsize=\footnotesize,linenos,breaklines=true]{tcl}{code/l2switch/reset-tcl.txt} +\lstinputlisting[language=tcl]{code/l2switch/reset-tcl.txt} % % END SWITCH CONFIG