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 > > > >