emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* #+LATEX_CLASS: IEEEtran
@ 2012-10-16  9:08 Sanjib Sikder
  2012-10-16  9:38 ` Nick Dokos
  0 siblings, 1 reply; 6+ messages in thread
From: Sanjib Sikder @ 2012-10-16  9:08 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 410 bytes --]

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'

Can anybody guide me please ?

Thanks

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

*

[-- Attachment #2: Type: text/html, Size: 690 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: #+LATEX_CLASS: IEEEtran
  2012-10-16  9:08 #+LATEX_CLASS: IEEEtran Sanjib Sikder
@ 2012-10-16  9:38 ` Nick Dokos
  2012-10-16 10:12   ` Sanjib Sikder
  0 siblings, 1 reply; 6+ messages in thread
From: Nick Dokos @ 2012-10-16  9:38 UTC (permalink / raw)
  To: Sanjib Sikder; +Cc: emacs-orgmode

Sanjib Sikder <sanjibju2002@gmail.com> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: #+LATEX_CLASS: IEEEtran
  2012-10-16  9:38 ` Nick Dokos
@ 2012-10-16 10:12   ` Sanjib Sikder
  2012-10-16 10:21     ` Nick Dokos
  0 siblings, 1 reply; 6+ messages in thread
From: Sanjib Sikder @ 2012-10-16 10:12 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2245 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 3380 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: #+LATEX_CLASS: IEEEtran
  2012-10-16 10:12   ` Sanjib Sikder
@ 2012-10-16 10:21     ` Nick Dokos
  2012-10-17 11:07       ` Sanjib Sikder
  0 siblings, 1 reply; 6+ messages in thread
From: Nick Dokos @ 2012-10-16 10:21 UTC (permalink / raw)
  To: Sanjib Sikder; +Cc: emacs-orgmode

Sanjib Sikder <sanjibju2002@gmail.com> wrote:

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

Two options:

o if you are not going to use the new exporter, just delete the two lines:

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

o alternatively, teach emacs where to find org-e-latex by augmenting the
  load-path:

  (add-to-list 'load-path "/path/to/org/mode/contrib/lisp")

  This needs to be done before the (require 'org-e-latex) and of course,
  the path needs to be modified for your particular setup.

Nick

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: #+LATEX_CLASS: IEEEtran
  2012-10-16 10:21     ` Nick Dokos
@ 2012-10-17 11:07       ` Sanjib Sikder
  2012-10-17 15:25         ` Nick Dokos
  0 siblings, 1 reply; 6+ messages in thread
From: Sanjib Sikder @ 2012-10-17 11:07 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1225 bytes --]

Dear Dokos,

It is working perfectly.

Thank you very much for your incessant helps.

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

*



On Tue, Oct 16, 2012 at 3:51 PM, Nick Dokos <nicholas.dokos@hp.com> wrote:

> Sanjib Sikder <sanjibju2002@gmail.com> wrote:
>
> > 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
> >
>
> Two options:
>
> o if you are not going to use the new exporter, just delete the two lines:
>
>     (require 'org-e-latex)
>     (add-to-list 'org-e-latex-classes ieeetran-class t)
>
> o alternatively, teach emacs where to find org-e-latex by augmenting the
>   load-path:
>
>   (add-to-list 'load-path "/path/to/org/mode/contrib/lisp")
>
>   This needs to be done before the (require 'org-e-latex) and of course,
>   the path needs to be modified for your particular setup.
>
> Nick
>

[-- Attachment #2: Type: text/html, Size: 2006 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: #+LATEX_CLASS: IEEEtran
  2012-10-17 11:07       ` Sanjib Sikder
@ 2012-10-17 15:25         ` Nick Dokos
  0 siblings, 0 replies; 6+ messages in thread
From: Nick Dokos @ 2012-10-17 15:25 UTC (permalink / raw)
  To: Sanjib Sikder; +Cc: emacs-orgmode

Sanjib Sikder <sanjibju2002@gmail.com> wrote:

> It is working perfectly.
> 
> Thank you very much for your incessant helps.
> 

:-) You are welcome.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-10-17 15:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-16  9:08 #+LATEX_CLASS: IEEEtran Sanjib Sikder
2012-10-16  9:38 ` Nick Dokos
2012-10-16 10:12   ` Sanjib Sikder
2012-10-16 10:21     ` Nick Dokos
2012-10-17 11:07       ` Sanjib Sikder
2012-10-17 15:25         ` Nick Dokos

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).