From 398a171594a5ff51416f5eab06037026c419314a Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Mon, 30 Aug 2021 22:18:48 -0700 Subject: Snippets :-) --- snippets/org-mode/default | 4 ++-- templates/documents/default-title.org | 16 ---------------- templates/documents/gnu-default.setup | 7 +++---- templates/documents/title-default.org | 16 ++++++++++++++++ templates/documents/title-short.org | 4 ++-- 5 files changed, 23 insertions(+), 24 deletions(-) delete mode 100644 templates/documents/default-title.org create mode 100644 templates/documents/title-default.org diff --git a/snippets/org-mode/default b/snippets/org-mode/default index ec34fc2..f667c69 100644 --- a/snippets/org-mode/default +++ b/snippets/org-mode/default @@ -8,8 +8,8 @@ #+AUTHOR: ${2:`(if (eq user-full-name "") "Default Author" user-full-name)`} #+DATE: ${3:`(with-temp-buffer (org-insert-time-stamp (current-time)))`} -#+SETUPFILE: ~/.emacs.d/templates/documents/${4:`(if (string= system-type "gnu/linux") "gnu-" "ms-:")`}default.org -#+INCLUDE: ~/.emacs.d/templates/documents/default.org_title +#+SETUPFILE: ~/.emacs.d/templates/documents/${4:`(if (string= system-type "gnu/linux") "gnu-" "ms-:")`}default.setup +#+INCLUDE: ~/.emacs.d/templates/documents/title-default.org $0 diff --git a/templates/documents/default-title.org b/templates/documents/default-title.org deleted file mode 100644 index c2c3c09..0000000 --- a/templates/documents/default-title.org +++ /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 diff --git a/templates/documents/gnu-default.setup b/templates/documents/gnu-default.setup index a06cbd2..6eec9f5 100644 --- a/templates/documents/gnu-default.setup +++ b/templates/documents/gnu-default.setup @@ -7,10 +7,10 @@ # Ensure room for header and footer #+LATEX_HEADER: \usepackage[ -#+LATEX_HEADER: left = 1.75in, -#+LATEX_HEADER: right = 1.75in, +#+LATEX_HEADER: left = 1.5in, +#+LATEX_HEADER: right = 1.5in, #+LATEX_HEADER: top = 1in , -#+LATEX_HEADER: bottom = 1.75in,]{geometry} +#+LATEX_HEADER: bottom = 1.5in,]{geometry} # Beautiful fonts ONLY #+LATEX_HEADER: \usepackage{fontspec} @@ -19,7 +19,6 @@ # 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. diff --git a/templates/documents/title-default.org b/templates/documents/title-default.org new file mode 100644 index 0000000..c2c3c09 --- /dev/null +++ b/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/templates/documents/title-short.org b/templates/documents/title-short.org index 3a5932d..5f46ef0 100644 --- a/templates/documents/title-short.org +++ b/templates/documents/title-short.org @@ -1,8 +1,8 @@ -# -*- mode: org; -*- # +# -*- mode: org; -*- #+OPTIONS: title:nil toc:nil -#+LATEX: \noindent\jost\huge\textbf{\thetitle}\\[1em] +#+LATEX: \noindent\huge\textbf{\thetitle}\\[1em] #+LATEX: \large\texttt{\theauthor}\\ #+LATEX: \thedate\\[1em] #+LATEX: \normalsize\normalfont -- cgit v1.2.3