emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Problem when previewing latex fragments
@ 2010-09-16 19:18 Darlan Cavalcante Moreira
  2010-09-16 19:38 ` Sebastian Rose
  0 siblings, 1 reply; 7+ messages in thread
From: Darlan Cavalcante Moreira @ 2010-09-16 19:18 UTC (permalink / raw)
  To: Orgmode Mailing List


Hello list,

When I run org-preview-latex-fragment (C-c C-x C-l) I get the error
,----
! org-create-formula-image: Symbol's function definition is void:
! org-export-latex-fix-inputenc
`----

However, I run org-reload it works (until I close my gtd.org file and open
it again). I'm running the latest version of org and the variable
org-export-with-LaTeX-fragments is set to nil (but as I understand it is
only used for exporting and not for previewing).

To test if this is due to some configuration, I run emacs with the -q
option and executed in the scratch buffer only the code below to load the
new version
--8<---------------cut here---------------start------------->8---
(progn (cd "~/Org-mode-dev/") (normal-top-level-add-subdirs-to-load-path))
(org-reload)
--8<---------------cut here---------------end--------------->8---
Then I oppened my gtd.org file and tryed C-c C-x C-l, but I got the same
error.

Does anyone else has this problem?

--
Darlan

ps: Emacs version is 23.1.50.1 (emacs-snapshot in Ubuntu 10.04)

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

* Re: Problem when previewing latex fragments
  2010-09-16 19:18 Problem when previewing latex fragments Darlan Cavalcante Moreira
@ 2010-09-16 19:38 ` Sebastian Rose
  2010-09-17 13:54   ` Darlan Cavalcante Moreira
  0 siblings, 1 reply; 7+ messages in thread
From: Sebastian Rose @ 2010-09-16 19:38 UTC (permalink / raw)
  To: Darlan Cavalcante Moreira; +Cc: Orgmode Mailing List

Darlan Cavalcante Moreira <darcamo@gmail.com> writes:
> Hello list,
>
> When I run org-preview-latex-fragment (C-c C-x C-l) I get the error
> ,----
> ! org-create-formula-image: Symbol's function definition is void:
> ! org-export-latex-fix-inputenc
> `----
>
> However, I run org-reload it works (until I close my gtd.org file and open
> it again). I'm running the latest version of org and the variable
> org-export-with-LaTeX-fragments is set to nil (but as I understand it is
> only used for exporting and not for previewing).
>
> To test if this is due to some configuration, I run emacs with the -q
> option and executed in the scratch buffer only the code below to load the
> new version
>
> (progn (cd "~/Org-mode-dev/") (normal-top-level-add-subdirs-to-load-path))
> (org-reload)
> Then I oppened my gtd.org file and tryed C-c C-x C-l, but I got the same
> error.
>
> Does anyone else has this problem?
>
> --
> Darlan
>
> ps: Emacs version is 23.1.50.1 (emacs-snapshot in Ubuntu 10.04)


make autoloads


???

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

* Re: Problem when previewing latex fragments
  2010-09-16 19:38 ` Sebastian Rose
@ 2010-09-17 13:54   ` Darlan Cavalcante Moreira
  2010-09-18  2:07     ` Nick Dokos
  2010-09-18  5:29     ` Carsten Dominik
  0 siblings, 2 replies; 7+ messages in thread
From: Darlan Cavalcante Moreira @ 2010-09-17 13:54 UTC (permalink / raw)
  To: Sebastian Rose; +Cc: Orgmode Mailing List


Hi Sebastian,

Make only tells me that there is nothing to be done.  All I do (since a
long time) is calling "git pull" to get the latest changes and then make to
compile everything. It worked before (the preview and everything else) and
only lately I realized that the preview didn't work, unless I run
org-reload before.

I tried to checkout a fresh copy from the repo and run only make autoloads,
but the problem remains, which is strange if I'm the only one with this
problem.

--
Darlan


At Thu, 16 Sep 2010 21:38:58 +0200,
Sebastian Rose <sebastian_rose@gmx.de> wrote:
> 
> Darlan Cavalcante Moreira <darcamo@gmail.com> writes:
> > Hello list,
> >
> > When I run org-preview-latex-fragment (C-c C-x C-l) I get the error
> > ,----
> > ! org-create-formula-image: Symbol's function definition is void:
> > ! org-export-latex-fix-inputenc
> > `----
> >
> > However, I run org-reload it works (until I close my gtd.org file and open
> > it again). I'm running the latest version of org and the variable
> > org-export-with-LaTeX-fragments is set to nil (but as I understand it is
> > only used for exporting and not for previewing).
> >
> > To test if this is due to some configuration, I run emacs with the -q
> > option and executed in the scratch buffer only the code below to load the
> > new version
> >
> > (progn (cd "~/Org-mode-dev/") (normal-top-level-add-subdirs-to-load-path))
> > (org-reload)
> > Then I oppened my gtd.org file and tryed C-c C-x C-l, but I got the same
> > error.
> >
> > Does anyone else has this problem?
> >
> > --
> > Darlan
> >
> > ps: Emacs version is 23.1.50.1 (emacs-snapshot in Ubuntu 10.04)
> 
> 
> make autoloads
> 
> 
> ???

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

