summaryrefslogtreecommitdiffstats
path: root/tex/docstyle.sty
diff options
context:
space:
mode:
Diffstat (limited to 'tex/docstyle.sty')
-rw-r--r--tex/docstyle.sty39
1 files changed, 39 insertions, 0 deletions
diff --git a/tex/docstyle.sty b/tex/docstyle.sty
new file mode 100644
index 0000000..7e44ea9
--- /dev/null
+++ b/tex/docstyle.sty
@@ -0,0 +1,39 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{tex/docstyle}[2021/12/14 v0.1 Styling for a Sans-Serif report]
+
+\PassOptionsToPackage{geometry}{a4paper}
+\RequirePackage{geometry}
+\newgeometry{vmargin = 24mm, hmargin = 24mm}
+
+\RequirePackage{roboto}
+\RequirePackage{roboto-mono}
+
+\renewcommand*{\familydefault}{\sfdefault}
+
+\RequirePackage{fancyhdr}
+\fancypagestyle{doc}{
+ \fancyhf{} % clear currrent values
+ \fancyhead[L]{\itshape\leftmark}
+ \fancyhead[R]{}
+ \fancyfoot[C]{\thepage}
+ \renewcommand{\headrulewidth}{0pt}
+ \setlength{\headheight}{13pt}
+}
+\pagestyle{doc} % apply style
+
+\setlength{\headheight}{15pt}
+
+\RequirePackage{titlesec}
+\titleformat{\chapter}[hang]
+ {\normalfont\huge\bfseries}{\thechapter}{20pt}{\Huge}
+\titlespacing*{\chapter}{0pt}{0pt}{40pt}
+
+\RequirePackage{parskip}
+
+\PassOptionsToPackage{dirtytalk}{%
+ left = "<,%
+ right = ">,%
+ leftsub = `,%
+ rightsub = '%
+}
+\RequirePackage{dirtytalk}