summaryrefslogtreecommitdiff
path: root/blendoit/blendoit-init.org
diff options
context:
space:
mode:
authorBlendoit <blendoit@gmail.com>2020-09-12 13:21:50 -0700
committerBlendoit <blendoit@gmail.com>2020-09-12 13:21:50 -0700
commitb86df4b1fa657c359a0ceca160c801c0c486cb33 (patch)
tree0b2908f9718bd69c49bbc284bead8af8d9c5e336 /blendoit/blendoit-init.org
parent6df26c02303da93ae592b58c06e18adb646f47db (diff)
org-latex-pdf-process in literate config file.
Diffstat (limited to 'blendoit/blendoit-init.org')
-rw-r--r--blendoit/blendoit-init.org43
1 files changed, 31 insertions, 12 deletions
diff --git a/blendoit/blendoit-init.org b/blendoit/blendoit-init.org
index 8422964..aadb00c 100644
--- a/blendoit/blendoit-init.org
+++ b/blendoit/blendoit-init.org
@@ -7,18 +7,16 @@
#+INCLUDE: ~/.emacs.d/templates/documents/general.org_title
#+LATEX: \begin{abstract}
-GNU Emacs is most often used as a text editor.
-The utmost level of customization is afforded by enabling the user
-to rewrite \textit{any} part of the source code and observe the editor's
-modified behaviour in real time. Since its inception in 1984, GNU Emacs
-has grown to be much more than a full-featured, high-productivity
-text editor---new \textit{modes} have been written to interact with
-hundreds of file formats, including \texttt{.txt}, \texttt{.pdf},
-\texttt{.jpg}, \texttt{.csv}, and \texttt{.zip} just to name a few.
-This configuration file itself was written in \textit{Org mode},
-a collection of functions enabling the harmonious mixing of code
-and comments in view of publication:
-this is the endgame of \textit{literate programming}.
+GNU Emacs is most often used as a text editor. The utmost level of
+customization is afforded by enabling the user to rewrite \textit{any} part of
+the source code and observe the editor's modified behaviour in real time. Since
+its inception in 1984, GNU Emacs has grown to be much more than a
+full-featured, high-productivity text editor---new \textit{modes} have been
+written to interact with hundreds of file formats, including \texttt{.txt},
+\texttt{.pdf}, \texttt{.jpg}, \texttt{.csv}, and \texttt{.zip} just to name a
+few. This configuration file itself was written in \textit{Org mode}, a
+collection of functions enabling the harmonious mixing of code and comments in
+view of publication: this is the endgame of \textit{literate programming}.
#+LATEX: \end{abstract}
* Introduction
@@ -390,6 +388,27 @@ format:
*** LaTeX export
+We'll be compiling our documents with LuaTeX. This will afford us some
+future-proofing, since it was designated as the successor to pdfTeX by the
+latter's creators.
+
+First, we define the command executed when an Org file is exported to
+LaTeX. We'll use =latexmk=, the Perl script which automagically runs binaries
+related to LaTeX in the correct order and the right amount of times.
+
+Options and why we need them:
+- ~-shell-excape~ :: required by minted to color source blocks
+- ~-pdflatex=lualatex~ :: we use lualatex to generate our PDF
+- ~-interaction=nonstopmode~ :: go as far as possible without prompting user
+ for input
+
+#+BEGIN_SRC emacs-lisp
+ (setq org-latex-pdf-process
+ '("latexmk -pdf -f \
+ -pdflatex=lualatex -shell-escape \
+ -interaction=nonstopmode -outdir=%o %f"))
+#+END_SRC
+
We customize the format for org time stamps to make them pop in our exported
LaTeX documents.
Copyright 2019--2024 Marius PETER