diff --git a/commands.tex b/commands.tex index e61588b..b97f2fb 100644 --- a/commands.tex +++ b/commands.tex @@ -52,4 +52,8 @@ % Enviroment @var txt % changes code styling to: in frame, white bg. -\lstnewenvironment{txt}{\lstset{style=plaintxt}}{} \ No newline at end of file +\lstnewenvironment{txt}{\lstset{style=plaintxt}}{} + + +% Enviroment @var cisco +\lstnewenvironment{cisco}{\lstset{style=cisco}}{} \ No newline at end of file diff --git a/structure.tex b/structure.tex index c1aeb45..8239d6c 100644 --- a/structure.tex +++ b/structure.tex @@ -34,6 +34,9 @@ \usepackage{fourier} \usepackage{array} \usepackage{makecell} +\usepackage{inconsolata} +\usepackage{blindtext} +\usepackage{expdlist} \bibliographystyle{unsrtnat} %styles list https://www.sharelatex.com/learn/Natbib_bibliography_styles @@ -106,12 +109,62 @@ numbersep=8pt, rulecolor=\color{black}, } + + \lstdefinestyle{plaintxt}{ language=TeX, numbers=none, frame=trBL, frameround=fttt, backgroundcolor=\color{white}, + boxpos=c, +} + + +\lstdefinelanguage{cisco}{ + keywords={ + end, + hostname, + Interface int, + ip, + line, + login, + network, + no, + router, + sh, + show, + shut, + shutdown, + version, + vlan, + vrf, + }, + keywordstyle=\color{blue}\bfseries, + ndkeywords={ + addr, + address, + aux, + bgp, + con, + console, + dhcp, + eigrp, + g, + GigabitEthernet, + isis, + ospf, + ospfv3, + pool, + rip, + vty, + }, + ndkeywordstyle=\color{darkgray}\bfseries, + identifierstyle=\color{black}, + sensitive=false, + comment=[l]{!}, + commentstyle=\color{purple}\ttfamily, + stringstyle=\color{red}\ttfamily, }