From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Problem when previewing latex fragments Date: Fri, 17 Sep 2010 22:07:54 -0400 Message-ID: <24439.1284775674@gamaville.dokosmarshall.org> References: <4c926d6e.2a48960a.70de.ffffba8a@mx.google.com> <87d3sdqy0d.fsf@gmx.de> <4c93732a.16e9640a.1ca5.ffffe74b@mx.google.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=36307 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Owmql-0000tT-6f for emacs-orgmode@gnu.org; Fri, 17 Sep 2010 22:08:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Owmqj-0002ZZ-NQ for emacs-orgmode@gnu.org; Fri, 17 Sep 2010 22:08:22 -0400 Received: from vms173009pub.verizon.net ([206.46.173.9]:52736) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Owmqj-0002ZV-HB for emacs-orgmode@gnu.org; Fri, 17 Sep 2010 22:08:21 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [70.62.175.210]) by vms173009.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L8X00EQ9796V3DC@vms173009.mailsrvcs.net> for emacs-orgmode@gnu.org; Fri, 17 Sep 2010 21:07:56 -0500 (CDT) In-reply-to: Message from Darlan Cavalcante Moreira of "Fri, 17 Sep 2010 10:54:47 -0300." <4c93732a.16e9640a.1ca5.ffffe74b@mx.google.com> 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: Darlan Cavalcante Moreira Cc: nicholas.dokos@hp.com, Orgmode Mailing List Darlan Cavalcante Moreira 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 wrote: > > > > Darlan Cavalcante Moreira 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