summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--resources/custom.el7
-rw-r--r--resources/templates/documents/gnu-default.setup45
-rw-r--r--site/README.org12
-rw-r--r--smart-documents.org1
-rw-r--r--smart-documents.pdfbin391296 -> 0 bytes
5 files changed, 55 insertions, 10 deletions
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.
diff --git a/site/README.org b/site/README.org
new file mode 100644
index 0000000..aaa0960
--- /dev/null
+++ b/site/README.org
@@ -0,0 +1,12 @@
+#+TITLE: README for {{{SD}}} website
+
+#+MACRO: SD /Smart Documents/
+
+
+* Publishing the website
+
+Use =make= to build the {{{SD}}} website. Each =make= rule loads the
+Emacs Lisp code in ~publish.el~ and executes the Org mode ~ox-publish~
+command, each time passing as argument the =make= target. This ensures
+the Makefile is highly predictable because it depends as much as
+possible on Emacs.
diff --git a/smart-documents.org b/smart-documents.org
index 8fe6335..e180f58 100644
--- a/smart-documents.org
+++ b/smart-documents.org
@@ -2225,4 +2225,5 @@ tangling of this very file.
: Local Variables:
: org-confirm-babel-evaluate: t
+: TeX-engine: luatex
: End:
diff --git a/smart-documents.pdf b/smart-documents.pdf
deleted file mode 100644
index 89e988c..0000000
--- a/smart-documents.pdf
+++ /dev/null
Binary files differ
Copyright 2019--2024 Marius PETER