From mboxrd@z Thu Jan 1 00:00:00 1970 From: brian powell Subject: Re: Re: Can I input multiline in a cell? Date: Wed, 16 Feb 2011 12:48:46 -0500 Message-ID: References: <877hd0tht6.fsf@altern.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1914289118==" Return-path: Received: from [140.186.70.92] (port=35334 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PplUh-0006n6-Q1 for emacs-orgmode@gnu.org; Wed, 16 Feb 2011 12:48:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PplUf-0007M2-Ni for emacs-orgmode@gnu.org; Wed, 16 Feb 2011 12:48:51 -0500 Received: from mail-wy0-f169.google.com ([74.125.82.169]:54912) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PplUf-0007Li-Ep for emacs-orgmode@gnu.org; Wed, 16 Feb 2011 12:48:49 -0500 Received: by wyj26 with SMTP id 26so1601058wyj.0 for ; Wed, 16 Feb 2011 09:48:48 -0800 (PST) In-Reply-To: <877hd0tht6.fsf@altern.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: Wang Coeus , emacs-orgmode@gnu.org --===============1914289118== Content-Type: multipart/alternative; boundary=0016367fb5ab8b3a37049c69e45e --0016367fb5ab8b3a37049c69e45e Content-Type: text/plain; charset=ISO-8859-1 This worked too: ... |---+-----+-------------+-----+-----+-------------+-----+-------+-----+-----+---| | * | 11B | 21W | 31B | 41W | 51B | 61W | 71B | 81W | 91B | * | |---+-----+-------------+-----+-----+-------------+-----+-------+-----+-----+---| | * | 12W | /u/0802.jpg | 0 | 0 | [[file:/u/d.j]] | 0 | multi | 0 | * | | | | | | | | | | line | | | | | | | | | | | | text | | | | |---+-----+-------------+-----+-----+-------------+-----+-------+-----+-----+---| | * | 13B | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | * | |---+-----+-------------+-----+-----+-------------+-----+-------+-----+-----+---| ... ---to do this: I put "dummy rows" around the "12W" row--"dummy rows" have all the cells empty--and then just deleted the "separator rows"---took less than a minute. A little Ck Cy magic---and good old key. As far as the TeX ideas; making it display as a multiline cell in export--thats a great idea too, I've made o-ton-o LaTeX tables--once you do this process Bastien suggests, you could probably write a simple program to munge the .tex file and then reuse the same method over and over. TeX is great at displaying multiline text---its the best for that---regardless of the font. On Wed, Feb 16, 2011 at 4:42 AM, Bastien wrote: > Hi Wang, > > Wang Coeus writes: > > > Will org consider to support this in future? > > There is no plan for this right now. > > But what about cheating a bit and play with the _display_ of the table? > > | Header | Header | > |-------------+--------| > | I want to | | > | write stuff | | > | on several | | > | lines | | > > You should be able to export this table to HTML or LaTeX and simulate a > multiline cell on the first column. Just a workaround, but could do in > some situations. > > Also, note that you can shrink the cell length by adding : > > |---+------------------------------| |---+--------| > | | | | | <6> | > | 1 | one | | 1 | one | > | 2 | two | ----\ | 2 | two | > | 3 | This is a long chunk of text | ----/ | 3 | This=> | > | 4 | four | | 4 | four | > |---+------------------------------| |---+--------| > > which helps having long text in a single-line cell. > > HTH, > > -- > Bastien > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > --0016367fb5ab8b3a37049c69e45e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable This worked too:
...
|---+-----+-------------+-----+----= -+-------------+-----+-------+-----+-----+---|
| * | 11B | =A0 = =A0 =A0 =A0 21W | 31B | 41W | =A0 =A0 =A0 =A0 51B | 61W | =A0 71B | 81W | 9= 1B | * |
|---+-----+-------------+-----+-----+-------------+-----+-------+-----+----= -+---|
| * | 12W | /u/0802.jpg | =A0 0 | =A0 0 | [[file:/u/d.j]] = | =A0 0 | multi | =A0 0 | =A0 * | =A0 |
| =A0 | =A0 =A0 | =A0 =A0= =A0 =A0 =A0 =A0 | =A0 =A0 | =A0 =A0 | =A0 =A0 =A0 =A0 =A0 =A0 | =A0 =A0 | = =A0line | =A0 =A0 | =A0 =A0 | =A0 |
| =A0 | =A0 =A0 | =A0 =A0 =A0 =A0 =A0 =A0 | =A0 =A0 | =A0 =A0 | =A0 = =A0 =A0 =A0 =A0 =A0 | =A0 =A0 | =A0text | =A0 =A0 | =A0 =A0 | =A0 |
|---+-----+-------------+-----+-----+-------------+-----+-------+-----+-= ----+---|
| * | 13B | =A0 =A0 =A0 =A0 =A0 0 | =A0 0 | =A0 0 | =A0= =A0 =A0 =A0 =A0 0 | =A0 0 | =A0 =A0 0 | =A0 0 | =A0 0 | * |
|---+-----+-------------+-----+-----+-------------+-----+-------+-----= +-----+---|
...

---to do this: I p= ut "dummy rows" around the "12W" row--"dummy rows&= quot; have all the cells empty--and then just deleted the "separator r= ows"---took less than a minute.

A little Ck Cy magic---and good old <Tab> key.

As far as the TeX ideas; making it display as a mult= iline cell in export--thats a great idea too, I've made o-ton-o LaTeX t= ables--once you do this process Bastien suggests, you could probably write = a simple program to munge the .tex file and then reuse the same method over= and over. =A0TeX is great at displaying multiline text---its the best for = that---regardless of the font.


On Wed, Feb 16, 2011 at 4:42 AM, Ba= stien <= bastien.guerry@wikimedia.fr> wrote:
Hi Wang,
There is no plan for this right now.

But what about cheating a bit and play with the _display_ of the table?

| Header =A0 =A0 =A0| Header |
|-------------+--------|
| I want to =A0 | =A0 =A0 =A0 =A0|
| write stuff | =A0 =A0 =A0 =A0|
| on several =A0| =A0 =A0 =A0 =A0|
| lines =A0 =A0 =A0 | =A0 =A0 =A0 =A0|

You should be able to export this table to HTML or LaTeX and simulate a
multiline cell on the first column. =A0Just a workaround, but could do in some situations.

Also, note that you can shrink the cell length by adding <length>:
=A0 =A0 |---+------------------------------| =A0 =A0 =A0 =A0 =A0 =A0 =A0 |= ---+--------|
=A0 =A0 | =A0 | =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0| =A0 =A0 =A0 =A0 =A0 =A0 =A0 | =A0 | <6> =A0 =A0|
=A0 =A0 | 1 | one =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0| =A0= =A0 =A0 =A0 =A0 =A0 =A0 | 1 | one =A0 =A0|
=A0 =A0 | 2 | two =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0| =A0= =A0 ----\ =A0 =A0 | 2 | two =A0 =A0|
=A0 =A0 | 3 | This is a long chunk of text | =A0 =A0 ----/ =A0 =A0 | 3 | T= his=3D> |
=A0 =A0 | 4 | four =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 | =A0 = =A0 =A0 =A0 =A0 =A0 =A0 | 4 | four =A0 |
=A0 =A0 |---+------------------------------| =A0 =A0 =A0 =A0 =A0 =A0 =A0 |= ---+--------|

which helps having long text in a single-line cell.

HTH,

--
=A0Bastien

--0016367fb5ab8b3a37049c69e45e-- --===============1914289118== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1914289118==--