From: Sebastian Boehm <sebastian@sometimesfood.org>
To: emacs-orgmode@gnu.org
Subject: [PATCH] ox-latex: Add scrartcl LaTeX class
Date: Mon, 21 Sep 2015 12:25:03 +0200 [thread overview]
Message-ID: <CAPNHJwG6FDwg7NjNU2HW-i83YvxaXnDcL_oXxWhEJJcGJryjbQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 434 bytes --]
Hi Org mode devs,
I would like to propose adding the KOMA-script scrartcl class to the
list of supported ox-latex classes. scrartcl is one of the most
popular "article" alternatives out there and it would be great to be
able to pass org files using scrartcl to other Org mode users without
having to explain ox-latex custom settings.
The attached patch changes ox-latex.el to include scrartcl in org-latex-classes.
Best,
Sebastian
[-- Attachment #2: 0001-ox-latex-Add-scrartcl-LaTeX-class.patch --]
[-- Type: application/octet-stream, Size: 1277 bytes --]
From ea21629e1a6fe71f3d3a44fa1ce5e9668a8c3daa Mon Sep 17 00:00:00 2001
From: Sebastian Boehm <sebastian@sometimesfood.org>
Date: Mon, 21 Sep 2015 11:39:37 +0200
Subject: [PATCH] ox-latex: Add scrartcl LaTeX class
* lisp/ox-latex.el (org-latex-classes): Add scrartcl latex class.
---
lisp/ox-latex.el | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index ddbbd33..3a04ebc 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -421,7 +421,14 @@ references."
("\\chapter{%s}" . "\\chapter*{%s}")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
- ("\\subsubsection{%s}" . "\\subsubsection*{%s}")))
+ ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
+ ("scrartcl"
+ "\\documentclass[11pt]{scrartcl}"
+ ("\\section{%s}" . "\\section*{%s}")
+ ("\\subsection{%s}" . "\\subsection*{%s}")
+ ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
+ ("\\paragraph{%s}" . "\\paragraph*{%s}")
+ ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
"Alist of LaTeX classes and associated header and structure.
If #+LATEX_CLASS is set in the buffer, use its value and the
associated information. Here is the structure of each cell:
--
2.5.3
next reply other threads:[~2015-09-21 10:25 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-21 10:25 Sebastian Boehm [this message]
2015-09-21 19:46 ` [PATCH] ox-latex: Add scrartcl LaTeX class Nicolas Goaziou
2015-09-21 21:45 ` Rasmus
2015-09-21 22:37 ` Suvayu Ali
2015-09-22 7:20 ` Eric S Fraga
2015-09-22 11:21 ` Rasmus
2015-09-22 15:33 ` Eric S Fraga
2015-09-22 16:34 ` Rasmus
2015-09-22 14:00 ` Grant Rettke
2015-09-23 16:59 ` Sebastian Boehm
2015-09-23 17:56 ` Thomas S. Dye
2015-09-23 18:16 ` Eric S Fraga
2015-09-23 18:27 ` Ista Zahn
2015-09-24 10:04 ` Eric S Fraga
2015-09-27 13:47 ` Sebastian Boehm
2015-09-23 18:28 ` Thomas S. Dye
2015-09-23 20:27 ` Rasmus
2015-09-23 20:56 ` Nicolas Goaziou
2015-09-23 21:27 ` Rasmus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAPNHJwG6FDwg7NjNU2HW-i83YvxaXnDcL_oXxWhEJJcGJryjbQ@mail.gmail.com \
--to=sebastian@sometimesfood.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.