-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreamble.tex
187 lines (164 loc) · 5.73 KB
/
preamble.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
% Copyright (C) 2024 Auguth Research Foundation.
%
% This file is part of Executable Security Standards (ESS).
%
% License
% --------
% This work is licensed under the GNU Free Documentation License.
% To view a copy of this license, visit https://www.gnu.org/licenses/fdl-1.3.html
%
% File Information
% -----------------
% - Title : Executable Security Standards (ESS)
% - Author : Joby J Reuben
% - Affiliation : Auguth Research Foundation
% - Email : joby@auguth.org
% - Created At : Bangalore, India
% - Type : Latex-File(.tex)
% - Path : "ess(root)/preamble.tex"
%
% Latex Packages
\usepackage{cite}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{blindtext}
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{tcolorbox}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{tabularray}
\usepackage{ulem}
\usepackage{cancel}
\usepackage{pagecolor}
\usepackage{textcomp}
\usepackage{comment}
\usepackage{titlesec}
\usepackage{subfiles}
\usepackage{hyperref}
\usepackage{import}
\usepackage{tikz}
% \usepackage{draftwatermark}
\usepackage{pdflscape}
\usetikzlibrary{mindmap,trees,arrows.meta,positioning}
\usepackage{forest}
\usepackage{caption}
\usepackage{lscape}
\usepackage{longtable}
\usepackage{fancyhdr}
\usepackage{setspace}
\usepackage{ragged2e}
\usepackage{titlesec}
\usepackage{tocloft}
\usepackage{etoolbox}
% PDF Meta-Data Setup
\hypersetup{
pdftoolbar=true,
pdfmenubar=true,
pdffitwindow=false,
pdfstartview={FitH},
pdftitle={"Executable Security Standards - (ESS)"},
pdfauthor={Joby J Reuben},
pdfproducer={Auguth Research Foundation},
pdfkeywords={language-security-rules},
pdfnewwindow=true,
colorlinks=true,
linkcolor=red,
citecolor=teal,
filecolor=magenta,
urlcolor=blue
}
% Watermark
% \SetWatermarkText{Confidential}
% \SetWatermarkScale{0.8}
% Define abstract to look like a section title
\renewenvironment{abstract}{%
\section*{\MakeUppercase{\abstractname}}%
\noindent\ignorespaces
}{%
\par\medskip
}
% Defining a new sectioning level, \subsubsubsection, using titlesec package.
\titleclass{\subsubsubsection}{straight}[\subsection]
\newcounter{subsubsubsection}[subsubsection]
% Define \section
\makeatletter
\renewcommand\section{\@startsection{section}{1}{\z@}%
{1.5ex plus 1.5ex minus 0.5ex}%
{0.7ex plus 1ex minus 0.5ex}%
{\normalfont\fontsize{12}{15}\bfseries\centering\uppercase}}
% Define \subsection
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
{1.5ex plus 1.5ex minus 0.5ex}%
{0.7ex plus 1ex minus 0.5ex}%
{\normalfont\fontsize{11}{10}\centering\bfseries}}
% Define \subsubsection
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
{1.5ex plus 1.5ex minus 0.5ex}%
{0.7ex plus 1ex minus 0.5ex}%
{\normalfont\fontsize{10}{8}\bfseries}}
% Redefine \subsubsubsection
\renewcommand\subsubsubsection{\@startsection{subsubsubsection}{4}{\z@}%
{3.25ex \@plus1ex \@minus.2ex}%
{-1em}%
{\normalfont\bfseries\sectionformatforsubsubsub}}
% Define section number for \subsubsubsection
\newcommand{\sectionformatforsubsubsub}[1]{%
\normalfont\fontsize{10}{8}\selectfont\ulcshape\thesubsubsubsection.#1\newline}
% Define section numbering X.1 for \subsubsubsection
\renewcommand\thesubsubsubsection{\thesubsubsection.\Alph{subsubsubsection}}
% Define \titleformat for \subsubsubsection
\titleformat{\subsubsubsection}
{\normalfont\normalsize\bfseries}
{}
{0em}
{}
% Define paragraphs
\renewcommand\paragraph{\@startsection{paragraph}{5}{\parindent}%
{3.25ex \@plus1ex \@minus.2ex}%
{\normalfont\normalsize\bfseries}}
% Define sub-paragraphs
\renewcommand\subparagraph{\@startsection{subparagraph}{6}{\parindent}%
{3.25ex \@plus1ex \@minus .2ex}%
{\normalfont\normalsize\bfseries}}
% Adjust the TOC levels
\def\toclevel@subsubsubsection{4}
\def\toclevel@paragraph{5}
\def\toclevel@paragraph{6}
% Adjust the TOC dotted lines
\def\l@subsubsubsection{\@dottedtocline{4}{7em}{4em}}
\def\l@paragraph{\@dottedtocline{5}{10em}{5em}}
\def\l@subparagraph{\@dottedtocline{6}{14em}{6em}}
% Set depth counters
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{2}
\makeatother
% Page Color Defined
\definecolor{PaleTurquoise}{RGB}{175,238,238}
% Footer for GNU FDL v1.3 License
\pagestyle{fancy}
\fancyfoot[L]{\footnotesize{Licensed Under GNU FDL v1.3}}
% \fancyfoot[L]{\footnotesize{Confidential Document © Auguth Research Foundation}}
% Alan Header with Recently updated PDF's Data
\fancyhead[R]{\textsc{Executable Security Standards (ESS) - \today}}
% Remove Header and Footer Width
\renewcommand{\headrulewidth}{0pt} % Remove header rule
\renewcommand{\footrulewidth}{0pt} % Remove footer rule
% TOC Section Numbering and Title Spacing>
\cftsetindents{section}{0em}{1.8cm}
% -----------------
% YET TO DO FORMATS
% -----------------
% Section Specific TOC on all Sections - Need to Implement for Readability
\newcommand{\sectiontoc}{
\par
\vspace{0.3cm}
\textbf{Table of Contents:}
\par
% Section Specific TOC here,
\text{Yet to be implemented}
\vspace{0.3cm}
\par
}
% Dotted ToC for Section entries