diff options
author | Marius Peter <marius.peter@tutanota.com> | 2021-09-13 22:49:27 -0700 |
---|---|---|
committer | Marius Peter <marius.peter@tutanota.com> | 2021-09-13 22:49:27 -0700 |
commit | c3875265ccdd1d72f06a16ab1ca725b7cb2ec35b (patch) | |
tree | e6b79624e36b4b632398f318bc4ec04034ec88ee /resources/templates/documents | |
parent | cc5cd4196c306b176f8af0124dc3d73b525024b1 (diff) |
Consolidated resources and meta files.
Diffstat (limited to 'resources/templates/documents')
-rw-r--r-- | resources/templates/documents/.gitignore | 2 | ||||
-rw-r--r-- | resources/templates/documents/gnu-default.setup | 47 | ||||
-rw-r--r-- | resources/templates/documents/letter.setup | 22 | ||||
-rw-r--r-- | resources/templates/documents/ms-default.setup | 61 | ||||
-rw-r--r-- | resources/templates/documents/ms-word.setup | 31 | ||||
-rw-r--r-- | resources/templates/documents/title-default.org | 16 | ||||
-rw-r--r-- | resources/templates/documents/title-short.org | 8 | ||||
-rw-r--r-- | resources/templates/documents/wealthy-title.setup | 16 | ||||
-rw-r--r-- | resources/templates/documents/wealthy.setup | 24 |
9 files changed, 227 insertions, 0 deletions
diff --git a/resources/templates/documents/.gitignore b/resources/templates/documents/.gitignore new file mode 100644 index 0000000..9088b08 --- /dev/null +++ b/resources/templates/documents/.gitignore @@ -0,0 +1,2 @@ +auto/ +*.pdf
\ No newline at end of file diff --git a/resources/templates/documents/gnu-default.setup b/resources/templates/documents/gnu-default.setup new file mode 100644 index 0000000..5e45a06 --- /dev/null +++ b/resources/templates/documents/gnu-default.setup @@ -0,0 +1,47 @@ +# -*- 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[ +#+LATEX_HEADER: left = 1.2in, +#+LATEX_HEADER: right = 1.2in, +#+LATEX_HEADER: top = 1in , +#+LATEX_HEADER: bottom = 1.5in,]{geometry} + +# Beautiful fonts ONLY +#+LATEX_HEADER: \usepackage{fontspec} +# Regular font +#+LATEX_HEADER: \setmainfont[Scale=0.872]{Public Sans} +# Monospaced font +#+LATEX_HEADER: \setmonofont{Courier Prime} + +# 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}\large\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: Page \thepage/\pageref*{LastPage}\\[0.8em] +#+LATEX_HEADER_EXTRA: \footnotesize Compiled with +#+LATEX_HEADER_EXTRA: \includegraphics[width=1.618ex]{~/.emacs.d/img/icons/EmacsIcon.png}/ +#+LATEX_HEADER_EXTRA: \includegraphics[width=1.618ex]{~/.emacs.d/img/icons/Org-mode-unicorn.png}/ +#+LATEX_HEADER_EXTRA: \includegraphics[width=1.618ex]{~/.emacs.d/img/icons/LuaTeX_logo.png}/...\\ +#+LATEX_HEADER_EXTRA: Copyright \copyright~2021 Marius Peter. All rights reserved.}} diff --git a/resources/templates/documents/letter.setup b/resources/templates/documents/letter.setup new file mode 100644 index 0000000..45d2252 --- /dev/null +++ b/resources/templates/documents/letter.setup @@ -0,0 +1,22 @@ +# -*- mode: org; eval: (visual-line-mode); -*- +#+OPTIONS: title:nil + +#+LATEX_CLASS: letter + +# Ensure room for header and footer +#+LATEX_HEADER: \usepackage{geometry}[ +#+LATEX_HEADER: left = 1in , +#+LATEX_HEADER: right = 1in , +#+LATEX_HEADER: top = 1in , +#+LATEX_HEADER: bottom = 1in ,] + +# Beautiful fonts ONLY +#+LATEX_HEADER: \usepackage{fontspec} +# Regular font +#+LATEX_HEADER: \setmainfont{Linux Libertine} +# Monospaced font +#+LATEX_HEADER: \setmonofont{Courier Prime} + +# #+LATEX_HEADER: \usepackage{draftwatermark} +# #+LATEX_HEADER: \SetWatermarkText{Draft} +# #+LATEX_HEADER: \SetWatermarkScale{1} diff --git a/resources/templates/documents/ms-default.setup b/resources/templates/documents/ms-default.setup new file mode 100644 index 0000000..f7e5fbb --- /dev/null +++ b/resources/templates/documents/ms-default.setup @@ -0,0 +1,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/img/icons/EmacsIcon.png}/ +#+LATEX_HEADER_EXTRA: \includegraphics[width = 1.618ex]{C:/Users/blend/AppData/Roaming/.emacs.d/img/icons/Org-mode-unicorn.png}/ +#+LATEX_HEADER_EXTRA: \includegraphics[width = 1.618ex]{C:/Users/blend/AppData/Roaming/.emacs.d/img/icons/LuaTeX_logo.png}/...\\ +#+LATEX_HEADER_EXTRA: Copyright \copyright~2020 Marius Peter. All rights reserved.} diff --git a/resources/templates/documents/ms-word.setup b/resources/templates/documents/ms-word.setup new file mode 100644 index 0000000..a19f548 --- /dev/null +++ b/resources/templates/documents/ms-word.setup @@ -0,0 +1,31 @@ +# -*- 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[left=1in,% +#+LATEX_HEADER: right=1in,% +#+LATEX_HEADER: top=1in,% +#+LATEX_HEADER: bottom=1.75in]{geometry} + +# Beautiful fonts ONLY +#+LATEX_HEADER: \usepackage{fontspec} +#+LATEX_HEADER: \setmainfont{Carlito} +#+LATEX_HEADER: \setmonofont{Liberation Mono} + +# Get total page count to insert in footer +#+LATEX_HEADER: \usepackage{lastpage} +#+LATEX_HEADER: \usepackage{titling} + +# 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]{\theauthor} +#+LATEX_HEADER_EXTRA: \fancyhead[C]{\large\textbf{\thetitle}} +#+LATEX_HEADER_EXTRA: \fancyhead[R]{\thedate} +#+LATEX_HEADER_EXTRA: \fancyfoot[C]{\hrulefill\\[0.8em] Page \thepage/\pageref*{LastPage}} diff --git a/resources/templates/documents/title-default.org b/resources/templates/documents/title-default.org new file mode 100644 index 0000000..c2c3c09 --- /dev/null +++ b/resources/templates/documents/title-default.org @@ -0,0 +1,16 @@ +# -*- mode: org; -*- # + +#+OPTIONS: title:nil toc:nil +# Increase spacing between header rule and main text body +#+LATEX: \rule[-2in]{0pt}{0pt}\\ +#+LATEX: \Huge\textbf{\thetitle}\\[1in] +#+LATEX: \LARGE\texttt{\theauthor}\\ +#+LATEX: \thedate + +#+LATEX: \clearpage + +#+LATEX: \normalsize +#+LATEX: \tableofcontents +#+LATEX: \listoffigures +#+LATEX: \listoftables +#+LATEX: \clearpage diff --git a/resources/templates/documents/title-short.org b/resources/templates/documents/title-short.org new file mode 100644 index 0000000..5f46ef0 --- /dev/null +++ b/resources/templates/documents/title-short.org @@ -0,0 +1,8 @@ +# -*- mode: org; -*- + +#+OPTIONS: title:nil toc:nil + +#+LATEX: \noindent\huge\textbf{\thetitle}\\[1em] +#+LATEX: \large\texttt{\theauthor}\\ +#+LATEX: \thedate\\[1em] +#+LATEX: \normalsize\normalfont diff --git a/resources/templates/documents/wealthy-title.setup b/resources/templates/documents/wealthy-title.setup new file mode 100644 index 0000000..50afd73 --- /dev/null +++ b/resources/templates/documents/wealthy-title.setup @@ -0,0 +1,16 @@ +# -*- mode: org; -*- # + +#+OPTIONS: title:nil toc:nil +# Increase spacing between header rule and main text body +#+LATEX: \rule[-2in]{0pt}{0pt}\\ +#+LATEX: \Huge\textbf{\thetitle}\\[1in] +#+LATEX: \LARGE\texttt{Lord \theauthor}\\ +#+LATEX: \thedate + +#+LATEX: \clearpage + +#+LATEX: \normalsize +#+LATEX: \tableofcontents +#+LATEX: \listoffigures +#+LATEX: \listoftables +#+LATEX: \clearpage diff --git a/resources/templates/documents/wealthy.setup b/resources/templates/documents/wealthy.setup new file mode 100644 index 0000000..eaf3b20 --- /dev/null +++ b/resources/templates/documents/wealthy.setup @@ -0,0 +1,24 @@ +# -*- mode: org; eval: (visual-line-mode); -*- + +#+LATEX_HEADER: \usepackage[left=1.5in,% +#+LATEX_HEADER: right=2.0in,% +#+LATEX_HEADER: top=1.5in,% +#+LATEX_HEADER: bottom=1.5in]{geometry} + +#+LATEX_HEADER: \usepackage{fontspec} +#+LATEX_HEADER: \setmainfont{EB Garamond} +#+LATEX_HEADER: \setmonofont{Courier Prime} + +# Get total page count to insert in footer +#+LATEX_HEADER: \usepackage{lastpage} +#+LATEX_HEADER: \usepackage{titling} + +#+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{\textit{Lord \theauthor}}} +#+LATEX_HEADER_EXTRA: \fancyhead[C]{\Large\textbf{\thetitle}} +#+LATEX_HEADER_EXTRA: \fancyhead[R]{\texttt{\textit{\thedate}}} +#+LATEX_HEADER_EXTRA: \renewcommand{\headrulewidth}{1.5pt} +#+LATEX_HEADER_EXTRA: \fancyfoot[C]{\hrulefill\\[0.8em] Page \thepage\\[0.8em]\footnotesize Tastefully assembled with \includegraphics[width=1.618ex]{~/.emacs.d/img/icons/EmacsIcon.png}/\includegraphics[width=1.618ex]{~/.emacs.d/img/icons/Org-mode-unicorn.png}/\includegraphics[width=1.618ex]{~/.emacs.d/img/icons/LuaTeX_logo.png}/...\\ Copyright \copyright~2020 Marius Peter. All rights reserved. } |