[Top][All Lists]

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


From: Nick Dokos
Subject: Re: [O] #+LATEX_CLASS: IEEEtran
Date: Tue, 16 Oct 2012 05:38:36 -0400

Sanjib Sikder <address@hidden> wrote:

> Hi,
> I want to latex export my paper which has to use the document class IEEEtran
> With the following in the preamble
> I am getting following error
>  org-export-latex-set-initial-vars: No definition for class `IEEEtran' in 
> `org-export-latex-classes'

As it says, you need to add a definition for the class `IEEEtran' to
the variable org-export-latex-classes (for the old exporter - the
corresponding variable for the new exporter is org-e-latex-classes).
You should read the docs for these variables: they do a few different
things and they are somewhat complicated.

Here is a trivial example to start with:

--8<---------------cut here---------------start------------->8---
;;; latex export
(setq ieeetran-class
      '("IEEEtran" "\\documentclass[11pt]{IEEEtran}"
        ("\\section{%s}" . "\\section*{%s}")
        ("\\subsection{%s}" . "\\subsection*{%s}")
        ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
        ("\\paragraph{%s}" . "\\paragraph*{%s}")
        ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))

(require 'org-latex)
(add-to-list 'org-export-latex-classes ieeetran-class t)

(require 'org-e-latex)
(add-to-list 'org-e-latex-classes ieeetran-class t)
--8<---------------cut here---------------end--------------->8---

It's basically the article class spec with a different name.
You should add the code above to your .emacs (or similar init file).
You can then elaborate it as necessary.


reply via email to

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