From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uIieOW2CY2NvfwEAbAwnHQ (envelope-from ) for ; Thu, 03 Nov 2022 09:57:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kNyfOW2CY2OeAwAAauVa8A (envelope-from ) for ; Thu, 03 Nov 2022 09:57:17 +0100 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 516CF2D8ED for ; Thu, 3 Nov 2022 09:57:17 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqW0X-0002vi-H6; Thu, 03 Nov 2022 04:55:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqVzj-0002Ug-GR for emacs-orgmode@gnu.org; Thu, 03 Nov 2022 04:54:40 -0400 Received: from stw1.rcdrun.com ([217.170.207.13]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqVzg-0005Ny-Ty for emacs-orgmode@gnu.org; Thu, 03 Nov 2022 04:54:39 -0400 Received: from localhost ([::ffff:197.239.4.31]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000081FEC.00000000636381C7.00001B46; Thu, 03 Nov 2022 01:54:30 -0700 Date: Thu, 3 Nov 2022 11:19:43 +0300 From: Jean Louis To: Org Mode Subject: How to align all tables at once? Message-ID: Mail-Followup-To: Org Mode MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/2.2.7+37 (a90f69b) (2022-09-02) Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_SBL=0.141, SPF_HELO_PASS=-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.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667465837; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=V8rFAsX+rH9l1e3Njw9m1MVi/Z0YGW0vdLJphMLIh2c=; b=Zl1kddURXo/Pt+tho4Px8g/fhW0TXZdVXNLySZXD97wR+8FA/67Cg3NjF5BIe277VmT0Xk 7KiizrMkWq4EKFyymBocoJMletMF56JeJwN4X0GCSdX1ckIMM+PwmnDOpRaFwoJLoWljE/ Sq/rTvtuqvZDg9i/E//mnM/RBoBDufDjcE2kkKn8AEtoH0rdhV6SNRVK/iLIE+Ht1dsfJM EOW+fyfYQoOkHjtespwdkjelcgiFvLdjR8Ey6j3yW6+lkFrj/E4iE002IyJR07YnIIxgxH axqTb3tmAkFUZntuCNgBoG1ENx8ouD+KbK4xJHKAKzMkN2TBYrXsj8dmT/Q8Dg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667465837; a=rsa-sha256; cv=none; b=Zgp7YZLCJce888ECX4l027xb2gqfjcq47OTu/UbSJnJoxLKBl4r5ZXS+GGRdO+ckP1iv/8 eQQBHFUjg5K1evdobmMMzR5wwHPb1iueNcghkcwPfPB4DnBhH3NokNUCqwPXNCx2L5ujwu RUXsotJwjz8MFI5SjNNESACY/HgkSCVgHyk12Q2qMzHA4ZZK05hUf2hyVhu1ogObT08zt6 ADql7UTVQ58mFLxxG1phJnlYUcjiAzxW1T3pGXENKuiHotbqNSyA76nAjOblzrDIsKt/tW BFOERfRpxDbZN25gd01KPCPg5RuxW7p9UYf0GCsqvB7E1jadTAgVvOdZzbMbsQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -0.49 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 516CF2D8ED X-Spam-Score: -0.49 X-Migadu-Scanner: scn1.migadu.com X-TUID: KmHlfQNp2DqM I am using Org mode for presentation and would like to use it's tables for presentation only. In particular I need the function org-table-align to align the table in presentation mode. The Org buffer is updated with results of the below embedded functions. I can't use Org mode directly as many various expenses are connected to together. If it is possible to "jump backwards to Org table" and invoke org-table-align, I could do that with subsequent function, is it? This is what is being processed: ------------- snippet ⟦ (ignore (setq my-total 0)) ⟧ ⟦ (ignore (defun my-add (n) (setq my-total (+ my-total n)) n)) ⟧ ** Monthly Expenses | Description | Value | |------------------------------------------+----------------------| | Communications and Reporting Officer I/C | ⟦ (my-add 600000) ⟧ | | Prospecting Staff member | ⟦ (my-add 450000) ⟧ | | Prospecting Staff member | ⟦ (my-add 450000) ⟧ | | Food for workers on project | ⟦ (my-add 900000) ⟧ | | Transport Expenses | ⟦ (my-add 1000000) ⟧ | | Rental | ⟦ (my-add 300000) ⟧ | |------------------------------------------+----------------------| | TOTAL | ⟦ my-total ⟧ | ------------- snippet This is what I get in presentation: | Description | Value | |------------------------------------------+----------------------| | Communications and Reporting Officer I/C | 600000 | | Prospecting Staff member | 450000 | | Prospecting Staff member | 450000 | | Food for workers on project | 900000 | | Transport Expenses | 1000000 | | Rental | 300000 | |------------------------------------------+----------------------| | TOTAL | 3700000 | other solution could be to iterate over Org tables to align them. Anything that exists currently? -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/