From 1012311f09440edb66b377ef16ec108ccd16e378 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Wed, 23 Dec 2020 16:39:03 -0800 Subject: Templates. --- templates/documents/default.org | 56 ----------------------------------- templates/documents/gnu-default.org | 58 ++++++++++++++++++++++++++++++++++++ templates/documents/ms-default.org | 59 +++++++++++++++++++++++++++++++++++++ 3 files changed, 117 insertions(+), 56 deletions(-) delete mode 100644 templates/documents/default.org create mode 100644 templates/documents/gnu-default.org create mode 100644 templates/documents/ms-default.org diff --git a/templates/documents/default.org b/templates/documents/default.org deleted file mode 100644 index 6b04288..0000000 --- a/templates/documents/default.org +++ /dev/null @@ -1,56 +0,0 @@ -# -*- 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{Public Sans} -#+LATEX_HEADER: \setmonofont{Courier Prime} - -# 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\\[0.8em] Page \thepage/\pageref*{LastPage}\\[0.8em]\footnotesize Compiled 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.} - -#+BEGIN_SRC emacs-lisp :exports none :cache no :results raw - (concat "#+LATEX_HEADER_EXTRA:" - "\\fancyfoot[C]{\\hrulefill\\\\[0.8em] " - "Page \\thepage/\\pageref*{LastPage}\\\\[0.8em] " - "\\footnotesize Compiled 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}/..." - " On \\texttt{" (with-temp-buffer (org-insert-time-stamp (current-time))) - "}\\\\ Copyright \\copyright~2020 Marius Peter. All rights reserved.}") -#+END_SRC - -# #+RESULTS: -# #+LATEX_HEADER_EXTRA:\fancyfoot[C]{\hrulefill\\[0.8em] Page \thepage/\pageref*{LastPage}\\[0.8em] \footnotesize Compiled 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}/... On \texttt{<2020-11-23 Mon>}\\ Copyright \copyright~2020 Marius Peter. All rights reserved.} diff --git a/templates/documents/gnu-default.org b/templates/documents/gnu-default.org new file mode 100644 index 0000000..b6bad2c --- /dev/null +++ b/templates/documents/gnu-default.org @@ -0,0 +1,58 @@ +# -*- 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} +# Regular font +#+LATEX_HEADER: \setmainfont{Public Sans} +# Monospaced font +#+LATEX_HEADER: \setmonofont{Courier Prime} + +# 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\\[0.8em] Page \thepage/\pageref*{LastPage}\\[0.8em]\footnotesize Compiled 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.} + +#+BEGIN_SRC emacs-lisp :exports none :cache no :results raw + (concat "#+LATEX_HEADER_EXTRA:" + "\\fancyfoot[C]{\\hrulefill\\\\[0.8em] " + "Page \\thepage/\\pageref*{LastPage}\\\\[0.8em] " + "\\footnotesize Compiled 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}/..." + " On \\texttt{" (with-temp-buffer (org-insert-time-stamp (current-time))) + "}\\\\ Copyright \\copyright~2020 Marius Peter. All rights reserved.}") +#+END_SRC + +# #+RESULTS: +# #+LATEX_HEADER_EXTRA:\fancyfoot[C]{\hrulefill\\[0.8em] Page \thepage/\pageref*{LastPage}\\[0.8em] \footnotesize Compiled 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}/... On \texttt{<2020-11-23 Mon>}\\ Copyright \copyright~2020 Marius Peter. All rights reserved.} diff --git a/templates/documents/ms-default.org b/templates/documents/ms-default.org new file mode 100644 index 0000000..2118c33 --- /dev/null +++ b/templates/documents/ms-default.org @@ -0,0 +1,59 @@ +# -*- 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} +# Regular font +#+LATEX_HEADER: \setmainfont{Public Sans}[ +#+LATEX_HEADER: Path = C:/Users/blend/AppData/Roaming/.emacs.d/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/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.} -- cgit v1.2.3