mirror of
https://gitlab.com/netravnen/NetworkLabNotes.git
synced 2024-06-29 11:19:04 +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[utf8]{inputenc}
|
||||||
\usepackage{lmodern}
|
\usepackage{lmodern}
|
||||||
\usepackage{geometry}
|
\usepackage{geometry}
|
||||||
\usepackage{minted}
|
\usepackage{listings}
|
||||||
|
\usepackage{color}
|
||||||
\usepackage{graphicx}
|
\usepackage{graphicx}
|
||||||
\usepackage{float}
|
\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
|
% Path where images are located relative
|
||||||
% to the file main.tex
|
% to the file main.tex
|
||||||
|
@ -69,25 +96,25 @@
|
||||||
|
|
||||||
\subsection{Router}
|
\subsection{Router}
|
||||||
\subsubsection{File: base.cfg}
|
\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}
|
\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 -->
|
% <!-- LAYER 3 SWITCH -->
|
||||||
|
|
||||||
\subsection{Layer 3 Switch}
|
\subsection{Layer 3 Switch}
|
||||||
\subsubsection{File: base.cfg}
|
\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}
|
\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 -->
|
% <!-- LAYER 2 SWITCH -->
|
||||||
|
|
||||||
\subsection{Layer 2 Switch}
|
\subsection{Layer 2 Switch}
|
||||||
\subsubsection{File: base.cfg}
|
\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}
|
\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
|
% END SWITCH CONFIG
|
||||||
|
|
Loading…
Reference in a new issue