blob: 1e896c8ae7b0998012d30f0be1d42fb78d42df92 (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# -*- mode: org; eval: (visual-line-mode); -*-
* \huge Default Org setup file for GNU/Linux systems
:PROPERTIES:
:UNNUMBERED: t
:END:
#+ATTR_LATEX: :center nil
| =From= | Marius Peter |
| =To= | {{{SDs}}} users |
| =Date= | <2021-06-22 Tue> |
| =Subject= | Safran template for Emacs Org mode |
#+LATEX: \tableofcontents
* Options
Hide Org mode tags
#+OPTIONS: tags:nil title:nil
#+LATEX_CLASS: article
* Macros
#+MACRO: SD /Smart Document/
#+MACRO: SDs /Smart Documents/
Ensure room for header and footer
#+LATEX_HEADER: \usepackage[
#+LATEX_HEADER: left = 1.2in,
#+LATEX_HEADER: right = 1.2in,
#+LATEX_HEADER: top = 1.0in ,
#+LATEX_HEADER: bottom = 1.8in,]{geometry}
Beautiful fonts ONLY
#+LATEX_HEADER: \usepackage{fontspec}
Regular font
#+LATEX_HEADER: \setmainfont[Scale=0.872]{Public Sans}
Monospaced font
# +LATEX_HEADER: \setmonofont{CourierPrime.ttf}
Icon font <3
#+LATEX_HEADER: \usepackage[fixed]{fontawesome5}
Get total page count, to later insert in page footer.
#+LATEX_HEADER: \usepackage{lastpage}
Provide access to \title, \author, and \date.
#+LATEX_HEADER: \usepackage{titling}
# Colors are used for gray header and footer content.
#+LATEX_HEADER: \usepackage{xcolor}
# 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}\color{gray}\texttt{\theauthor}}
#+LATEX_HEADER_EXTRA: \fancyhead[C]{\color{gray}\bfseries\thetitle}
#+LATEX_HEADER_EXTRA: \fancyhead[R]{\color{gray}\thedate}
# Make header line gray
#+LATEX_HEADER_EXTRA: \renewcommand{\headrule}{\hbox to\headwidth{%
#+LATEX_HEADER_EXTRA: \color{gray}\leaders\hrule height \headrulewidth\hfill}
#+LATEX_HEADER_EXTRA: \fancyfoot[C]{\color{gray}\hrulefill\\[0.8em]
#+LATEX_HEADER_EXTRA: {\bfseries Page \thepage/\pageref*{LastPage}}\\[0.8em]
#+LATEX_HEADER_EXTRA: \footnotesize \texttt{Compiled with Emacs, Org mode, LuaTeX...}\\
# +LATEX_HEADER_EXTRA: \includegraphics[width=1.618ex]{~/.emacs.d/resources/images/icons/EmacsIcon.png}/
# +LATEX_HEADER_EXTRA: \includegraphics[width=1.618ex]{~/.emacs.d/resources/images/icons/Org-mode-unicorn.png}/
# +LATEX_HEADER_EXTRA: \includegraphics[width=1.618ex]{~/.emacs.d/resources/images/icons/LuaTeX_logo.png}/...\\
#+LATEX_HEADER_EXTRA: \texttt{Copyright \copyright~2021 Marius Peter. All rights reserved.}}}
|