From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: strange behavior for export -- Solved Date: Tue, 04 May 2010 12:26:27 +0200 Message-ID: <878w80klnw.fsf@gmx.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O9FKw-0002qv-KS for emacs-orgmode@gnu.org; Tue, 04 May 2010 06:26:46 -0400 Received: from [140.186.70.92] (port=57926 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9FKn-0002nB-U8 for emacs-orgmode@gnu.org; Tue, 04 May 2010 06:26:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O9FKl-0007Od-FC for emacs-orgmode@gnu.org; Tue, 04 May 2010 06:26:37 -0400 Received: from mail.gmx.net ([213.165.64.20]:52874) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1O9FKl-0007O0-3B for emacs-orgmode@gnu.org; Tue, 04 May 2010 06:26:35 -0400 In-Reply-To: (Erik Butz's message of "Tue, 4 May 2010 11:36:05 +0200") 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: Erik Butz Cc: emacs-orgmode@gnu.org, Carsten Dominik Erik Butz writes: > Hi, > > after some fiddling and looking at list-load-path-shadows (where I did > not find org-latex at all), I included > (require 'org-latex) > into my .emacs file, which solved the problem. This solution somewhat > puzzles me though, since I would have expected that org-latex is > loaded by default. But maybe I am missing something. Most of it is autoloaded if you do `make autoloads' after pulling from time to time, and have this line in your .emacs or similar: (require 'org-install) Sebastian > > At any rate, thanks for the help. > > Cheers, > > Eri K > > > > > On Sat, May 1, 2010 at 1:57 PM, Carsten Dominik > wrote: >> Hi Eric, >> >> I think this could mean two things. =C2=A0Most likely org is loading >> some other version of org-latex.el. =C2=A0One 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 cla= ss >> 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: =C2=A0 =C2=A0 present.org >>> #+AUTHOR: =C2=A0 =C2=A0Erik >>> #+EMAIL: =C2=A0 =C2=A0 erik@eddie >>> #+DATE: =C2=A0 =C2=A0 =C2=A02010-04-08 Thu >>> #+DESCRIPTION: >>> #+KEYWORDS: >>> #+LANGUAGE: =C2=A0en >>> #+OPTIONS: =C2=A0 H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t >>> #+OPTIONS: =C2=A0 TeX:t LaTeX:nil skip:nil d:nil todo:t pri:nil tags:no= t-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} >>> \usepackage[utf8]{inputenc} >>> \usepackage[T1]{fontenc} >>> \usepackage{graphicx} >>> \usepackage{hyperref} >>> >>> >>> \title{present.org} >>> \author{Erik} >>> \date{2010-04-08 Thu} >>> >>> \begin{document} >>> >>> \maketitle >>> >>> \setcounter{tocdepth}{3} >>> \tableofcontents >>> >>> >>> \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} >>> \usepackage[utf8]{inputenc} >>> \usepackage[T1]{fontenc} >>> \usepackage{fixltx2e} >>> \usepackage{graphicx} >>> \usepackage{longtable} >>> \usepackage{float} >>> \usepackage{wrapfig} >>> \usepackage{soul} >>> \usepackage{t1enc} >>> \usepackage{textcomp} >>> \usepackage{marvosym} >>> \usepackage{wasysym} >>> \usepackage{latexsym} >>> \usepackage{amssymb} >>> \usepackage{hyperref} >>> \tolerance=3D1000 >>> \providecommand{\alert}[1]{\textbf{#1}} >>> >>> \title{present.org} >>> \author{Erik} >>> \date{2010-04-08 Thu} >>> >>> \begin{document} >>> >>> \maketitle >>> >>> \begin{frame} >>> \frametitle{Outline} >>> \setcounter{tocdepth}{3} >>> \tableofcontents >>> \end{frame} >>> >>> \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 >> >> >> >> > > > _______________________________________________ > 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 >