From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Beamer presentation using new exporter Date: Sun, 03 Mar 2013 09:42:49 +0100 Message-ID: <87vc98x4ae.fsf@gmail.com> References: <20130301101933.GA17662@panahar> <87k3prnzsh.fsf@gmail.com> <20130302045338.GA15307@panahar> <877glqciou.fsf@gmail.com> <20130303014605.GA12262@panahar> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44031) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UC4Vb-0007rY-Gc for emacs-orgmode@gnu.org; Sun, 03 Mar 2013 03:43:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UC4Va-00007u-8d for emacs-orgmode@gnu.org; Sun, 03 Mar 2013 03:43:03 -0500 Received: from mail-wi0-f172.google.com ([209.85.212.172]:58953) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UC4Va-00007k-2Z for emacs-orgmode@gnu.org; Sun, 03 Mar 2013 03:43:02 -0500 Received: by mail-wi0-f172.google.com with SMTP id ez12so864444wid.5 for ; Sun, 03 Mar 2013 00:43:01 -0800 (PST) In-Reply-To: <20130303014605.GA12262@panahar> (Vikas Rawal's message of "Sun, 3 Mar 2013 07:16:05 +0530") 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: emacs-orgmode@gnu.org Vikas Rawal 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