From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: TABLES: Remove/add cell Date: Fri, 30 Sep 2011 20:22:20 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9hj4-0004dH-33 for emacs-orgmode@gnu.org; Fri, 30 Sep 2011 14:22:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R9hj3-0005AM-6w for emacs-orgmode@gnu.org; Fri, 30 Sep 2011 14:22:22 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:61654) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9hj3-0005AI-2a for emacs-orgmode@gnu.org; Fri, 30 Sep 2011 14:22:21 -0400 Received: by wyf22 with SMTP id 22so1578159wyf.0 for ; Fri, 30 Sep 2011 11:22:20 -0700 (PDT) In-Reply-To: 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: =?ISO-8859-1?Q?Gustav_Wikstr=F6m?= Cc: emacs-orgmode@gnu.org Hi Gustav Ehm - it is doable, but not by editing commands from Org table. Only with several rectangular edits or an Org table formula with a few tricks and a temporary column to be removed afterward. Probably not as comfortable as you have expected: - insert row in only one column start with: | a | 1 | | | b | 3 | | | c | 4 | | | d | | | | a | 1 | 1 | | b | 3 | | | c | 4 | 3 | | d | | 4 | #+TBLFM: @1$3=3D$-1::@3$3..@>$3=3Dsubscr(@2$2..@>>$2, @# - 2) - remove again start with: | a | 1 | | | b | | | | c | 3 | | | d | 4 | | | a | 1 | 1 | | b | | 3 | | c | 3 | 4 | | d | 4 | | #+TBLFM: @1$3=3D$-1::@2$3..@>>$3=3Dsubscr(@3$2..@>$2, @# - 1) See the Calc manual for "subscr" and the Org manual for "@#" and the rest. If it does not work (e. g. org-version 6.33) then upgrade. Michael 2011/9/30 Gustav Wikstr=F6m : > How do I add or remove a single cell in a table? > Example: > I have the following table: > | =A0 =A0 =A0 =A01 | =A0 =A0 =A0 =A01 | > | =A0 =A0 =A0 =A02 | =A0 =A0 =A0 =A03 | > | =A0 =A0 =A0 =A03 | =A0 =A0 =A0 =A04 | > | =A0 =A0 =A0 =A04 | =A0 =A0 =A0 =A0 =A0| > Now I want to add an empty cell in @2$2 (below the heading) and thus move > the following cells in column 2 down one step. > After: > | =A0 =A0 =A0 =A01 | =A0 =A0 =A0 =A01 | > | =A0 =A0 =A0 =A02 | =A0 =A0 =A0 =A0 =A0| > | =A0 =A0 =A0 =A03 | =A0 =A0 =A0 =A03 | > | =A0 =A0 =A0 =A04 | =A0 =A0 =A0 =A04 | > Is this doable?