From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Josip Gracin Newsgroups: gmane.emacs.help Subject: Calc embedded assignment without producing output Date: Sun, 3 Apr 2011 11:36:20 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1301860316 6557 80.91.229.12 (3 Apr 2011 19:51:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 3 Apr 2011 19:51:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 03 21:51:52 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q6TKy-00046l-44 for geh-help-gnu-emacs@m.gmane.org; Sun, 03 Apr 2011 21:51:52 +0200 Original-Received: from localhost ([127.0.0.1]:37822 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q6TKx-0004ZM-Jb for geh-help-gnu-emacs@m.gmane.org; Sun, 03 Apr 2011 15:51:51 -0400 Original-Received: from [140.186.70.92] (port=57370 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q6JjP-0001If-1W for help-gnu-emacs@gnu.org; Sun, 03 Apr 2011 05:36:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q6JjJ-0004kh-QR for help-gnu-emacs@gnu.org; Sun, 03 Apr 2011 05:36:26 -0400 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:47185) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q6JjJ-0004kc-NF for help-gnu-emacs@gnu.org; Sun, 03 Apr 2011 05:36:21 -0400 Original-Received: by vws4 with SMTP id 4so4621912vws.0 for ; Sun, 03 Apr 2011 02:36:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:date:x-google-sender-auth :message-id:subject:from:to:content-type; bh=ANurhx3I57R/fCPdV9+JGcq4SywCeKbshVxK15MrqKY=; b=md7piivh6iFi7G1sVpT4ChfSw4t5ZJY0l0upPwNoCN4/xTnnCkGjPq9ahmuF1Cy4zO +mCNOqtgxpmMMB192CBqghc1Vsc0DlqoDaTNizUKNIEdqF/PYH5ieZ+L3exuziZys5Ko J1Nc1u3y7TsZd6uWLInvBkfI4WrI3IoyfQAwg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=cLBf+Iw1fYiEobo6UKk07k6UM16hLptrfOZ4HX4bgkHppPeikrlquRlET8vPlDcusc ujs82Xq9nw3uIwEPzMkWsFj5uvzSTTBDT4Y3YSKV1chw4KFZeLHpSYo4O1jVFg0UHfcF kTM/g1488hC1SPyYmH7rbkFcnlh6/S+ZNkSdg= Original-Received: by 10.52.91.230 with SMTP id ch6mr2011275vdb.140.1301823380557; Sun, 03 Apr 2011 02:36:20 -0700 (PDT) Original-Received: by 10.52.90.65 with HTTP; Sun, 3 Apr 2011 02:36:20 -0700 (PDT) X-Google-Sender-Auth: d4-DPsP785QGQAYtlJrpvvfCDlU X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.212.41 X-Mailman-Approved-At: Sun, 03 Apr 2011 15:50:52 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80586 Archived-At: Hello! In a LaTeX document, I'd like to assign some calc variables and have calc update a bunch of expressions using these variables. However, I don't want these assignments to appear in the document. Here's an example. I'd like to be able to use calc in the following manner: \documentclass{article} \begin{document} %%% f := 10 %%% The first value is $ %%% f * 15 => %%% 150 $ The second value is $ %%% f * 13 => %%% 130 $ \end{document} So, I'd like assignment f:=10 to be invisible in the document, but calc always inserts "f \gets 10" after evaluating it. Also, I'd like the evaluation of f*13 to only insert "150", and not "\evalto f * 15 \to 150". Is there a way to get this kind of behavior from calc? Thanks!