From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: strange behavior for export Date: Thu, 13 May 2010 07:21:48 +0200 Message-ID: <1CDFD979-4CF5-48C3-966C-6C43D2E09207@gmail.com> References: <3C6CF2B5-2DDA-47BD-B83C-0907009C2077@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=53103 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCQsC-0000BQ-NX for emacs-orgmode@gnu.org; Thu, 13 May 2010 01:22:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OCQro-0007fH-Ug for emacs-orgmode@gnu.org; Thu, 13 May 2010 01:21:55 -0400 Received: from mail-ew0-f216.google.com ([209.85.219.216]:33606) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OCQro-0007f2-MI for emacs-orgmode@gnu.org; Thu, 13 May 2010 01:21:52 -0400 Received: by ewy8 with SMTP id 8so394751ewy.8 for ; Wed, 12 May 2010 22:21:52 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Robert Klein Cc: emacs-orgmode@gnu.org On May 1, 2010, at 2:46 PM, Robert Klein wrote: > Eric, > > where in your .emacs is the (require 'org-install) command? > > In one of my setups I had it before the load-paths. > > I didn't notice, because of an older version of org-mode > bundled with emacs; org-version reports the new version > but that is not what my emacs used in exporting. > > > Carsten, > > is there a reason why the manual says I should do the 'make' > after it talks about load-path but before it tells me to put > (require 'org-install) into the .emacs-file? Only because is tries to present installation from activation. Everybody has to activate, people who use the version delivered with Emacs do not have to install. Does that answer your question? - Carsten > > I should know better, but I still managed to confuse one of > my .emacs-files when I started using org-mode. > > Best regards > Robert > > > > > > On Sat, 01 May 2010 13:57:17 +0200, Carsten Dominik > wrote: > >> Hi Eric, >> >> I think this could mean two things. Most likely org is loading >> some other version of org-latex.el. One way to find out is to run >> M-x list-load-path-shadows. >> >> Another possibility is that you have somewhere a configuration >> setting of org-export-latex-classes that is old and does not >> contain the beamer class definition, and somehow that setting is >> loaded before org-latex.el is loaded. >> >> HTH >> >> - Carsten >> >> On Apr 30, 2010, at 7:01 PM, Erik Butz wrote: >> >>> Hi all, >>> >>> I have the following problem: >>> >>> I have set up my emacs so as to use org-mode uncompiled from a >>> local directory >>> >>> # from .emacs >>> (setq load-path (cons "~/elisp/org-mode/lisp" load-path)) >>> (setq load-path (cons "~/elisp/org-mode/contrib/lisp" load-path)) >>> >>> >>> starting emacs22 or 23 and displaying M-x org-version I get: >>> >>> Org-mode version 6.35trans (release_6.35g.207.g7f085) >>> >>> so indeed the version from the local directory. >>> >>> when I take a document with the following preamble: >>> >>> #+LaTeX_CLASS: beamer >>> #+TITLE: present.org >>> #+AUTHOR: Erik >>> #+EMAIL: erik@eddie >>> #+DATE: 2010-04-08 Thu >>> #+DESCRIPTION: >>> #+KEYWORDS: >>> #+LANGUAGE: en >>> #+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t >>> #+OPTIONS: TeX:t LaTeX:nil skip:nil d:nil todo:t pri:nil >>> tags:not-in-toc >>> #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 >>> path:http://orgmode.org/org-info.js >>> #+EXPORT_SELECT_TAGS: export >>> #+EXPORT_EXCLUDE_TAGS: noexport >>> #+LINK_UP: >>> #+LINK_HOME: >>> >>> and export this to latex I get the following: >>> >>> >>> \documentclass[11pt,a4paper]{article} > > [ something deleted ] > >>> >>> \end{document} >>> >>> so despite the #+LaTeX_CLASS: beamer, the document gets exported as >>> 'article'. Even worse, when I try to export the same document again >>> afterwards, I get a: >>> No definition for class `beamer' in `org-export-latex-classes' >>> >>> error. >>> >>> When I issue a 'reload-org-uncompiled' directly after starting >>> emacs, >>> this behavior does not occur. >>> >>> In this case I get, as expected: >>> >>> \documentclass{beamer} > > [ something deleted ] > >>> \end{document} >>> >>> >>> any hints appreciated on how this behavior comes about. >>> >>> Cheers, >>> >>> Erik >>> >>> >>> _______________________________________________ >>> Emacs-orgmode mailing list >>> Please use `Reply All' to send replies to the list. >>> Emacs-orgmode@gnu.org >>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> >> - Carsten >> - Carsten