From be7e899303924dd2af0ef3142351a1c91b1841be Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Thu, 20 Jan 2022 18:55:58 +0100 Subject: Preparing to upgrade VPS to Debian 11! --- resources/custom.el | 7 ++++ resources/templates/documents/gnu-default.setup | 45 +++++++++++++++++++------ 2 files changed, 42 insertions(+), 10 deletions(-) (limited to 'resources') diff --git a/resources/custom.el b/resources/custom.el index f63bdea..0844c39 100644 --- a/resources/custom.el +++ b/resources/custom.el @@ -9,6 +9,7 @@ ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. + '(TeX-engine 'luatex) '(TeX-view-program-selection '((output-pdf "PDF Tools") ((output-dvi has-no-display-manager) @@ -42,6 +43,12 @@ '("#CC9393" "#DFAF8F" "#F0DFAF" "#7F9F7F" "#BFEBBF" "#93E0E3" "#94BFF3" "#DC8CC3")) '(org-agenda-include-diary t) '(org-ditaa-jar-path "/usr/share/java/ditaa/ditaa-0.11.jar") + '(org-file-apps + '((auto-mode . emacs) + (directory . emacs) + ("\\.mm\\'" . default) + ("\\.x?html?\\'" . default) + ("\\.pdf\\'" . system))) '(org-fontify-done-headline nil) '(org-latex-compiler "lualatex") '(org-latex-remove-logfiles t) diff --git a/resources/templates/documents/gnu-default.setup b/resources/templates/documents/gnu-default.setup index 015da15..ba0a418 100644 --- a/resources/templates/documents/gnu-default.setup +++ b/resources/templates/documents/gnu-default.setup @@ -1,31 +1,56 @@ # -*- mode: org; eval: (visual-line-mode); -*- -# Hide Org mode tags -#+OPTIONS: tags:nil + + + +* \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 -# Ensure room for header and footer + +* 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 +Beautiful fonts ONLY #+LATEX_HEADER: \usepackage{fontspec} -# Regular font +Regular font #+LATEX_HEADER: \setmainfont[Scale=0.872]{Public Sans} -# Monospaced font -#+LATEX_HEADER: \setmonofont{Courier Prime} +Monospaced font +# +LATEX_HEADER: \setmonofont{CourierPrime.ttf} -# Icon font <3 +Icon font <3 #+LATEX_HEADER: \usepackage[fixed]{fontawesome5} -# Get total page count, to later insert in page footer. +Get total page count, to later insert in page footer. #+LATEX_HEADER: \usepackage{lastpage} -# Provide access to \title, \author, and \date. +Provide access to \title, \author, and \date. #+LATEX_HEADER: \usepackage{titling} # Colors are used for gray header and footer content. -- cgit v1.2.3