From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: How to join cells in tables and center content Date: Fri, 31 May 2013 21:27:57 +0200 Message-ID: <20130531212757.5990b769@aga-netbook> References: <416144443.20130530225319@gmail.com> <87fvx3smwt.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiUzd-00069f-NH for emacs-orgmode@gnu.org; Fri, 31 May 2013 15:28:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UiUzb-0007LQ-AC for emacs-orgmode@gnu.org; Fri, 31 May 2013 15:28:05 -0400 Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:52559) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiUzb-0007IR-2w for emacs-orgmode@gnu.org; Fri, 31 May 2013 15:28:03 -0400 Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id B290541D7C for ; Fri, 31 May 2013 21:28:00 +0200 (CEST) Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SUaSz9CaWIbR for ; Fri, 31 May 2013 21:28:00 +0200 (CEST) Received: from aga-netbook (jedenzero5-dziewiecosiem.echostar.pl [213.156.105.98]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 2810242082 for ; Fri, 31 May 2013 21:27:59 +0200 (CEST) In-Reply-To: <87fvx3smwt.fsf@bzg.ath.cx> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Dnia 2013-05-31, o godz. 08:06:58 Bastien napisa=C5=82(a): > Hi Ivanov, >=20 > Ivanov Dmitry writes: >=20 > > Suppose, I am writing a database table structure. > > Is it possible to join the 1-st two cells? And make 'table1' > > centered? >=20 > No. >=20 > > Current view and desired: > > > > > > | table1 | | | table1 | > > |--------+-------+ |--------+-------+ > > | id | value | -> | id | value | > > | | | | | | > > > > > > I understand, that it will require programming. Just give me a hint, > > where is the function, expanding table cells, and I'll try to > > implement it. >=20 > Most code is in org-table.el -- but beware that even with some > programming skills this is a hard-perhaps-impossible task... Just random thoughts here: It would definitely require some syntax so that Org knows that you don't want to just extend the whole column to the width of two columns. Maybe something like (setting of the width), but probably something along the lines of #+TBLFM (some kind of syntax /below/ the table) might be better. In general, joining cells seems to be a potentially tough problem, especially if you want to allow joining them vertically, too (and /years/ of LaTeX experience (not mine) show that if you give people horizontal joining, at some point they /will/ want vertical one... In Polish, we have a saying for that: "give it a finger, and it will bite off your hand";).) That said, I'd welcome such a feature. > Good luck, Best, --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University