summaryrefslogtreecommitdiff
path: root/resources/templates/documents/ms-default.setup
blob: ce04191cf8133352be0a168f546c477c979b23e9 (plain)
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
# -*- mode: org; eval: (visual-line-mode); -*-

# Hide Org mode tags
#+OPTIONS: tags:nil

#+LATEX_CLASS: article

# Ensure room for header and footer
#+LATEX_HEADER: \usepackage{geometry}[
#+LATEX_HEADER:  ansiapaper      ,
#+LATEX_HEADER:  left   = 1in    ,
#+LATEX_HEADER:  right  = 1in    ,
#+LATEX_HEADER:  top    = 1in    ,
#+LATEX_HEADER:  bottom = 1.75in ,]

# Beautiful fonts ONLY
#+LATEX_HEADER: \usepackage{fontspec}
# Regular font
#+LATEX_HEADER: \setmainfont{Public Sans}[
#+LATEX_HEADER:  Path           = C:/Users/blend/AppData/Roaming/.emacs.d/resources/fonts/,
#+LATEX_HEADER:  Extension      = .ttf         ,
#+LATEX_HEADER:  UprightFont    = *-regular    ,
#+LATEX_HEADER:  BoldFont       = *-bold       ,
#+LATEX_HEADER:  ItalicFont     = *-italic     ,
#+LATEX_HEADER:  BoldItalicFont = *-bolditalic ,]
# Monospaced font
#+LATEX_HEADER: \setmonofont{Courier Prime}[
#+LATEX_HEADER:  Path           = C:/Users/blend/AppData/Roaming/.emacs.d/resources/fonts/,
#+LATEX_HEADER:  Extension      = .ttf         ,
#+LATEX_HEADER:  UprightFont    = *-regular    ,
#+LATEX_HEADER:  BoldFont       = *-bold       ,
#+LATEX_HEADER:  ItalicFont     = *-italic     ,
#+LATEX_HEADER:  BoldItalicFont = *-bolditalic ,]

# Get total page count to insert in footer
#+LATEX_HEADER: \usepackage{lastpage}
#+LATEX_HEADER: \usepackage{titling}

# Required to reset numbering of table rows from table to table.
#+LATEX_HEADER: \usepackage{etoolbox}
#+LATEX_HEADER: \makeatletter
#+LATEX_HEADER: \gpreto\tabular{\renewcommand{\arraystretch}{1.4}\rownum=\z@}
#+LATEX_HEADER: \makeatother

# Headers and footers.
#+LATEX_HEADER: \usepackage{fancyhdr}
# Space in the header for a logo or image.
#+LATEX_HEADER: \setlength{\headheight}{36pt}
#+LATEX_HEADER_EXTRA: \pagestyle{fancy}
#+LATEX_HEADER_EXTRA: \fancyhead[L]{\rule[-12pt]{0pt}{0pt}\texttt{\theauthor}}
#+LATEX_HEADER_EXTRA: \fancyhead[C]{\large\textbf{\thetitle}}
#+LATEX_HEADER_EXTRA: \fancyhead[R]{\thedate}
#+LATEX_HEADER_EXTRA: \renewcommand{\headrulewidth}{1.5pt}
#+LATEX_HEADER_EXTRA: \fancyfoot[C]{
#+LATEX_HEADER_EXTRA: \hrulefill\\[0.8em]
#+LATEX_HEADER_EXTRA: Page \thepage/\pageref*{LastPage}\\[0.8em]
#+LATEX_HEADER_EXTRA: \footnotesize Compiled with
#+LATEX_HEADER_EXTRA: \includegraphics[width = 1.618ex]{C:/Users/blend/AppData/Roaming/.emacs.d/resources/images/icons/EmacsIcon.png}/
#+LATEX_HEADER_EXTRA: \includegraphics[width = 1.618ex]{C:/Users/blend/AppData/Roaming/.emacs.d/resources/images/icons/Org-mode-unicorn.png}/
#+LATEX_HEADER_EXTRA: \includegraphics[width = 1.618ex]{C:/Users/blend/AppData/Roaming/.emacs.d/resources/images/icons/LuaTeX_logo.png}/...\\ 
#+LATEX_HEADER_EXTRA: Copyright \copyright~2020 Marius Peter. All rights reserved.}
Copyright 2019--2024 Marius PETER