[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] latex_class_options
From: |
Eric S Fraga |
Subject: |
Re: [O] latex_class_options |
Date: |
Thu, 15 Sep 2016 14:31:21 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 (gnu/linux) |
On Thursday, 15 Sep 2016 at 12:29, Vikas Rawal wrote:
> I have a latex class defined as follows
>
> (add-to-list 'org-latex-classes
> '(("pulsememoir" "\\documentclass{memoir}"
> ("\\chapter{%s}" . "\\chapter*{%s}")
> ("\\section{%s}" . "\\section*{%s}")
> ("\\subsection{%s}" . "\\subsection*{%s}")
> ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))))
>
> In my org file, I have the following:
>
> #+LATEX_CLASS: pulsememoir
> #+LaTeX_CLASS_OPTIONS:
> [a4paper,11pt,twoside,openany,strict,extrafontsizes,twocolumn]
>
> But when I export, I get:
>
> \documentclass[8pt]{memoir}
Check your error messages. I think you have the above elisp wrong. It
should be
(add-to-list 'org-latex-classes
'("pulsememoir" "\\documentclass{memoir}"
("\\chapter{%s}" . "\\chapter*{%s}")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")))
One set of () removed from around the entry. You added a list with a
single entry instead of adding the entry to the list.
With this change, it works fine for me.
--
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.90.1, Org release_8.3.3-535-g7213aa