summaryrefslogtreecommitdiffstats
path: root/tex
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2021-12-15 00:31:41 +0100
committerNao Pross <np@0hm.ch>2021-12-15 00:31:41 +0100
commit7fcf41e1c65a628f5a337a6aed54eee0266d5b24 (patch)
tree5a650192690ec8cdb564ac660b544cf162c4f57c /tex
downloadTheCrownBar-7fcf41e1c65a628f5a337a6aed54eee0266d5b24.tar.gz
TheCrownBar-7fcf41e1c65a628f5a337a6aed54eee0266d5b24.zip
Copy stuff from word
Diffstat (limited to 'tex')
-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}