From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sanjib Sikder Subject: Re: #+LATEX_CLASS: IEEEtran Date: Tue, 16 Oct 2012 15:42:47 +0530 Message-ID: References: <9619.1350380316@alphaville> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf307f38b0b58f8504cc2a678b Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TO49X-00074c-QH for emacs-orgmode@gnu.org; Tue, 16 Oct 2012 06:13:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TO49Q-0003DM-En for emacs-orgmode@gnu.org; Tue, 16 Oct 2012 06:13:35 -0400 Received: from mail-ie0-f169.google.com ([209.85.223.169]:35039) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TO49Q-0003D7-8w for emacs-orgmode@gnu.org; Tue, 16 Oct 2012 06:13:28 -0400 Received: by mail-ie0-f169.google.com with SMTP id 10so11889243ied.0 for ; Tue, 16 Oct 2012 03:13:27 -0700 (PDT) In-Reply-To: <9619.1350380316@alphaville> 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: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org --20cf307f38b0b58f8504cc2a678b Content-Type: text/plain; charset=ISO-8859-1 Hi, Dokos, Thanks again. After incorporating those lines, I am getting following error. File error: Cannot open load file, org-e-latex > If it is complex (as I am new in orgmode), then I will go for normal latex instead of orgmode for this particular task as I have a template for IEEEtran but I would love to do the job in orgmode. Eagerly waiting for your comments Thanks. ----------------------------- *Sanjib Sikder *Ph.D. Fellow Chemical Engineering IIT Bombay* * On Tue, Oct 16, 2012 at 3:08 PM, Nick Dokos wrote: > Sanjib Sikder wrote: > > > Hi, > > > > I want to latex export my paper which has to use the document class > IEEEtran > > > > With the following in the preamble > > > > #+LATEX_CLASS: IEEEtran > > > > 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. > > Nick > > > > --20cf307f38b0b58f8504cc2a678b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, Dokos,

Thanks again.

After incorporating those lines, I a= m getting following error.

File error: Cannot open load file, org-e-latex

If it is= complex (as I am new in orgmode), then I will go for normal latex instead = of orgmode for this particular task as I have a template for IEEEtran but I= would love to do the job in orgmode.

Eagerly waiting for your comments

Thanks.



-----------------------------
Sanjib Sikder
Ph.D. Fellow
Chemical Engineering
IIT Bombay



<= div style=3D"display:inline">


On Tue, Oct 16, 2012 at 3:08 PM, Nick Do= kos <nicholas.dokos@hp.com> wrote:
Sanjib Sikder <sanjibju2002@gmail.com> wrote:

> Hi,
>
> I want to latex export my paper which has to use the document class IE= EEtran
>
> With the following in the preamble
>
> #+LATEX_CLASS: IEEEtran
>
> I am getting following error
>
> =A0org-export-latex-set-initial-vars: No definition for class `IEEEtra= n' 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
=A0 =A0 =A0 '("IEEEtran" "\\documentclass[11pt]{IEEEtran= }"
=A0 =A0 =A0 =A0 ("\\section{%s}" . "\\section*{%s}") =A0 =A0 =A0 =A0 ("\\subsection{%s}" . "\\subsection*{%s}&quo= t;)
=A0 =A0 =A0 =A0 ("\\subsubsection{%s}" . "\\subsubsection*{%= s}")
=A0 =A0 =A0 =A0 ("\\paragraph{%s}" . "\\paragraph*{%s}"= )
=A0 =A0 =A0 =A0 ("\\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




--20cf307f38b0b58f8504cc2a678b--