summaryrefslogtreecommitdiff
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
parent6df26c02303da93ae592b58c06e18adb646f47db (diff)
org-latex-pdf-process in literate config file.
-rw-r--r--blendoit/blendoit-init.org43
-rw-r--r--blendoit/blendoit-init.pdfbin118502 -> 120207 bytes
-rw-r--r--init-custom.el2
3 files changed, 31 insertions, 14 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.
diff --git a/blendoit/blendoit-init.pdf b/blendoit/blendoit-init.pdf
index 1f28bb5..cbea260 100644
--- a/blendoit/blendoit-init.pdf
+++ b/blendoit/blendoit-init.pdf
Binary files differ
diff --git a/init-custom.el b/init-custom.el
index 3574a4e..de83b8b 100644
--- a/init-custom.el
+++ b/init-custom.el
@@ -81,8 +81,6 @@
("\\subsubsection*{%s}" . "\\subsubsection*{%s}"))))
'(org-latex-logfiles-extensions
'("aux" "bcf" "blg" "fdb_latexmk" "fls" "figlist" "idx" "log" "nav" "out" "ptc" "run.xml" "snm" "toc" "vrb" "xdv"))
- '(org-latex-pdf-process
- '("latexmk -pdf -f -interaction=nonstopmode -shell-escape -pdflatex=\"lualatex\" -outdir=%o %f"))
'(org-latex-toc-command "\\tableofcontents\\clearpage")
'(org-log-done 'time)
'(org-startup-align-all-tables t)
Copyright 2019--2024 Marius PETER