mirror of
https://gitlab.com/netravnen/NetworkLabNotes.git
synced 2024-11-26 19:27:57 +00:00
Auto stash before merge of "master" and "origin/master"
This commit is contained in:
parent
1753b986e5
commit
bb88faf6b5
51
commands.tex
51
commands.tex
|
@ -1,11 +1,3 @@
|
||||||
% Usage: \pic[<pct-of-columnwidth>]{<path-to-file>}
|
|
||||||
\newcommand{\pic}[2][50]{
|
|
||||||
\begin{center}
|
|
||||||
\transparent{0.4}
|
|
||||||
\includegraphics[width=0.#1\columnwidth]{#2}
|
|
||||||
\end{center}
|
|
||||||
}
|
|
||||||
|
|
||||||
% Usage: \fig{<path-to-file>}{<label>}{<caption>}
|
% Usage: \fig{<path-to-file>}{<label>}{<caption>}
|
||||||
\newcommand{\fig}[4][]{
|
\newcommand{\fig}[4][]{
|
||||||
\begin{figure}[h!]
|
\begin{figure}[h!]
|
||||||
|
@ -23,21 +15,15 @@
|
||||||
\end{figure}
|
\end{figure}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
% Usage:
|
||||||
\newcommand{\xkcd}[2]{\fig{xkcd/#1}{#1}{#2\\%
|
\newcommand{\xkcd}[2]{\fig{xkcd/#1}{#1}{#2\\%
|
||||||
{\tiny\MakeUppercase{https://imgs.xkcd.com/comics/#1.png}\hskip3mm%
|
{\tiny\MakeUppercase{https://imgs.xkcd.com/comics/#1.png}\hskip3mm%
|
||||||
License: \texttt{\href{https://creativecommons.org/licenses/by-nc/2.5/}{CC BY-NC 2.5}}%
|
License: \texttt{\href{https://creativecommons.org/licenses/by-nc/2.5/}{CC BY-NC 2.5}}%
|
||||||
}}}
|
}}}
|
||||||
|
|
||||||
% Usage: \svg{<path-to-file>}{<label>}{<caption>}
|
|
||||||
\newcommand{\svg}[3]{
|
|
||||||
\begin{figure}[h]
|
|
||||||
\centering
|
|
||||||
\includesvg{#1}
|
|
||||||
\caption{#3}
|
|
||||||
\label{fig:#2}
|
|
||||||
\end{figure}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
% Usage:
|
||||||
\newcommand{\notice}[2]{%
|
\newcommand{\notice}[2]{%
|
||||||
\shadowbox{%
|
\shadowbox{%
|
||||||
\begin{varwidth}{0.85\linewidth}
|
\begin{varwidth}{0.85\linewidth}
|
||||||
|
@ -47,8 +33,12 @@ License: \texttt{\href{https://creativecommons.org/licenses/by-nc/2.5/}{CC BY-NC
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
% Usage:
|
||||||
\newcommand{\cliline}[2][]{\lstinline[columns=fixed,#1]{#2}}
|
\newcommand{\cliline}[2][]{\lstinline[columns=fixed,#1]{#2}}
|
||||||
|
|
||||||
|
|
||||||
|
% Usage:
|
||||||
\newcommand{\utccurrenttime}[0]{%
|
\newcommand{\utccurrenttime}[0]{%
|
||||||
\today%
|
\today%
|
||||||
T%
|
T%
|
||||||
|
@ -59,6 +49,7 @@ License: \texttt{\href{https://creativecommons.org/licenses/by-nc/2.5/}{CC BY-NC
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
% Usage:
|
||||||
\newcommand{\itemhead}[2][]{%
|
\newcommand{\itemhead}[2][]{%
|
||||||
\sbox0{#1}%
|
\sbox0{#1}%
|
||||||
\ifdim\wd0=0pt
|
\ifdim\wd0=0pt
|
||||||
|
@ -67,6 +58,9 @@ License: \texttt{\href{https://creativecommons.org/licenses/by-nc/2.5/}{CC BY-NC
|
||||||
{\textbf{#2:}\\{\footnotesize #1}}
|
{\textbf{#2:}\\{\footnotesize #1}}
|
||||||
\fi
|
\fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
% Usage:
|
||||||
\newcommand{\itemtitle}[2]{%
|
\newcommand{\itemtitle}[2]{%
|
||||||
\sbox0{#1}%
|
\sbox0{#1}%
|
||||||
\ifdim\wd0=0pt
|
\ifdim\wd0=0pt
|
||||||
|
@ -77,6 +71,7 @@ License: \texttt{\href{https://creativecommons.org/licenses/by-nc/2.5/}{CC BY-NC
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
% Usage:
|
||||||
\newcommand{\myquote}[2]{%
|
\newcommand{\myquote}[2]{%
|
||||||
\sbox0{#1}%
|
\sbox0{#1}%
|
||||||
\ifdim\wd0=0pt
|
\ifdim\wd0=0pt
|
||||||
|
@ -87,34 +82,30 @@ License: \texttt{\href{https://creativecommons.org/licenses/by-nc/2.5/}{CC BY-NC
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
% Usage:
|
||||||
% Enviroment @var txt
|
% Enviroment @var txt
|
||||||
% changes code styling to: in frame, white bg.
|
% changes code styling to: in frame, white bg.
|
||||||
\lstnewenvironment{txt}{\lstset{style=plaintxt}}{}
|
\lstnewenvironment{txt}{\lstset{style=plaintxt}}{}
|
||||||
|
|
||||||
|
|
||||||
|
% Usage:
|
||||||
% Enviroment @var cisco
|
% Enviroment @var cisco
|
||||||
\lstnewenvironment{cisco}{\lstset{language=cisco}}{}
|
\lstnewenvironment{cisco}{\lstset{language=cisco}}{}
|
||||||
|
|
||||||
|
|
||||||
%\newcommand{cisline}[1]{\lstinline[columns=fixed]{network-device\# #1}}
|
% Usage:
|
||||||
|
|
||||||
|
|
||||||
%\newcommand{cisconf}[2][]{%
|
|
||||||
%\def\temp{#1}\ifx\temp\empty
|
|
||||||
%\lstinline[columns=fixed]{network-device(config)\# #2}
|
|
||||||
%\else
|
|
||||||
%\lstinline[columns=fixed]{network-device(config-#1)\# #2}
|
|
||||||
%\fi\}
|
|
||||||
|
|
||||||
|
|
||||||
\newcommand{\txtreflect}[1]{\reflectbox{#1}}
|
\newcommand{\txtreflect}[1]{\reflectbox{#1}}
|
||||||
|
|
||||||
|
|
||||||
|
% Usage:
|
||||||
\newcommand{\txtupdown}[1]{\raisebox{\depth}{\rotatebox{270}{\reflectbox{\rotatebox{90}{#1}}}}}
|
\newcommand{\txtupdown}[1]{\raisebox{\depth}{\rotatebox{270}{\reflectbox{\rotatebox{90}{#1}}}}}
|
||||||
|
|
||||||
|
|
||||||
|
% Usage: used in similair manner as itemize --> \begin{rules} then \end{rules}
|
||||||
% http://www.troubleshooters.com/linux/lyx/ownlists.htm
|
% http://www.troubleshooters.com/linux/lyx/ownlists.htm
|
||||||
\newenvironment{rules}{
|
\newenvironment{rules}{
|
||||||
\begin{list}
|
\begin{list}%
|
||||||
{\bfseries{}§\hskip1mm\arabic{qcounter}:~}
|
{\bfseries{}§\hskip1mm\arabic{qcounter}:~}%
|
||||||
{
|
{
|
||||||
\usecounter{qcounter}
|
\usecounter{qcounter}
|
||||||
\bfseries
|
\bfseries
|
||||||
|
|
2
main.tex
2
main.tex
|
@ -67,7 +67,7 @@
|
||||||
% %
|
% %
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
\bibliography{references,references-wikipedia}
|
\bibliography{references-books,references-websites,references-wikipedia}
|
||||||
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
% %
|
% %
|
||||||
|
|
|
@ -1,11 +1,3 @@
|
||||||
@online{ slideshare:vtpchap4,
|
|
||||||
author = "Hector Camba Lainez",
|
|
||||||
title = "Cap4 implementing vtp",
|
|
||||||
year = "2010",
|
|
||||||
url = {https://www.slideshare.net/lucky0679/cap4-implementing-vtp},
|
|
||||||
note = "[Online; accessed 22-May-2017]"
|
|
||||||
}
|
|
||||||
|
|
||||||
@book{froom2015implementing,
|
@book{froom2015implementing,
|
||||||
author = "Froom, Richard",
|
author = "Froom, Richard",
|
||||||
title = "Implementing Cisco IP switched networks (SWITCH) : foundation learning guide",
|
title = "Implementing Cisco IP switched networks (SWITCH) : foundation learning guide",
|
15
references-websites.bib
Normal file
15
references-websites.bib
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
@online{ slideshare:vtpchap4,
|
||||||
|
author = "Hector Camba Lainez",
|
||||||
|
title = "Cap4 implementing vtp",
|
||||||
|
year = "2010",
|
||||||
|
url = {https://www.slideshare.net/lucky0679/cap4-implementing-vtp},
|
||||||
|
note = "[Online; accessed 22-May-2017]"
|
||||||
|
}
|
||||||
|
|
||||||
|
@misc{ web:SP_Tiers,
|
||||||
|
author = "Orhan Ergun",
|
||||||
|
title = "{Tier 1,Tier 2 and Tier 3 Service Providers - Tier and BGP Peering} --- Orhanergun.net",
|
||||||
|
year = "2017",
|
||||||
|
howpublished = {\url{https://orhanergun.net/2017/01/tier-1-tier-2-tier-3-service-providers/}},
|
||||||
|
note = "[Online; accessed 17-June-2017]"
|
||||||
|
}
|
|
@ -49,3 +49,11 @@
|
||||||
howpublished = {\url{http://en.wikipedia.org/w/index.php?title=Common\%20Address\%20Redundancy\%20Protocol&oldid=767510512}},
|
howpublished = {\url{http://en.wikipedia.org/w/index.php?title=Common\%20Address\%20Redundancy\%20Protocol&oldid=767510512}},
|
||||||
note = "[Online; accessed 11-June-2017]"
|
note = "[Online; accessed 11-June-2017]"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@misc{ wiki:ARPANET,
|
||||||
|
author = "Wikipedia",
|
||||||
|
title = "{ARPANET} --- {W}ikipedia{,} The Free Encyclopedia",
|
||||||
|
year = "2017",
|
||||||
|
howpublished = {\url{http://en.wikipedia.org/w/index.php?title=ARPANET&oldid=783213190}},
|
||||||
|
note = "[Online; accessed 17-June-2017]"
|
||||||
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
\usepackage{titling} % makes available \thetitle \theauthor \thedate
|
\usepackage{titling} % makes available \thetitle \theauthor \thedate
|
||||||
\usepackage[toc,acronym,footnote,nomain]{glossaries} % Load the package with the acronym option
|
\usepackage[toc,acronym,footnote,nomain]{glossaries} % Load the package with the acronym option
|
||||||
\usepackage{chngcntr}
|
\usepackage{chngcntr}
|
||||||
\newcounter{qcounter}
|
\usepackage[toc]{multitoc}
|
||||||
\usepackage[unicode=false,
|
\usepackage[unicode=false,
|
||||||
colorlinks=true,
|
colorlinks=true,
|
||||||
linkcolor=darkgray,
|
linkcolor=darkgray,
|
||||||
|
@ -48,6 +48,12 @@
|
||||||
urlcolor=darkgray]{hyperref} % https://en.wikibooks.org/wiki/LaTeX/Hyperlinks
|
urlcolor=darkgray]{hyperref} % https://en.wikibooks.org/wiki/LaTeX/Hyperlinks
|
||||||
|
|
||||||
|
|
||||||
|
\renewcommand*{\multicolumntoc}{3} % https://tex.stackexchange.com/a/6455
|
||||||
|
|
||||||
|
|
||||||
|
\newcounter{qcounter}
|
||||||
|
|
||||||
|
|
||||||
\catcode`\_=12
|
\catcode`\_=12
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue