From 7fcf41e1c65a628f5a337a6aed54eee0266d5b24 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Wed, 15 Dec 2021 00:31:41 +0100 Subject: Copy stuff from word --- tex/docstyle.sty | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 tex/docstyle.sty (limited to 'tex') 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} -- cgit v1.2.1