From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: #+LATEX_CLASS: IEEEtran Date: Tue, 16 Oct 2012 05:38:36 -0400 Message-ID: <9619.1350380316@alphaville> References: Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57218) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TO3bk-0005a0-Ly for emacs-orgmode@gnu.org; Tue, 16 Oct 2012 05:38:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TO3bj-0002Xh-Df for emacs-orgmode@gnu.org; Tue, 16 Oct 2012 05:38:40 -0400 Received: from g1t0029.austin.hp.com ([15.216.28.36]:13584) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TO3bj-0002XV-6r for emacs-orgmode@gnu.org; Tue, 16 Oct 2012 05:38:39 -0400 In-Reply-To: Message from Sanjib Sikder of "Tue\, 16 Oct 2012 14\:38\:52 +0530." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sanjib Sikder Cc: emacs-orgmode@gnu.org Sanjib Sikder wrote: > Hi, >=20 > I want to latex export my paper which has to use the document class IEEEt= ran >=20 > With the following in the preamble >=20 > #+LATEX_CLASS: IEEEtran >=20 > I am getting following error >=20 > =C2=A0org-export-latex-set-initial-vars: No definition for class `IEEEtra= n' in `org-export-latex-classes' >=20 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. Nick