From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sharon Kimble Subject: Re: insert cell inside an org-mode table? Date: Thu, 08 Jun 2017 15:21:49 +0100 Message-ID: <87bmpysgoy.fsf@skimble.plus.com> References: <87h8zs9dyu.fsf@skimble.plus.com> <87d1ae95ud.fsf@skimble.plus.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dIyJx-00043R-Oy for emacs-orgmode@gnu.org; Thu, 08 Jun 2017 10:22:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dIyJu-0004Hh-Is for emacs-orgmode@gnu.org; Thu, 08 Jun 2017 10:21:57 -0400 Received: from avasout04.plus.net ([212.159.14.19]:33783) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dIyJu-0004GX-8V for emacs-orgmode@gnu.org; Thu, 08 Jun 2017 10:21:54 -0400 In-Reply-To: (John Kitchin's message of "Thu, 08 Jun 2017 07:01:34 -0600") 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: John Kitchin Cc: org-mode-email --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable John Kitchin writes: > Not really. Could you give an example of before and after? > > For example if you are in the middle of a row and want to insert a cell > in that row, what should happen? Should the just that row get longer? Or > should you just add a new column? How should the cells around it shift? Okay, imagine that you have this table - | fruit | one | two | |--------+------------+------------| | pear | orange | grape | | banana | grapefruit | satsuma | | tomato | potato | clementine | And you discover that you've missed out apples and you want to put them where 'grapefruit' currently is, I would like the following to happen - | fruit | one | two | |--------+------------+------------| | pear | orange | grape | | banana | apple | satsuma | | tomato | grapefruit | clementine | | | potato | | Where the rest of the column gets shifted downwards by one cell. Now that is a very simplistic table, the one that I'm hoping to build will be 6 columns by about 60 rows, so having the ability to shift rows downwards from inserting a cell would be vital to its successful usage. Thanks Sharon. > > Sharon Kimble writes: > >> John Kitchin writes: >> >>> I don't totally understand what you want to do. You can insert a row or= column into a table. >>> >>> org-table-insert-column >>> org-table-insert-row >>> >>> Are you trying to do something different than that? >> >> Yes, I would like to just insert a single cell into a place within the >> table, and then be able to adjust all other rows and cells around it, so >> that it appears no different from any of the original cells. So that its >> assimilated into the table as a whole. >> >> Does this help explain what I want to do? >> >> Thanks >> Sharon. >> >>> >>> John >>> >>> ----------------------------------- >>> Professor John Kitchin >>> Doherty Hall A207F >>> Department of Chemical Engineering >>> Carnegie Mellon University >>> Pittsburgh, PA 15213 >>> 412-268-7803 >>> @johnkitchin >>> http://kitchingroup.cheme.cmu.edu >>> >>> On Wed, Jun 7, 2017 at 6:31 AM, Sharon Kimble wrote: >>> >>> I maintain my 'DrugFacts' website in mediawiki. I write my article = in >>> org-mode, export to mediawiki, correct the citations, then cut and = paste >>> into my mediawiki page. And it all works very well. >>> >>> But the front-page is a right swine! Here is the first two rows of = my mediawiki front-page - >>> >>> --8<---------------cut here---------------start------------->8--- >>> {| >>> | '''Illegal''' >>> | '''Category's''' >>> | '''Legal''' >>> | '''Prescription only''' >>> | '''Substitute''' >>> | '''Others''' >>> |- >>> |* [[Amphetamines]] >>> |* [[:Category:Anaesthetics|Anaesthetics]] >>> |* [[Alcohol]] >>> |* [[Alprazolam]] >>> |* [[Buprenorphine]] >>> |* [[Flumazenil]] >>> |- >>> --8<---------------cut here---------------end--------------->8--- >>> >>> And because writing mediawiki tables leads to brain damage, and a d= esire >>> to consume 6 pints of beer as the world is going to end in ten minu= tes, >>> according to Douglas Adams and Ford Prefect, I'm intending to creat= e the >>> table in org-mode and then export to mediawiki, correct as necessar= y, >>> and upload. Which brings me to my question. >>> >>> Is it possible to insert a cell *inside* an org-mode table please, = and >>> auto-shuffle other rows/columns about to fit? According to the 'Tab= le' >>> menu in emacs, there isn't a way of doing it, and neither does the >>> org-mode manual say that it can be done. But perhaps other people h= ave >>> found a way of doing it please? >>> >>> Hopefully thanks >>> Sharon. >>> -- >>> A taste of linux =3D http://www.sharons.org.uk >>> TGmeds =3D http://www.tgmeds.org.uk >>> DrugFacts =3D https://www.drugfacts.org.uk >>> Debian 9.0, fluxbox 1.3.5-2, emacs 25.1.1, org-mode 9.0.7 >>> > > > -- > Professor John Kitchin > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > http://kitchingroup.cheme.cmu.edu =2D-=20 A taste of linux =3D http://www.sharons.org.uk TGmeds =3D http://www.tgmeds.org.uk DrugFacts =3D https://www.drugfacts.org.uk=20=20 Debian 9.0, fluxbox 1.3.5-2, emacs 25.1.1, org-mode 9.0.7 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEELSc/6QwVBIYugJDbNoGAGQr4g1sFAlk5XX0ACgkQNoGAGQr4 g1t/oRAAvpGS8jQPsfW6MNhTc4jtsZDzqSsHHKPCsIExx8tNsVACr7B846CiQ1wE LuuuCDgcbeMvGecNEP4eXs6BHF+Do/8o4rSLhU4PNZGBmCsf4h2SQfDvlphmR019 YgZQl6WBVwh4weECMhSrk/JhzhydNURIu0L+Iz2DvNMlcHf8vFNymzVMwx36T8j3 zlBnRZu0QQmF/DxRxCwfBun8KN9t4uxUywkdfK1zRDh9d0xHTkK1Lzaq/+3lHiC2 Ycg01XMcwfFSsTj3myyAs+Q/whqPBHApbFBKSDjwok1p9lVFe/Z7ENP52IxXREFB 9AIMUnCcz3k3sidAtjf5d9uTZDiFzO3OkSew2yTHjCKItPOSi6h7tGdsTuraZWrD gaKOqbhnNE13qny9vR6PSMAjd5fEr2fozOb1/TiAvKoAR81FJP0tepRocxnattk4 twNjk+hEcKexjY4/vOgDMtcEvkaNDEe6Kb46NOzZvXUqeBKNgPCH9yZ2IqYU+KW7 nlpOD19xkK1I9rlIWGSiaAzy5N/TULh5OH3Z4bajcTfboAbhdAFG5E99iYfJMa40 SqGBdvbfdFfFqBlDHnYcWDHsLiAdu6e/jSKv0ZgWiLgPi5NSyyLOjQFtdDKLkcW7 y0xhF9S9ZtuDmRjb3fRhEOAZLBBbn0sd+4y434ml2FWU9o7g7hE= =A7yn -----END PGP SIGNATURE----- --=-=-=--