From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 sH3dMCERemLQcwAAbAwnHQ (envelope-from ) for ; Tue, 10 May 2022 09:15:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 0NjMLyERemKwBgEAG6o9tA (envelope-from ) for ; Tue, 10 May 2022 09:15:45 +0200 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 74B5A18556 for ; Tue, 10 May 2022 09:15:45 +0200 (CEST) Received: from localhost ([::1]:59116 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1noK5w-00051G-4t for larch@yhetil.org; Tue, 10 May 2022 03:15:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49630) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noK5G-00050p-Fr for emacs-orgmode@gnu.org; Tue, 10 May 2022 03:15:02 -0400 Received: from ciao.gmane.io ([116.202.254.214]:46300) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noK5E-0004wY-KN for emacs-orgmode@gnu.org; Tue, 10 May 2022 03:15:02 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1noK5B-00037o-BE for emacs-orgmode@gnu.org; Tue, 10 May 2022 09:14:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-orgmode@gnu.org To: emacs-orgmode@gnu.org From: Uwe Brauer Subject: [how to joint column/rows of tables that are in different files (id?)] (was: how to best correct exams (code matlab) using org mode (and tables)) Date: Tue, 10 May 2022 09:14:51 +0200 Message-ID: <87sfphrh90.fsf_-_@mat.ucm.es> References: <87wnewufrz.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cancel-Lock: sha1:uA8NBSOrN+FSL1jYkAA3K5wIxd8= Mail-Copies-To: never 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, T_SCC_BODY_TEXT_LINE=-0.01 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652166945; 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=2eMk62qYYM0yUc9FoN8h077iznBK0KhR1b5sYiQJGl8=; b=NRz1zMoYvwwUwfREY9hZgKfAksH5Le2iJY/iB8aW95sYWgQswDPyoNfuewSEC+vvHv95Dz qfQ8EyhJ2okZ3MfJADL4JjtWXVkltXqcd4DyaCrvlRA/fziAIwvdBVgdGC0T+nnU/Ah/Pg KnwNKt79uqxNM0mKFoi3eLgQGNFqvvXVjscmbr2i8K91JyEtLrW8ep5MLb9yeYVTjWQfdF sVyUNen0THOA06iKM0QBoNq8L82v+ZR1hf9sVYXIkTTlLUAOWol8kakGBJheXVhWL0o4AD 3owdXeBW+1mCQNv4hdcmlIgaBDS8aIghS4/RoQ35wT958jqUIlxMyN3n9Pll6w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652166945; a=rsa-sha256; cv=none; b=uwqhezhXR5ih1NI7q/2yqaIqukQO4loGZr3XONyXDY+lMyTjCwGXMIISiZ/VQxLsPz0zh2 KKx+OpnOZEdgnnXiZRiglPBasmZlM87dPhKSX3FFPUisKekfquFRNQ13cQ4ToPf45vdvqa t19lA6sYstGrNjVHJ13aHP30hOrz/ahKMvpOQcJldrPC9kUBHWO6+WRC5WNxH7QkwD2WDQ jbGaNk5CYSPVoIfU+LsKE93LC2RNZySVO9s7miUlQGw5b0glnUM4sLkPwAW8yy5PU4Y0gC GfZIQvxRPBQ1b1DQExs+eI8SXmi0kK4TjGU/9o+DCGtRmeWUa9NK0Yxqd93WJw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=mat.ucm.es (policy=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: 2.70 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=mat.ucm.es (policy=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: 74B5A18556 X-Spam-Score: 2.70 X-Migadu-Scanner: scn0.migadu.com X-TUID: tHiTqLIynrUl I think I almost have a working workflow. What I need is a functionality to join either columns or rows of tables that are in different files. Here is what I have in mind for tables that are in the same file ** Columns #+NAME: T1 | col1 | col2 | | 1 | 2 | #+NAME: T2 | col3 | | 3 | #+BEGIN_SRC emacs-lisp :var t1=T1 t2=T2 (cl-mapcar #'append t1 t2) #+END_SRC #+RESULTS: | col1 | col2 | col3 | | 1 | 2 | 3 | ** Rows #+BEGIN_SRC emacs-lisp :var t1=T1 t2=T2 (append t1 t2) #+END_SRC #+RESULTS: | col1 | col2 | | 1 | 2 | | col3 | | | 3 | | Now the 3rd package orgtbl-aggregate allows me to aggerate column of tables that are in different files, via an ID generated via org-id-get-create and saved via org-id-update-id-locations as in #+BEGIN: aggregate :table "uwe" :cols "Level" #+END: Where the table uwe is located in a different file. However it seems only to work for one table at the time, so if you have 20 tables in 20 files that a bit complicated Any idea how to append column or rows from different table in different files in one go? Thanks Uwe -- I strongly condemn Putin's war of aggression against the Ukraine. I support to deliver weapons to Ukraine's military. I support the ban of Russia from SWIFT. I support the EU membership of the Ukraine.