emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Erik Butz <erik.butz@googlemail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: strange behavior for export
Date: Sat, 1 May 2010 13:57:17 +0200	[thread overview]
Message-ID: <3C6CF2B5-2DDA-47BD-B83C-0907009C2077@gmail.com> (raw)
In-Reply-To: <m2wb230c52b1004301001nd99709a7g52148d92e953598c@mail.gmail.com>

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}
> \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=1000
> \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

  reply	other threads:[~2010-05-01 11:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-30 17:01 strange behavior for export Erik Butz
2010-05-01 11:57 ` Carsten Dominik [this message]
2010-05-01 12:46   ` Robert Klein
2010-05-13  5:21     ` Carsten Dominik

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=3C6CF2B5-2DDA-47BD-B83C-0907009C2077@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=erik.butz@googlemail.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).