emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Beamer presentation using new exporter
Date: Sun, 03 Mar 2013 09:42:49 +0100	[thread overview]
Message-ID: <87vc98x4ae.fsf@gmail.com> (raw)
In-Reply-To: <20130303014605.GA12262@panahar> (Vikas Rawal's message of "Sun, 3 Mar 2013 07:16:05 +0530")

Vikas Rawal <vikaslists@agrarianresearch.org> writes:

>> > I have been trying to figure out how to do this. I saw Suvayu's config
>> > files which he has kindly kept on github
>> > (https://github.com/suvayu/.emacs.d). 
>> >
>> > I tried to evaluate the following lines
>> >
>> > (add-to-list 'org-latex-classes
>> >              '("beamer"
>> >                "\\documentclass\[presentation\]\{beamer\}"
>> >                ("\\section\{%s\}" . "\\section*\{%s\}")
>> >                ("\\subsection\{%s\}" . "\\subsection*\{%s\}")
>> >                ("\\subsubsection\{%s\}" . "\\subsubsection*\{%s\}")))
>> >
>> >
>> > But I get the following error:
>> >
>> > Symbol's value as variable is void: org-latex-classes
>> >
>> > Why should that be?
>> 
>> You may be using an outdated version (maint branch?). Otherwise, latex
>> back-end may not be loaded, but it is by default (see
>> `org-export-backends').
>
> I shifted from the elpa version to the version downloaded using git
> repository. But I still get this error. org-version says:
>
> Org-mode version 7.9.3f (release_7.9.3f-1360-g2d3add @
> /home/vikas/lisp/org-mode/lisp/)

Without configuration, export framework and default back-ends are not
loaded along with Org, but the first you need them (by calling an
autoloaded function).

You may be trying to modify `org-latex-classes' before having `ox-latex'
loaded.

You can either explicitly (require 'ox-latex) before that, which will
load all export framework along with Org, or use the following
construct:

  (eval-after-load 'ox-latex
    '(add-to-list ...))

In the latter case, you still get framework loaded only when you need it
the first time.


Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2013-03-03  8:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-01 10:19 Beamer presentation using new exporter Vikas Rawal
2013-03-01 11:07 ` Nicolas Goaziou
     [not found]   ` <20130302045338.GA15307@panahar>
     [not found]     ` <877glqciou.fsf@gmail.com>
2013-03-03  1:46       ` Vikas Rawal
2013-03-03  8:42         ` Nicolas Goaziou [this message]
2013-03-04 11:53           ` Vikas Rawal
2013-03-04 14:02             ` Nicolas Goaziou

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=87vc98x4ae.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).