From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darlan Cavalcante Moreira Subject: Re: Bug: Preview Latex fragments should include definitions in #+LATEX_HEADER: [6.33trans (release_6.33f.71.g0969.dirty)] Date: Mon, 04 Jan 2010 12:36:06 -0300 Message-ID: <4b420aea.1508c00a.3d50.ffffad95@mx.google.com> References: <4b1d3dd6.0407c00a.08c1.ffffd863@mx.google.com> <2486BCB0-9BBB-494C-BE44-54749C8B3885@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NRoyr-0001cx-Tq for emacs-orgmode@gnu.org; Mon, 04 Jan 2010 10:36:30 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NRoyn-0001aZ-21 for emacs-orgmode@gnu.org; Mon, 04 Jan 2010 10:36:29 -0500 Received: from [199.232.76.173] (port=41030 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NRoym-0001aM-Mi for emacs-orgmode@gnu.org; Mon, 04 Jan 2010 10:36:24 -0500 Received: from mx20.gnu.org ([199.232.41.8]:47119) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NRoyk-0000r3-GQ for emacs-orgmode@gnu.org; Mon, 04 Jan 2010 10:36:24 -0500 Received: from mail-gx0-f224.google.com ([209.85.217.224]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NRoyc-0006kg-IQ for emacs-orgmode@gnu.org; Mon, 04 Jan 2010 10:36:14 -0500 Received: by gxk24 with SMTP id 24so14993581gxk.6 for ; Mon, 04 Jan 2010 07:36:12 -0800 (PST) In-Reply-To: <2486BCB0-9BBB-494C-BE44-54749C8B3885@gmail.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: Carsten Dominik Cc: emacs-orgmode@gnu.org It now works perfectly. Thanks for the hard work Carsten. - Darlan Cavalcante Moreira At Fri, 1 Jan 2010 11:18:59 +0100, Carsten Dominik wrote: > > Hi Darlan, > > I have now finally implemented your request - but not tested it. > Could you please, at your earliest possible convenience, do some > testing? > > Thanks. > > - Carsten > > On Dec 7, 2009, at 6:39 PM, Darlan Cavalcante Moreira wrote: > > > > > Remember to cover the basics, that is, what you expected to happen and > > what in fact did happen. You don't know how to make a good report? > > See > > > > http://orgmode.org/manual/Feedback.html#Feedback > > > > Your bug report will be posted to the Org-mode mailing list. > > ------------------------------------------------------------------------ > > > > Hello all, > > > > I have defined the command "vetor" in a org file header with the > > line below > > #+LATEX_HEADER:\newcommand{\vetor}[1]{{\mathbf{#1}}} > > It works correctly when exporting to latex, but the preview of latex > > fragments > > with C-c C-x C-l does not work for equations that use the defined > > command. > > > > After customizing the variable "Org Format Latex Header" through the > > customize > > buffer to include the newcommand at the end, the preview of latex > > fragments > > worked as expected. > > > > If this is not a bug, I'd like to make a feature request. That is, > > everything > > that is included in the header of the exported latex document > > with #+LATEX_HEADER: should be also included in the variable > > org-format-latex-header such that the preview functionality can work > > as expected > > with user defined commands or included packages. > > > > - Darlan Cavalcante > > > > > > Emacs : GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version > > 2.18.0) > > of 2009-09-27 on crested, modified by Debian > > Package: Org-mode version 6.33trans (release_6.33f.71.g0969.dirty) > > > > > > _______________________________________________ > > 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 > > >