From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Updating CONSTANTS in LaTeX mode Date: Sat, 11 Dec 2010 18:03:16 +0100 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=40532 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRSrW-00061X-Um for emacs-orgmode@gnu.org; Sat, 11 Dec 2010 12:04:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PRSqw-0007zD-Di for emacs-orgmode@gnu.org; Sat, 11 Dec 2010 12:03:55 -0500 Received: from mail-ew0-f43.google.com ([209.85.215.43]:50087) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PRSqw-0007yg-6M for emacs-orgmode@gnu.org; Sat, 11 Dec 2010 12:03:22 -0500 Received: by ewy22 with SMTP id 22so3082249ewy.30 for ; Sat, 11 Dec 2010 09:03:21 -0800 (PST) In-Reply-To: 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: Seweryn Cc: emacs-orgmode@gnu.org On Dec 11, 2010, at 4:05 PM, Seweryn wrote: > Hello, > > Is it possible to have locally defined CONSTANTS in .tex buffer? > What is the > command to update the list of known CONSTANTS since $pi works but I > cannot > insert $x to the list of CONSTANTS. See example below > > \begin{comment} > #+CONSTANTS: x=458.0 > #+ORGTBL: SEND test1 orgtbl-to-latex :splice t :lend "" > | 3.1415927 | #ERROR | > #+TBLFM: @1$1=$pi::@1$2=$x > % $ > \end{comment} > > I would appreciate a hint. This works for me. Put you must do `C-c C-c' in the CONSTANTS line to make changes known to Org-mode. Or kill the buffer and revisit the file, that will also make CONSTANTS known. HTH - Carsten