* Re: Problem when previewing latex fragments
  2010-09-17 13:54   ` Darlan Cavalcante Moreira
@ 2010-09-18  2:07     ` Nick Dokos
  2010-09-18  4:13       ` Darlan Cavalcante Moreira
  2010-09-18  5:29     ` Carsten Dominik
  1 sibling, 1 reply; 7+ messages in thread
From: Nick Dokos @ 2010-09-18  2:07 UTC (permalink / raw)
  To: Darlan Cavalcante Moreira; +Cc: nicholas.dokos, Orgmode Mailing List

Darlan Cavalcante Moreira <darcamo@gmail.com> wrote:

> 
> Hi Sebastian,
> 
> Make only tells me that there is nothing to be done.  All I do (since a
> long time) is calling "git pull" to get the latest changes and then make to
> compile everything. It worked before (the preview and everything else) and
> only lately I realized that the preview didn't work, unless I run
> org-reload before.
> 
> I tried to checkout a fresh copy from the repo and run only make autoloads,
> but the problem remains, which is strange if I'm the only one with this
> problem.
> 
> --
> Darlan
> 
> 
> At Thu, 16 Sep 2010 21:38:58 +0200,
> Sebastian Rose <sebastian_rose@gmx.de> wrote:
> > 
> > Darlan Cavalcante Moreira <darcamo@gmail.com> writes:
> > > Hello list,
> > >
> > > When I run org-preview-latex-fragment (C-c C-x C-l) I get the error
> > > ,----
> > > ! org-create-formula-image: Symbol's function definition is void:
> > > ! org-export-latex-fix-inputenc
> > > `----
> > >
> > > However, I run org-reload it works (until I close my gtd.org file and open
> > > it again). I'm running the latest version of org and the variable
> > > org-export-with-LaTeX-fragments is set to nil (but as I understand it is
> > > only used for exporting and not for previewing).
> > >
> > > To test if this is due to some configuration, I run emacs with the -q
> > > option and executed in the scratch buffer only the code below to load the
> > > new version
> > >
> > > (progn (cd "~/Org-mode-dev/") (normal-top-level-add-subdirs-to-load-path))
> > > (org-reload)
> > > Then I oppened my gtd.org file and tryed C-c C-x C-l, but I got the same
> > > error.
> > >
> > > Does anyone else has this problem?
> > >
> > > --
> > > Darlan
> > >
> > > ps: Emacs version is 23.1.50.1 (emacs-snapshot in Ubuntu 10.04)
> > 
> > 
> > make autoloads
> > 
> > 
> > ???
> 

org-preview-latex-fragment is in org.el and
org-export-latex-fix-inputenc is in org-latex.el, so that sounds like a
require is missing somewhere (just guessing, mind you: I haven't even
looked at the code, let alone tried anything.)

Maybe adding a (require 'org-latex) at the beginning of
org-preview-latex-fragment helps?

HTH,
Nick

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

* Re: Problem when previewing latex fragments
  2010-09-18  2:07     ` Nick Dokos
