-
-
Save sirvan3tr/96ab57cada99f123ebed15abb23cfaed to your computer and use it in GitHub Desktop.
preamble
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \usepackage{float} % Improved interface for floating objects | |
| % minitoc breaks the IEEEtran cls | |
| % \usepackage{minitoc} % Allows you to include contents page in chapters if you want | |
| \usepackage[table]{xcolor} % Advanced color handling with table option for coloring tables | |
| \usepackage{cite} % Improved citation handling | |
| \usepackage{amsmath,amssymb,amsfonts} % AMS mathematical facilities and symbols | |
| \usepackage{bm} % Access bold math symbols | |
| \usepackage{graphicx} % Enhanced support for graphics | |
| \usepackage{textcomp} % Additional text symbols | |
| \usepackage{hyperref} % Extensive support for hypertext in LaTeX | |
| \usepackage{tikz} % Creation of diagrams and pictures using PGF | |
| \usetikzlibrary{positioning, shapes.multipart} | |
| \usepackage{mathdots} % Commands to produce dots in math that respect font size | |
| \usepackage{yhmath} % Extended maths fonts for LaTeX | |
| \usepackage{cancel} % Place lines through maths formulae | |
| \usepackage{siunitx} % A comprehensive (SI) units package | |
| \usepackage{array} % Extending the array and tabular environments | |
| \usepackage{multirow} % Create tabular cells spanning multiple rows | |
| \usepackage{gensymb} % Generic symbols for both text and math mode | |
| \usepackage{tabularx} % Tabulars with adjustable-width columns | |
| \usepackage{xurl} % Allow URL breaks at any alphanumerical character | |
| \usepackage{listings} % Typeset source code listings using LaTeX | |
| \usepackage{minted} % Highlighted source code for LaTeX | |
| \usepackage{pgf} % Create PostScript and PDF graphics | |
| \usepackage{pgf-pie} % Draw pie charts, part of the pgf bundle | |
| \usepackage{tikz-cd} % Create commutative diagrams with TikZ | |
| \usepackage[en-US]{datetime2} % Formats for dates, times and time zones | |
| \usepackage{pgfplotstable} % Loads, rounds, formats and postprocesses numerical tables | |
| \usepackage{booktabs} % Publication quality tables in LaTeX | |
| \usepackage{pgfplots} % Create normal/logarithmic plots in two and three dimensions | |
| \usepackage{arydshln} % Dash-Lined hline and vline in array and tabular | |
| \usepackage[most]{tcolorbox} % Colored boxes, for LaTeX examples and theorems, etc. | |
| \usepackage{pgf-umlsd} % Draw UML Sequence Diagrams | |
| \usepackage{enumitem} % Modify the spacing between items | |
| \usepackage{graphicx} | |
| \usepackage{subcaption} | |
| \usepackage{fbox} | |
| % Define the 'definition' environment | |
| \newtheorem{definition}{Definition}[section] | |
| %----------------------------------------------------------------------------------------------- | |
| % Algorithms | |
| %% Confusing state of the algorithm packages: | |
| %% algorithm - float wrapper for algorithms. | |
| %% algorithmic - first algorithm typesetting environment. | |
| %% algorithmicx - second algorithm typesetting environment. | |
| %% algpseudocode - layout for algorithmicx. | |
| %% algorithm2e - third algorithm typesetting environment. | |
| \usepackage[linesnumbered,ruled,vlined]{algorithm2e} | |
| \DontPrintSemicolon | |
| %----------------------------------------------------------------------------------------------- | |
| % Font-sizes | |
| % \tiny | |
| % \scriptsize | |
| % \footnotesize | |
| % \small | |
| % \normalsize F-normalsize.png | |
| % \large F-large.png | |
| % \Large F-large2.png | |
| % \LARGE F-large3.png | |
| % \huge F-huge.png | |
| % \Huge F-huge2.png | |
| %----------------------------------------------------------------------------------------------- | |
| % Define pseudocode formatting | |
| \renewcommand{\KwSty}[1]{\textnormal{\textcolor{blue!90!black}{\ttfamily\bfseries #1}}\unskip} | |
| \renewcommand{\ArgSty}[1]{\textnormal{\ttfamily #1}\unskip} | |
| \SetKwComment{Comment}{\color{green!50!black}// }{} | |
| \renewcommand{\CommentSty}[1]{\textnormal{\ttfamily\color{green!50!black}#1}\unskip} | |
| \newcommand{\assign}{\leftarrow} | |
| \newcommand{\var}{\texttt} | |
| \newcommand{\FuncCall}[2]{\texttt{\bfseries #1(#2)}} | |
| \SetKwProg{Function}{function}{}{} | |
| \renewcommand{\ProgSty}[1]{\texttt{\bfseries #1}} | |
| \def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em | |
| T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} | |
| \lstset{basicstyle=\ttfamily, keywordstyle=\bfseries} | |
| %----------------------------------------------------------------------------------------------- | |
| \pgfplotsset{compat=1.18} | |
| %----------------------------------------------------------------------------------------------- | |
| % Colors | |
| \definecolor{mygreen}{RGB}{28,172,0} % color values Red, Green, Blue | |
| \definecolor{mylilas}{RGB}{170,55,241} | |
| \definecolor{lightgreen}{HTML}{A1EEBD} | |
| \definecolor{darkgreen}{HTML}{3f6e50} | |
| \definecolor{pieone}{HTML}{FAE5D3}%light color | |
| \definecolor{pietwo}{HTML}{A04000} | |
| \definecolor{xLightGreen}{HTML}{A1EEBD} | |
| \definecolor{xLightYellow}{HTML}{F6F7C4} | |
| \definecolor{xLightRed}{HTML}{F6D6D6} | |
| \definecolor{xLightBlue}{HTML}{7BD3EA} | |
| \definecolor{deepblue}{rgb}{0,0,0.5} | |
| \definecolor{deepred}{rgb}{0.6,0,0} | |
| \definecolor{deepgreen}{rgb}{0,0.5,0} | |
| % h Place the float here, i.e., approximately at the same point it occurs in the source text (however, not exactly at the spot) | |
| % t Position at the top of the page. | |
| % b Position at the bottom of the page. | |
| % p Put on a special page for floats only. | |
| % ! Override internal parameters LaTeX uses for determining "good" float positions. | |
| % H Places the float at precisely the location in the LATEX code. Requires the float package. This is somewhat equivalent to h!. | |
| % | |
| \newcommand{\DrawPercentageBar}[1]{% | |
| \begin{tikzpicture} | |
| \fill[color=black] (0.0 , 0.0) rectangle (#1*7ex , 1.75ex ); | |
| \fill[color=gray] (#1*7ex , 0.0) rectangle (7.0ex, 1.75ex); | |
| \end{tikzpicture}% | |
| } | |
| \newcommand{\DrawLengthBar}[1]{% | |
| \begin{tikzpicture} | |
| \fill[color=lightgreen] (0.0 , 0.0) rectangle (#1*0.8ex , 1.75ex ); | |
| \end{tikzpicture}% | |
| } | |
| \newcommand{\DrawLengthBarThick}[1]{% | |
| \begin{tikzpicture} | |
| \fill[color=lightgreen] (0.0 , 0.0) rectangle (#1*0.8ex , 2ex ); | |
| \end{tikzpicture}% | |
| } | |
| \renewcommand\tabularxcolumn[1]{m{#1}}% for vertical centering text in X column | |
| \newcommand{\DrawSmallPieChart}[1]{% | |
| \begin{tikzpicture}[draw opacity=0] | |
| \node at (3.8ex,-0.0ex) { \textcolor{darkgreen}{\footnotesize #1 } }; | |
| \pie[scale=0.055, color={darkgreen, lightgreen}, before number=\phantom, after number=, | |
| style =very thin, | |
| /tikz/nodes={opacity=0,overlay}% <- | |
| ]{#1/, 100-#1/} | |
| \end{tikzpicture} | |
| } | |
| \newcommand{\Password}[1]{% | |
| \begin{tikzpicture} | |
| \small | |
| \node[draw, rectangle, rounded corners=4pt, inner sep=3pt] {\texttt{#1}}; | |
| \end{tikzpicture}% | |
| } | |
| \usetikzlibrary{fadings} | |
| \usetikzlibrary{patterns} | |
| \usetikzlibrary{shadows.blur} | |
| \def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em | |
| T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} | |
| % Requires arydshln package | |
| \setlength\dashlinedash{0.2pt} | |
| \setlength\dashlinegap{2pt} | |
| \setlength\arrayrulewidth{0.1pt} | |
| %----------------------------------------------------------------------------------------------- | |
| %% Thesis specific | |
| \newcommand{\hmail}{\texttt{hotmail} } | |
| \newcommand{\phpbb}{\texttt{phpbb} } | |
| \newcommand{\markovngram}{Markov $n$-gram \cite{Narayanan_Shmatikov_2005} } | |
| \newcommand{\pcfg}{PCFG \cite{weir_password_2009} } | |
| \newcommand{\zxcvbn}{zxcvbn \cite{zxcvbn2016} } | |
| \newcommand{\hashcat}{Hashcat \cite{steube_hashcat_2023} } | |
| \newcommand{\passgan}{PassGan \cite{hitaj_passgan_2019} } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment