From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +LX8ImJlKGGHJwEAgWs5BA (envelope-from ) for ; Fri, 27 Aug 2021 06:09:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id cGrKHmJlKGEsHgAAbx9fmQ (envelope-from ) for ; Fri, 27 Aug 2021 04:09:06 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C1B1A2C2D6 for ; Fri, 27 Aug 2021 06:09:05 +0200 (CEST) Received: from localhost ([::1]:58600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJTAu-0007Md-LA for larch@yhetil.org; Fri, 27 Aug 2021 00:09:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55936) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJT9L-0007MS-Fn for emacs-orgmode@gnu.org; Fri, 27 Aug 2021 00:07:27 -0400 Received: from ciao.gmane.io ([116.202.254.214]:47094) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJT9J-0005jW-N0 for emacs-orgmode@gnu.org; Fri, 27 Aug 2021 00:07:27 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mJT9G-0005LB-2L for emacs-orgmode@gnu.org; Fri, 27 Aug 2021 06:07:22 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Jarmo Hurri Subject: Re: Org table: emphasizing calculated cell Date: Fri, 27 Aug 2021 07:07:17 +0300 Message-ID: <8735qvcyyy.fsf@iki.fi> References: <87r1egeozd.fsf@iki.fi> <20210826075152.17173b56@carnot2> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:Gdun4XH9R9TUrKFjeQunOAQrt7k= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630037345; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=pVgnnQl8exBtJevAWD0yliOni/qdGmxpIBgVzpIHl58=; b=UfxK/Wd1p7iEd1atNBt6YhZaDtafCHyZBhtHtr7N9z1QkPJEqMxvyM9YxQ3eMeehxOZic2 jGhCqfIUV5mOC3+LHDB7RyfC/ziF8SyJhhDDoaHaASKfF5Ku70ploqbjmqrDj3zTSIYClH cD7hx2AcQUs2xSSMF5nh7hhTMtAi1X7IJyx7A9MWRMntZ9JJZKR9bjf/5cJPPCKkLac9aT xFAyPkgKLmDzyqN7RpUnkhXaq0i3DY5ndCOVj0y4iD4xbmI7WCXJ0vMsjbEsXEZoR5TuWB j8BymGkx7uNu9WiwrOK3rWuqAYkoXvIaYOJ1PU7ihIzqEp3yrg8LUg3MBbk4lQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630037345; a=rsa-sha256; cv=none; b=cFKefBfpRUQCTp3FPzt7f5Cs+izQrkjFOOpYk/Om/Ph4f0g1G9fdEl3ZhQOG8QRPSoo10W icfZeV4djnDeBIKodtQ8QIAvpD8OVvqA/t/oNy7PB/k/h3cwlIcxF6Ny7UTEPk0V4CEY1N CxsGpkvmS/3AepJQyUpqpa4AFrgdS4R4tb0W1OVrfkixCakxqoJ8e+tnBor34dnzFVZQlf 6qaok13ujAUIxbSROkLcuuB7PEQKbs/IMgKnNiibYO8NgyWu4IXPj064f4jvZiX1moxYUO dcF2wGzY8j4/0uFYjlvNAdO1DVttY664+xA4IB3LszA6ajxKUwth+aXdnN499g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.93 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: C1B1A2C2D6 X-Spam-Score: -1.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: 15o4VMJifjvd Greetings Norwid. Norwid Behrnd writes: > try extending the format of the table formula with asterisks, i.e. > > ``` > | quantity | value | > |----------+--------| > | A | 1 | > | B | 3 | > |----------+--------| > | *C* | *0.33* | > > #+TBLFM: @4$2=@-2/@-1; *%.2f* > ``` > > Subsequently, issue the call ```C-c *``` for an update while the > cursor is within the table. This approach works well enough for me > (equally for emphasis with enclosing forward slashes, or underscores) > in Emacs' native display (backed by elpa-org 9.4.0) as well as for a > subsequent export into .html and display (e.g., in Firefox), or .tex. Excellent, this is a working solution for the basic case. Much appreciated! This solution seems to change the contents of a cell, not only its formatting. So the following, where I try to increase the value of "C" by one, leads to an error: ``` | quantity | value | |----------+--------| | A | 1 | | B | 3 | |----------+--------| | *C* | *0.33* | | D | #ERROR | #+TBLFM: @4$2=@-2/@-1; *%.2f*::@5$2=@-1+1 ``` I wonder if there is a way around this effect? Jarmo