1
0
Fork 0
mirror of https://gitlab.com/netravnen/NetworkLabNotes.git synced 2024-06-17 10:43:02 +00:00

Changed from minted to lstlisting

This commit is contained in:
chhan11 2017-05-22 12:52:13 +02:00
parent ff1554b7fd
commit 2a352fa1fb

View file

@ -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}
% <!-- LAYER 3 SWITCH -->
\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}
% <!-- LAYER 2 SWITCH -->
\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