mirror of
https://gitlab.com/netravnen/NetworkLabNotes.git
synced 2025-01-10 21:57:55 +00:00
Changed from minted to lstlisting
This commit is contained in:
parent
ff1554b7fd
commit
2a352fa1fb
41
main.tex
41
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}
|
||||
|
||||
% <!-- 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
|
||||
|
|
Loading…
Reference in a new issue