[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Loading several latex classes for ox-latex

From: Julien Cubizolles
Subject: [O] Loading several latex classes for ox-latex
Date: Wed, 10 Jul 2013 15:28:37 +0200
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux)

How can I run several add-to-list after a given package is loaded ? I
could of course do multiples:

(eval-after-load 'package_name '(add-to-list 'element 'list))

but I'm sure there's a more elegant way.

I tried the following:
--8<---------------cut here---------------start------------->8---
(eval-after-load 'ox-latex
  (progn '(add-to-list 'org-latex-classes
                       '("mpsi_beamer" "\\documentclass{mpsi_beamer}\n 
                         ("\\section{%s}" . "\\section*{%s}")
                         ("\\subsection{%s}" . "\\subsection*{%s}")
                         ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
         '(add-to-list 'org-latex-classes 
                       '("mpsi" "\\documentclass[cours,Version,colonne]{mpsi}"
                         ("\\section{%s}" . "\\section*{%s}")
                         ("\\subsection{%s}" . "\\subsection*{%s}")
--8<---------------cut here---------------end--------------->8---

but only the second one (mpsi) is loaded.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]