-
-
Notifications
You must be signed in to change notification settings - Fork 443
/
latex-header.tex
73 lines (58 loc) · 2.26 KB
/
latex-header.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
\usepackage{sectsty}
\sectionfont{\LARGE\clearpage}
\usepackage{hyperref}
\hypersetup{
pdftitle={OWASP Mobile Application Security Verification Standard},
pdfauthor={Bernhard Mueller, Sven Schleier, Jeroen Willemsen, Carlos Holguera and Jeroen Beckers},
pdfsubject={The Mobile Application Security Verification Standard (MASVS) is a standard for mobile app security.},
pdfkeywords={Mobile Security,iOS,Android,OWASP}
}
\usepackage{incgraph,tikz}
% Make "clones" of the commands
\let\originalparagraph\paragraph
\let\originalsubparagraph\subparagraph
% Redefine the commands using the "clones"
\renewcommand{\paragraph}[1]%
{\originalparagraph{#1}\hfill}
\renewcommand{\subparagraph}[1]%
{\originalsubparagraph{#1}\hfill}
% Remove all captions
\renewcommand{\caption}[2][]{}
% TODO for colored tables: add this to pandocker command -V table-use-row-colors=true
\usepackage{geometry}
\geometry{
a4paper,
left=20mm,
top=20mm,
headheight=40pt,
voffset=20pt,
footskip=50pt %40pt gives some more space at the bottom: test it!
}
%%\usepackage[space]{xeCJK}
%%\setCJKmainfont{Noto Sans CJK {{CJK-LANG}}} %JP,SC,TC,KR
%%\renewcommand\CJKglue{}% get proper linebreaking if spaces are provided
\usepackage{underscore} % Solves breaking line for **Protocol_KeyExchangeAlgorithm_WITH_BlockCipher_IntegrityCheckAlgorithm**
% The next 2 block fix several issues with non-breaking texttt environments:
% "The module app.package.attacksurface"
% "in clear text in /data/data/<package-name>/shared_-"
% "For example, \e search.quiet=true;"
\newcommand*\justify{%
\fontdimen2\font=0.4em% interword space
\fontdimen3\font=0.2em% interword stretch
\fontdimen4\font=0.1em% interword shrink
\fontdimen7\font=0.1em% extra space
\hyphenchar\font=`\-% allowing hyphenation
}
\renewcommand{\texttt}[1]{%
\begingroup
\ttfamily
\begingroup\lccode`~=`/\lowercase{\endgroup\def~}{/\discretionary{}{}{}}%
\begingroup\lccode`~=`[\lowercase{\endgroup\def~}{[\discretionary{}{}{}}%
\begingroup\lccode`~=`.\lowercase{\endgroup\def~}{.\discretionary{}{}{}}%
\catcode`/=\active\catcode`[=\active\catcode`.=\active
\justify\scantokens{#1\noexpand}%
\endgroup
}
%% Workaround for pandoc bug #8460
%% https://github.com/jgm/pandoc/issues/8460
\newenvironment{RTL}{\beginR}{\endR}