X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=report%2Fpreamble.tex;h=03b12fdc0168c2daa2a48d40547ea306419bc402;hb=f907dd355223b6c59eb774880b391969fd7543b8;hp=a72256aae1c088625c493d3268802e3d36063a68;hpb=46c16a01449f1337ecc88bacc7ab6f1c24372475;p=ssproject1617.git diff --git a/report/preamble.tex b/report/preamble.tex index a72256a..03b12fd 100644 --- a/report/preamble.tex +++ b/report/preamble.tex @@ -7,29 +7,74 @@ \usepackage{enumitem} \usepackage{pifont} \usepackage[dvipsnames]{xcolor} +\usepackage{mdframed} +\usepackage{titlesec} +\usepackage{amsmath} +\usepackage{booktabs}% good looking tables \hypersetup{hidelinks, pdftitle={OWASP ASVS Souce Code Review Project}} +\newcommand{\sectionbreak}{\clearpage} +\titleformat{\section}[block]{\Large\bfseries}{\thesection}{1em}{} +\titleformat{\subsection}[block]{\large\bfseries}{\thesubsection}{1em}{} + % Als een criterium niet applicable is (we doen alleen 1 en 2) \newcommand{\notapplicable}[1]{{\color{Gray} #1}} +% Layout voor resultaat van requirement check. +% (Anders loopt de tekst vd requirement direct over in het resultaat, wat niet duidelijk leest.) +\newmdenv[ + topline=false, + bottomline=false, + rightline=false, + linewidth=1.5pt, + innerrightmargin=0pt, + innertopmargin=2pt, + innerbottommargin=2pt, + skipabove=\topsep, + skipbelow=\topsep% +]{result} + % Tools afkortingen +\newcommand{\API}{\emph{API}} +\newcommand{\CMS}{\emph{CMS}} +\newcommand{\CSRF}{\emph{CSRF}} +\newcommand{\DELETE}{\emph{DELETE}} +\newcommand{\DOM}{\emph{DOM}} +\newcommand{\GET}{\emph{GET}} +\newcommand{\GUID}{\emph{GUID}} +\newcommand{\HTMLF}{\textsc{HTML5}} +\newcommand{\HTML}{\textsc{HTML}} +\newcommand{\HTTPS}{\textsc{HTTPS}} +\newcommand{\HTTP}{\textsc{HTTP}} +\newcommand{\JQuery}{\textsc{JQuery}} +\newcommand{\JSON}{\textsc{JSON}} +\newcommand{\LDAP}{\textsc{LDAP}} \newcommand{\PHP}{\textsc{PHP}} +\newcommand{\PII}{\emph{PII}} +\newcommand{\POST}{\emph{POST}} +\newcommand{\PUT}{\emph{PUT}} +\newcommand{\REST}{\emph{REST}} +\newcommand{\RSS}{\emph{RSS}} +\newcommand{\SMTP}{\emph{SMTP}} \newcommand{\SQL}{\textsc{SQL}} -\newcommand{\LDAP}{\textsc{LDAP}} +\newcommand{\SSO}{\emph{SSO}} +\newcommand{\TOTP}{\emph{TOTP}} +\newcommand{\TRACE}{\emph{TRACE}} \newcommand{\XML}{\textsc{XML}} -\newcommand{\HTML}{\textsc{HTML}} -\newcommand{\JSON}{\textsc{JSON}} -\newcommand{\JQuery}{\textsc{JQuery}} +\newcommand{\XSS}{\emph{XSS}} + % Reference naar de source -\newcommand{\srcref}[2]{{\small\texttt{#1}} (line (s) #2)} +\newcommand{\srcref}[2]{{\small\texttt{#1}} (line(s) #2)} % Pass en fail -\newcommand{\pass}{\ding{51}} -\newcommand{\fail}{\ding{55}} +\newcommand{\pass}{{\large\ding{51}}} +\newcommand{\fail}{{\large\ding{55}}} +\newcommand{\TODO}{\ding{111} \textbf{\itshape TODO}} -\renewcommand\thesubsection{V\arabic{subsection}} +% span code fragments +\newcommand{\code}[1]{\texttt{#1}} \author{% Kelley van Evert\\