From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: join two or more tables Date: Sun, 18 Aug 2019 12:49:22 +0200 Message-ID: <87blwmg34d.fsf@Rainer.invalid> References: <871rxirifk.fsf@mat.ucm.es> <87v9uuepv3.fsf@gmail.com> <87v9uuojo5.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:35357) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzInI-0001Ln-W2 for emacs-orgmode@gnu.org; Sun, 18 Aug 2019 06:52:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzIku-0006KM-Ds for emacs-orgmode@gnu.org; Sun, 18 Aug 2019 06:49:52 -0400 Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226]:50372 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzIko-00069u-N8 for emacs-orgmode@gnu.org; Sun, 18 Aug 2019 06:49:46 -0400 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hzIkc-000V07-LY for emacs-orgmode@gnu.org; Sun, 18 Aug 2019 12:49:30 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Uwe Brauer writes: > Thanks I knew about it, but it seems very sophisticated and column, not > row based. Well, if simple-minded suits you (i.e. the columns are known to have the same order): Tables in Org are lists with rows as their elements, and a row is either a symbol or a list of column elements. So just concatenating the two lists does (almost) the right thing. If you know the row has headers, you need to skip until the first real data row in the second table (i.e. skip the first row, the first header and then resume the concat). Your other option is just grabbing the text of both tables, emit it as a single entity (again you may want to remove the header on the second table) and then call org-align-table on it. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptations for KORG EX-800 and Poly-800MkII V0.9: http://Synth.Stromeko.net/Downloads.html#KorgSDada