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 13:03:41 -0500 Message-ID: References: <877hd0tht6.fsf@altern.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1902262291==" Return-path: Received: from [140.186.70.92] (port=36578 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pplj6-00072H-H6 for emacs-orgmode@gnu.org; Wed, 16 Feb 2011 13:03:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pplj5-0002Z0-3Q for emacs-orgmode@gnu.org; Wed, 16 Feb 2011 13:03:44 -0500 Received: from mail-wy0-f169.google.com ([74.125.82.169]:55162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pplj4-0002Yq-R7 for emacs-orgmode@gnu.org; Wed, 16 Feb 2011 13:03:43 -0500 Received: by wyj26 with SMTP id 26so1614971wyj.0 for ; Wed, 16 Feb 2011 10:03:42 -0800 (PST) In-Reply-To: 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 --===============1902262291== Content-Type: multipart/alternative; boundary=0016e65bcd22e62265049c6a1955 --0016e65bcd22e62265049c6a1955 Content-Type: text/plain; charset=ISO-8859-1 Howsabout some code to put in a "dummy row" in an OrgMode Table--this would facilitate inputting multi-line-text--i.e. a key in OrgMode/TableMode/CalcMode would insert exactly a line like this in the table below: | | | | | | | | | | | | ---and thats it--you're done---then you just type in the text in the column cells you want the multiline text. On Wed, Feb 16, 2011 at 12:48 PM, brian powell wrote: > 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 >> > > --0016e65bcd22e62265049c6a1955 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Howsabout some code to put in a "dummy row" in an OrgMode Table--= this would facilitate inputting multi-line-text--i.e. a key in OrgMode/Tabl= eMode/CalcMode=A0
would insert exactly a line like this in the table be= low:
| =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 |
---and t= hats it--you're done---then you just type in the text in the column cel= ls you want the multiline text.

On Wed, Feb 16, 2011 at 12:48 PM, brian powell <briangpowellms@gmail.com> wrote:
This worked too:
...
|---+-----+-------------+-----+----= -+-------------+-----+-------+-----+-----+---|
= | * | 11B | =A0 =A0 =A0 =A0 21W | 31B | 41W | =A0 =A0 =A0 =A0 51B | 61W | = =A0 71B | 81W | 91B | * |
|---+-----+-------------+-----+-----+-------------+-----+-------+-----+----= -+---|
| * | 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 thi= s: I put "dummy rows" around the "12W" row--"dummy= rows" have all the cells empty--and then just deleted the "separ= ator rows"---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,

Wang Coeus <wan= gcoeus@gmail.com> 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 =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

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gn= u.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


--0016e65bcd22e62265049c6a1955-- --===============1902262291== 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 --===============1902262291==--