summaryrefslogtreecommitdiff
path: root/smart-documents.org
diff options
context:
space:
mode:
authorMarius Peter <marius.peter@tutanota.com>2023-01-08 17:40:09 +0100
committerMarius Peter <marius.peter@tutanota.com>2023-01-08 17:40:09 +0100
commit72dd3bf26298f5337f30f8edc23d9c86245eb2f5 (patch)
tree347927cc06ed03ad95a984e654546d6502e2c892 /smart-documents.org
parent7c0b1b69c9d0ebce88c8abe83a56c4e0cd8bc587 (diff)
Miscellaneous small changes.
Diffstat (limited to 'smart-documents.org')
-rw-r--r--smart-documents.org26
1 files changed, 17 insertions, 9 deletions
diff --git a/smart-documents.org b/smart-documents.org
index 3afffdd..a1fe829 100644
--- a/smart-documents.org
+++ b/smart-documents.org
@@ -1279,7 +1279,7 @@ shortcut (cf. Section [[Open Org mode document properties]]).
# reader. Long live ISO-8601!
# https://orgmode.org/manual/Custom-time-format.html
-More literary timestamps are exported to LaTeX using the following
+More literary timestamps can be exported to LaTeX using the following
custom format:
#+BEGIN_SRC emacs-lisp :tangle yes
@@ -1405,9 +1405,8 @@ Options and why we need them:
#+BEGIN_SRC emacs-lisp :tangle yes
(setq org-latex-pdf-process
- '("latexmk -pdf -f \
- -pdflatex=lualatex -shell-escape \
- -interaction=nonstopmode -outdir=%o %f"))
+ '("latexmk -f -pdf -%latex \
+-interaction=nonstopmode -output-directory=%o %f -shell-escape"))
#+END_SRC
**** Exporting timestamps
@@ -1496,10 +1495,20 @@ they were recorded, i.e. chronologically.
**** Extra LaTeX class
-This /letter/ template completes the other default LaTeX classes.
+These /letter/ classes (LaTeX templates) complete the other default
+LaTeX classes. The ~lettre~ class is not always included by default
+in our LaTeX distribution; it can be installed from the [[https://ctan.org/pkg/lettre][CTAN]].
#+BEGIN_SRC emacs-lisp :tangle yes
(require 'ox-publish)
+
+ (add-to-list 'org-latex-classes
+ '("lettre"
+ "\\documentclass[10pt]{lettre}"
+ ("\\section{%s}" . "\\section*{%s}")
+ ("\\subsection*{%s}" . "\\subsection*{%s}")
+ ("\\subsubsection*{%s}" . "\\subsubsection*{%s}")))
+
(add-to-list 'org-latex-classes
'("letter"
"\\documentclass[11pt]{letter}"
@@ -1676,8 +1685,7 @@ PDF. The binding is defined in Section [[Export to PDF]].
(message "No quick-export implemented for emacs-lisp-mode yet."))
((eq major-mode 'ledger-report-mode)
(sd-quick-export--ledger-report))
- (t (message (format "No sd-quick-export backend for %s."
- major-mode)))))
+ (t (message (format "No sd-quick-export backend for %s." major-mode)))))
#+END_SRC
** Operate on whole buffer
@@ -1951,8 +1959,8 @@ disrupt a user's existing documents. We automatically break lines
longer than =fill-column=.
#+BEGIN_SRC emacs-lisp :tangle yes
- (add-hook 'org-mode-hook
- 'turn-on-auto-fill)
+ (add-hook 'org-mode-hook
+ 'turn-on-auto-fill)
#+END_SRC
** Text
Copyright 2019--2024 Marius PETER