emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Sanjib Sikder <sanjibju2002@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: #+LATEX_CLASS: IEEEtran
Date: Tue, 16 Oct 2012 05:38:36 -0400	[thread overview]
Message-ID: <9619.1350380316@alphaville> (raw)
In-Reply-To: Message from Sanjib Sikder <sanjibju2002@gmail.com> of "Tue\, 16 Oct 2012 14\:38\:52 +0530." <CAL1SgUoHyOrSuKQqX8bpmZOiZDMV=gBzpqvOKTuW6DsHFBPOTQ@mail.gmail.com>

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

  reply	other threads:[~2012-10-16  9:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-16  9:08 #+LATEX_CLASS: IEEEtran Sanjib Sikder
2012-10-16  9:38 ` Nick Dokos [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9619.1350380316@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=sanjibju2002@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).