From 1656a861308653315863b1225eecc8153c303e00 Mon Sep 17 00:00:00 2001 Message-Id: <1656a861308653315863b1225eecc8153c303e00.1718287271.git.mdw@distorted.org.uk> From: Mark Wooding Date: Wed, 22 Nov 2017 18:56:08 +0000 Subject: [PATCH] el/dot-emacs.el: Register `strayman' with newer-style Org mode. Organization: Straylight/Edgeware From: Mark Wooding The list of classes has changed name (grrr...), though fortunately the data structure hasn't changed. --- el/dot-emacs.el | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/el/dot-emacs.el b/el/dot-emacs.el index 6930bda..20ed28c 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -470,19 +470,21 @@ (define-key keymap key nil)) (dolist (key replacements) (define-key keymap key binding)))))) -(eval-after-load "org-latex" - '(progn - (push '("strayman" - "\\documentclass{strayman} +(defvar mdw-org-latex-defs + '(("strayman" + "\\documentclass{strayman} \\usepackage[utf8]{inputenc} \\usepackage[palatino, helvetica, courier, maths=cmr]{mdwfonts} \\usepackage{graphicx, tikz, mdwtab, mdwmath, crypto, longtable}" - ("\\section{%s}" . "\\section*{%s}") - ("\\subsection{%s}" . "\\subsection*{%s}") - ("\\subsubsection{%s}" . "\\subsubsection*{%s}") - ("\\paragraph{%s}" . "\\paragraph*{%s}") - ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) - org-export-latex-classes))) + ("\\section{%s}" . "\\section*{%s}") + ("\\subsection{%s}" . "\\subsection*{%s}") + ("\\subsubsection{%s}" . "\\subsubsection*{%s}") + ("\\paragraph{%s}" . "\\paragraph*{%s}") + ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))) + +(eval-after-load "org-latex" + '(setq org-export-latex-classes + (append mdw-org-latex-defs org-export-latex-classes))) (setq org-export-docbook-xslt-proc-command "xsltproc --output %o %s %i" org-export-docbook-xsl-fo-proc-command "fop %i.safe %o" -- [mdw]