summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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