From 5efae28e15e6562038aec420dd6cc7882d436e33 Mon Sep 17 00:00:00 2001 From: Blendoit Date: Fri, 23 Oct 2020 19:50:21 -0700 Subject: Public Sans is now default font + chad vs. virgin font meme --- templates/documents/default.org | 37 +++++++++++++++++++++++++++++++++++ templates/documents/default.org_title | 16 +++++++++++++++ templates/documents/general.org | 35 --------------------------------- templates/documents/general.org_title | 16 --------------- 4 files changed, 53 insertions(+), 51 deletions(-) create mode 100644 templates/documents/default.org create mode 100644 templates/documents/default.org_title delete mode 100644 templates/documents/general.org delete mode 100644 templates/documents/general.org_title (limited to 'templates/documents') diff --git a/templates/documents/default.org b/templates/documents/default.org new file mode 100644 index 0000000..cc99dc6 --- /dev/null +++ b/templates/documents/default.org @@ -0,0 +1,37 @@ +# -*- 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,right=1in,top=1in,bottom=1.75in]{geometry} +# Beautiful fonts ONLY +#+LATEX_HEADER: \usepackage{fontspec} +#+LATEX_HEADER: \setmainfont{public sans} +#+LATEX_HEADER: \setmonofont{hack} + +# Get total page count to insert in footer +#+LATEX_HEADER: \usepackage{lastpage} +#+LATEX_HEADER: \usepackage{titling} + +# #+LATEX_HEADER: \usepackage{enumitem} +# #+LATEX_HEADER: \setlist{noitemsep} + +# 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]{\hrulefill\\[10pt] Page \thepage/\pageref*{LastPage}\\[8pt] \footnotesize Compiled with \includegraphics[height=1.8ex]{./img/EmacsIcon.png}\\ Copyright \copyright~2020 Marius Peter. All rights reserved. } diff --git a/templates/documents/default.org_title b/templates/documents/default.org_title new file mode 100644 index 0000000..c2c3c09 --- /dev/null +++ b/templates/documents/default.org_title @@ -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/templates/documents/general.org b/templates/documents/general.org deleted file mode 100644 index 4a3cc56..0000000 --- a/templates/documents/general.org +++ /dev/null @@ -1,35 +0,0 @@ -# -*- mode: org; -*- # - -# Hide Org mode tags -#+OPTIONS: tags:nil - -#+LATEX_CLASS: article - -# Ensure room for header and footer -#+LATEX_HEADER: \usepackage[left=1in,right=1in,top=1in,bottom=1.75in]{geometry} -# Beautiful fonts ONLY -#+LATEX_HEADER: \usepackage{fontspec} -#+LATEX_HEADER: \setmainfont{linux libertine} -#+LATEX_HEADER: \setmonofont{hermit} - -# Get total page count to insert in footer -#+LATEX_HEADER: \usepackage{lastpage} -#+LATEX_HEADER: \usepackage{titling} - -# #+LATEX_HEADER: \usepackage{enumitem} -# #+LATEX_HEADER: \setlist{noitemsep} - -# 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 - -#+LATEX_HEADER: \usepackage{fancyhdr} -#+LATEX_HEADER: \setlength{\headheight}{40pt} -#+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.4pt} -#+LATEX_HEADER_EXTRA: \fancyfoot[C]{Page \thepage/\pageref*{LastPage}\\ \hrulefill \\ \footnotesize Copyright \copyright~2020 Marius Peter. All rights reserved.} diff --git a/templates/documents/general.org_title b/templates/documents/general.org_title deleted file mode 100644 index c2c3c09..0000000 --- a/templates/documents/general.org_title +++ /dev/null @@ -1,16 +0,0 @@ -# -*- 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 -- cgit v1.2.3