@ 2010-09-18  4:13       ` Darlan Cavalcante Moreira
  0 siblings, 0 replies; 7+ messages in thread
From: Darlan Cavalcante Moreira @ 2010-09-18  4:13 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: Orgmode Mailing List


Unfortunately it didn't work.

I think I'll live with the problem for now and when I upgrade to the next
ubuntu version next month (and probably to a different emacs version than
what I use now) I'll report again if the problem still exists.

--
Darlan

At Fri, 17 Sep 2010 22:07:54 -0400,
Nick Dokos <nicholas.dokos@hp.com> wrote:
> 
> Darlan Cavalcante Moreira <darcamo@gmail.com> wrote:
> 
> > 
> > Hi Sebastian,
> > 
> > Make only tells me that there is nothing to be done.  All I do (since a
> > long time) is calling "git pull" to get the latest changes and then make to
> > compile everything. It worked before (the preview and everything else) and
> > only lately I realized that the preview didn't work, unless I run
> > org-reload before.
> > 
> > I tried to checkout a fresh copy from the repo and run only make autoloads,
> > but the problem remains, which is strange if I'm the only one with this
> > problem.
> > 
> > --
> > Darlan
> > 
> > 
> > At Thu, 16 Sep 2010 21:38:58 +0200,
> > Sebastian Rose <sebastian_rose@gmx.de> wrote:
> > > 
> > > Darlan Cavalcante Moreira <darcamo@gmail.com> writes:
> > > > Hello list,
> > > >
> > > > When I run org-preview-latex-fragment (C-c C-x C-l) I get the error
> > > > ,----
> > > > ! org-create-formula-image: Symbol's function definition is void:
> > > > ! org-export-latex-fix-inputenc
> > > > `----
> > > >
> > > > However, I run org-reload it works (until I close my gtd.org file and open
> > > > it again). I'm running the latest version of org and the variable
> > > > org-export-with-LaTeX-fragments is set to nil (but as I understand it is
> > > > only used for exporting and not for previewing).
> > > >
> > > > To test if this is due to some configuration, I run emacs with the -q
> > > > option and executed in the scratch buffer only the code below to load the
> > > > new version
> > > >
> > > > (progn (cd "~/Org-mode-dev/") (normal-top-level-add-subdirs-to-load-path))
> > > > (org-reload)
> > > > Then I oppened my gtd.org file and tryed C-c C-x C-l, but I got the same
> > > > error.
> > > >
> > > > Does anyone else has this problem?
> > > >
> > > > --
> > > > Darlan
> > > >
> > > > ps: Emacs version is 23.1.50.1 (emacs-snapshot in Ubuntu 10.04)
> > > 
> > > 
> > > make autoloads
> > > 
> > > 
> > > ???
> > 
> 
> org-preview-latex-fragment is in org.el and
> org-export-latex-fix-inputenc is in org-latex.el, so that sounds like a
> require is missing somewhere (just guessing, mind you: I haven't even
> looked at the code, let alone tried anything.)
> 
> Maybe adding a (require 'org-latex) at the beginning of
> org-preview-latex-fragment helps?
> 
> HTH,
> Nick
> 

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

* Re: Problem when previewing latex fragments
  2010-09-17 13:54   ` Darlan Cavalcante Moreira
  2010-09-18  2:07     ` Nick Dokos
@ 2010-09-18  5:29     ` Carsten Dominik
  2010-09-20  1:43       ` Darlan Cavalcante Moreira
  1 sibling, 1 reply; 7+ messages in thread
From: Carsten Dominik @ 2010-09-18  5:29 UTC (permalink / raw)
  To: Darlan Cavalcante Moreira; +Cc: Orgmode Mailing List

On Fri, Sep 17, 2010 at 3:54 PM, Darlan Cavalcante Moreira
<darcamo@gmail.com> wrote:
>
> Hi Sebastian,
>
> Make only tells me that there is nothing to be done.  All I do (since a
> long time) is calling "git pull" to get the latest changes and then make to
> compile everything. It worked before (the preview and everything else) and
> only lately I realized that the preview didn't work, unless I run
> org-reload before.
>
> I tried to checkout a fresh copy from the repo and run only make autoloads,
> but the problem remains, which is strange if I'm the only one with this
> problem.

Strange indeed, because in the latest Org repo version, (require 'org-latex) is
explicitly done just before calling org-export-latex-fix-inputenc.

I would guess that you have some load path shadowing going on and that the wrong
org-latex is being loaded.

- Carsten

>
> --
> Darlan
>
>
> At Thu, 16 Sep 2010 21:38:58 +0200,
> Sebastian Rose <sebastian_rose@gmx.de> wrote:
>>
>> Darlan Cavalcante Moreira <darcamo@gmail.com> writes:
>> > Hello list,
>> >
>> > When I run org-preview-latex-fragment (C-c C-x C-l) I get the error
>> > ,----
>> > ! org-create-formula-image: Symbol's function definition is void:
>> > ! org-export-latex-fix-inputenc
>> > `----
>> >
>> > However, I run org-reload it works (until I close my gtd.org file and open
>> > it again). I'm running the latest version of org and the variable
>> > org-export-with-LaTeX-fragments is set to nil (but as I understand it is
>> > only used for exporting and not for previewing).
>> >
>> > To test if this is due to some configuration, I run emacs with the -q
>> > option and executed in the scratch buffer only the code below to load the
>> > new version
>> >
>> > (progn (cd "~/Org-mode-dev/") (normal-top-level-add-subdirs-to-load-path))
>> > (org-reload)
>> > Then I oppened my gtd.org file and tryed C-c C-x C-l, but I got the same
>> > error.
>> >
>> > Does anyone else has this problem?
>> >
>> > --
>> > Darlan
>> >
>> > ps: Emacs version is 23.1.50.1 (emacs-snapshot in Ubuntu 10.04)
>>
>>
>> make autoloads
>>
>>
>> ???
>
> _______________________________________________
> 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] 7+ messages in thread

* Re: Problem when previewing latex fragments
  2010-09-18  5:29     ` Carsten Dominik
@ 2010-09-20  1:43       ` Darlan Cavalcante Moreira
  0 siblings, 0 replies; 7+ messages in thread
From: Darlan Cavalcante Moreira @ 2010-09-20  1:43 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: Orgmode Mailing List


That could be the reason but, org-version returns the correct value.
I try different approaches next month after updating the system and I'll
report the results.

Thanks,
Darlan

At Sat, 18 Sep 2010 07:29:21 +0200,
Carsten Dominik <carsten.dominik@gmail.com> wrote:
> 
> On Fri, Sep 17, 2010 at 3:54 PM, Darlan Cavalcante Moreira
> <darcamo@gmail.com> wrote:
> >
> > Hi Sebastian,
> >
> > Make only tells me that there is nothing to be done.  All I do (since a
> > long time) is calling "git pull" to get the latest changes and then make to
> > compile everything. It worked before (the preview and everything else) and
> > only lately I realized that the preview didn't work, unless I run
> > org-reload before.
> >
> > I tried to checkout a fresh copy from the repo and run only make autoloads,
> > but the problem remains, which is strange if I'm the only one with this
> > problem.
> 
> Strange indeed, because in the latest Org repo version, (require 'org-latex) is
> explicitly done just before calling org-export-latex-fix-inputenc.
> 
> I would guess that you have some load path shadowing going on and that the wrong
> org-latex is being loaded.
> 
> - Carsten
> 
> >
> > --
> > Darlan
> >
> >
> > At Thu, 16 Sep 2010 21:38:58 +0200,
> > Sebastian Rose <sebastian_rose@gmx.de> wrote:
> >>
> >> Darlan Cavalcante Moreira <darcamo@gmail.com> writes:
> >> > Hello list,
> >> >
> >> > When I run org-preview-latex-fragment (C-c C-x C-l) I get the error
> >> > ,----
> >> > ! org-create-formula-image: Symbol's function definition is void:
> >> > ! org-export-latex-fix-inputenc
> >> > `----
> >> >
> >> > However, I run org-reload it works (until I close my gtd.org file and open
> >> > it again). I'm running the latest version of org and the variable
> >> > org-export-with-LaTeX-fragments is set to nil (but as I understand it is
> >> > only used for exporting and not for previewing).
> >> >
> >> > To test if this is due to some configuration, I run emacs with the -q
> >> > option and executed in the scratch buffer only the code below to load the
> >> > new version
> >> >
> >> > (progn (cd "~/Org-mode-dev/") (normal-top-level-add-subdirs-to-load-path))
> >> > (org-reload)
> >> > Then I oppened my gtd.org file and tryed C-c C-x C-l, but I got the same
> >> > error.
> >> >
> >> > Does anyone else has this problem?
> >> >
> >> > --
> >> > Darlan
> >> >
> >> > ps: Emacs version is 23.1.50.1 (emacs-snapshot in Ubuntu 10.04)
> >>
> >>
> >> make autoloads
> >>
> >>
> >> ???
> >
> > _______________________________________________
> > 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] 7+ messages in thread

end of thread, other threads:[~2010-09-20  1:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-16 19:18 Problem when previewing latex fragments Darlan Cavalcante Moreira
2010-09-16 19:38 ` Sebastian Rose
2010-09-17 13:54   ` Darlan Cavalcante Moreira
2010-09-18  2:07     ` Nick Dokos
2010-09-18  4:13       ` Darlan Cavalcante Moreira
2010-09-18  5:29     ` Carsten Dominik
2010-09-20  1:43       ` Darlan Cavalcante Moreira

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