]> git.donarmstrong.com Git - emacs.git/commitdiff
Add letter classes to org mode export
authorDon Armstrong <don@donarmstrong.com>
Thu, 2 Jan 2014 21:10:25 +0000 (13:10 -0800)
committerDon Armstrong <don@donarmstrong.com>
Thu, 2 Jan 2014 21:10:25 +0000 (13:10 -0800)
.emacs

diff --git a/.emacs b/.emacs
index 8a52710b8efa3e303777d9fdb034146bb5521516..ed0fd4ca40aa60a8e5ebf9330a65f094d6df8896 100644 (file)
--- a/.emacs
+++ b/.emacs
@@ -649,6 +649,15 @@ Argument DESCRIPTION MIME description."
                ("\\subsection{%s}" . "\\subsection*{%s}")
                ("\\subsubsection{%s}" . "\\subsubsection*{%s}")))
 
                ("\\subsection{%s}" . "\\subsection*{%s}")
                ("\\subsubsection{%s}" . "\\subsubsection*{%s}")))
 
+(add-to-list 'org-latex-classes
+             '("letter"
+               "\\documentclass[11pt]{letter}"
+               ("\\section{%s}" . "\\section*{%s}")
+               ("\\subsection{%s}" . "\\subsection*{%s}")
+               ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
+               ("\\paragraph{%s}" . "\\paragraph*{%s}")
+               ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
+
 ;; Originally taken from Bruno Tavernier: http://thread.gmane.org/gmane.emacs.orgmode/31150/focus=31432
 ;; but adapted to use latexmk 4.22 or higher.  
 (defun my-auto-tex-cmd ()
 ;; Originally taken from Bruno Tavernier: http://thread.gmane.org/gmane.emacs.orgmode/31150/focus=31432
 ;; but adapted to use latexmk 4.22 or higher.  
 (defun my-auto-tex-cmd ()