emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: strange behavior for export -- Solved
@ 2010-05-04  9:36 Erik Butz
  2010-05-04 10:26 ` Sebastian Rose
  0 siblings, 1 reply; 6+ messages in thread
From: Erik Butz @ 2010-05-04  9:36 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

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.

At any rate, thanks for the help.

Cheers,

Eri K




On Sat, May 1, 2010 at 1:57 PM, Carsten Dominik
<carsten.dominik@gmail.com> 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}
>> \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
>
>
>
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: strange behavior for export -- Solved
  2010-05-04  9:36 strange behavior for export -- Solved Erik Butz
@ 2010-05-04 10:26 ` Sebastian Rose
  2010-05-04 15:49   ` Thomas S. Dye
  0 siblings, 1 reply; 6+ messages in thread
From: Sebastian Rose @ 2010-05-04 10:26 UTC (permalink / raw)
  To: Erik Butz; +Cc: emacs-orgmode, Carsten Dominik

Erik Butz <erik.butz@googlemail.com> 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
> <carsten.dominik@gmail.com> 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}
>>> \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
>>
>>
>>
>>
>
>
> _______________________________________________
> 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
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: strange behavior for export -- Solved
  2010-05-04 10:26 ` Sebastian Rose
@ 2010-05-04 15:49   ` Thomas S. Dye
  2010-05-04 16:15     ` Sebastian Rose
  2010-05-05  3:03     ` Dan Davison
  0 siblings, 2 replies; 6+ messages in thread
From: Thomas S. Dye @ 2010-05-04 15:49 UTC (permalink / raw)
  To: Sebastian Rose; +Cc: emacs-orgmode, Carsten Dominik


On May 4, 2010, at 12:26 AM, Sebastian Rose wrote:

> Erik Butz <erik.butz@googlemail.com> 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
>

Is there a reliable way within emacs to determine whether or not  
(require 'org-install) has been called, other than opening .emacs or  
similar to take a look?

Tom

>
>>
>> At any rate, thanks for the help.
>>
>> Cheers,
>>
>> Eri K
>>
>>
>>
>>
>> On Sat, May 1, 2010 at 1:57 PM, Carsten Dominik
>> <carsten.dominik@gmail.com> 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}
>>>> \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
>>>
>>>
>>>
>>>
>>
>>
>> _______________________________________________
>> 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
>>
>
>
> _______________________________________________
> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: strange behavior for export -- Solved
  2010-05-04 15:49   ` Thomas S. Dye
@ 2010-05-04 16:15     ` Sebastian Rose
  2010-05-04 18:25       ` Thomas S. Dye
  2010-05-05  3:03     ` Dan Davison
  1 sibling, 1 reply; 6+ messages in thread
From: Sebastian Rose @ 2010-05-04 16:15 UTC (permalink / raw)
  To: Thomas S. Dye; +Cc: emacs-orgmode, Carsten Dominik

"Thomas S. Dye" <tsd@tsdye.com> writes:
> On May 4, 2010, at 12:26 AM, Sebastian Rose wrote:
>
>> Erik Butz <erik.butz@googlemail.com> 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
>>
>
> Is there a reliable way within emacs to determine whether or not (require
> org-install) has been called, other than opening .emacs or  similar to take a
> look?
>
> Tom


This here has to return `t':

   (featurep 'org-install)


You could use something like this in your init file:

    (unless (featurep 'org-install)
        (error "%s" "org-install: Required feature is missing!"))


Quite radical...


   Sebastian

>
>>
>>>
>>> At any rate, thanks for the help.
>>>
>>> Cheers,
>>>
>>> Eri K
>>>
>>>
>>>
>>>
>>> On Sat, May 1, 2010 at 1:57 PM, Carsten Dominik
>>> <carsten.dominik@gmail.com> 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}
>>>>> \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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: strange behavior for export -- Solved
  2010-05-04 16:15     ` Sebastian Rose
@ 2010-05-04 18:25       ` Thomas S. Dye
  0 siblings, 0 replies; 6+ messages in thread
From: Thomas S. Dye @ 2010-05-04 18:25 UTC (permalink / raw)
  To: Sebastian Rose; +Cc: emacs-orgmode, Carsten Dominik

On May 4, 2010, at 6:15 AM, Sebastian Rose wrote:

> "Thomas S. Dye" <tsd@tsdye.com> writes:
>> On May 4, 2010, at 12:26 AM, Sebastian Rose wrote:
>>
>>> Erik Butz <erik.butz@googlemail.com> 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
>>>
>>
>> Is there a reliable way within emacs to determine whether or not  
>> (require
>> org-install) has been called, other than opening .emacs or  similar  
>> to take a
>> look?
>>
>> Tom
>
>
> This here has to return `t':
>
>   (featurep 'org-install)
>
>
> You could use something like this in your init file:
>
>    (unless (featurep 'org-install)
>        (error "%s" "org-install: Required feature is missing!"))
>
>
> Quite radical...
>
>
>   Sebastian

Thank you Sebastian.  That looks like a useful predicate,

All the best,
Tom

>>
>>>
>>>>
>>>> At any rate, thanks for the help.
>>>>
>>>> Cheers,
>>>>
>>>> Eri K
>>>>
>>>>
>>>>
>>>>
>>>> On Sat, May 1, 2010 at 1:57 PM, Carsten Dominik
>>>> <carsten.dominik@gmail.com> 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}
>>>>>> \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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: strange behavior for export -- Solved
  2010-05-04 15:49   ` Thomas S. Dye
  2010-05-04 16:15     ` Sebastian Rose
@ 2010-05-05  3:03     ` Dan Davison
  1 sibling, 0 replies; 6+ messages in thread
From: Dan Davison @ 2010-05-05  3:03 UTC (permalink / raw)
  To: Thomas S. Dye; +Cc: emacs-orgmode

"Thomas S. Dye" <tsd@tsdye.com> writes:

> On May 4, 2010, at 12:26 AM, Sebastian Rose wrote:
>
>> Erik Butz <erik.butz@googlemail.com> 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
>>
>
> Is there a reliable way within emacs to determine whether or not
> (require 'org-install) has been called, other than opening .emacs or
> similar to take a look?

I believe that is

(featurep 'org-install)

or (featurep 'org-latex) might be relevant for the above discussion.

Dan

>
> Tom
>
>>
>>>
>>> At any rate, thanks for the help.
>>>
>>> Cheers,
>>>
>>> Eri K
>>>
>>>
>>>
>>>
>>> On Sat, May 1, 2010 at 1:57 PM, Carsten Dominik
>>> <carsten.dominik@gmail.com> 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}
>>>>> \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
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>>
>>
>> _______________________________________________
>> 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
>
>
>
> _______________________________________________
> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-05-05  3:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-04  9:36 strange behavior for export -- Solved Erik Butz
2010-05-04 10:26 ` Sebastian Rose
2010-05-04 15:49   ` Thomas S. Dye
2010-05-04 16:15     ` Sebastian Rose
2010-05-04 18:25       ` Thomas S. Dye
2010-05-05  3:03     ` Dan Davison

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).