emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: brian powell <briangpowellms@gmail.com>
To: Wang Coeus <wangcoeus@gmail.com>
Cc: emacs-orgmode@gnu.org, Bastien <bastien.guerry@wikimedia.fr>
Subject: Re: Re: Can I input multiline in a cell?
Date: Thu, 17 Feb 2011 12:16:53 -0500	[thread overview]
Message-ID: <AANLkTi=i_6_CqEV_McuE7eNzC-zejcUONvenUK1gbYb+@mail.gmail.com> (raw)
In-Reply-To: <yd6boc6b7mv9.fsf@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 8173 bytes --]

Your welcome Wang, my pleasure--I learned a few things too.

I used to make tables like the one you seem to be trying to put into and use
in an OrgMode Table.

Your table:

|-------+-------+----------------|
|       | HEAD2 | Item 1         |
|       +-------+----------------|
| HEAD1 |       | Item 2         |
|       + HEAD3 |----------------|
|       |       | Item 3         |
|-------+-------+----------------|

* Reminds me of SAS multivariate statistics output and the "PROC TABULATE"
method:
** See these:
http://www2.sas.com/proceedings/forum2007/230-2007.pdf
http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473736.htm
http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473751.htm
** Program example is in:
http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473751.htm
** Program example output:
                      Energy Expenditures for Each Region
   1
                             (millions of dollars)

              ---------------------------------------------------
              |                       |          Type           |
              |                       |-------------------------|
              |                       |Residential |  Business  |
              |                       | Customers  | Customers  |
              |                       |------------+------------|
              |                       |Expenditures|Expenditures|
              |                       |------------+------------|
              |                       |    Sum     |    Sum     |
              |-----------------------+------------+------------|
              |Region     |Division   |            |            |
              |-----------+-----------|            |            |
              |Northeast  |New England|      $7,477|      $5,129|
              |           |-----------+------------+------------|
              |           |Middle     |            |            |
              |           |Atlantic   |     $19,379|     $15,078|
              |-----------+-----------+------------+------------|
              |West       |Mountain   |      $5,476|      $4,729|
              |           |-----------+------------+------------|
              |           |Pacific    |     $13,959|     $12,619|
              ---------------------------------------------------
** Shows how to put .xls files into SAS, etc.:
http://www2.sas.com/proceedings/forum2007/230-2007.pdf
** You may be able to go from .txt/csv <=> EXCEL <=> SAS <=> .pdf/.ps

*Also, not sure you know about this extremely useful method that may help
you get fancy graphics:
Use "ditaa"!

** From http://doc.norang.ca/org-mode.html :
...
#+begin_src ditaa :file communication.png :cmdline -r -s 0.8
        +-----------+        +---------+
        |    PLC    |        |         |
        |  Network  +<------>+   PLC   +<---=---------+
        |    cRED   |        |  c707   |              |
        +-----------+        +----+----+              |
                                  ^                   |
                                  |                   |
                                  |  +----------------|-----------------+
                                  |  |                |                 |
                                  v  v                v                 v
          +----------+       +----+--+--+      +-------+---+
 +-----+-----+       Windows clients
          |          |       |          |      |           |      |
  |      +----+      +----+
          | Database +<----->+  Shared  +<---->+ Executive +<-=-->+ Operator
 +<---->|cYEL| . . .|cYEL|
          |   c707   |       |  Memory  |      |   c707    |      | Server
 |      |    |      |    |
          +--+----+--+       |{d} cGRE  |      +------+----+      |   c707
 |      +----+      +----+
             ^    ^          +----------+             ^
+-------+---+
             |    |                                   |

             |    +--------=--------------------------+
             v
    +--------+--------+

    |                 |

    | Millwide System |            -------- Data ---------

    | cBLU            |            --=----- Signals ---=--

    +-----------------+

#+end_src

** Make a DITAA diagram of the table and use the methods shown at:
http://doc.norang.ca/org-mode.html

* Maybe make two or three separate tables--and maybe separate with
whitespace--with only one "real" OrgMode table that you do spreadsheet
formula calcs, etc. in:

** Example:

|--------+-----| -------+-------+
| Item 1 |   4 |        | TAIL2 |
|--------+-----|        |-------+
| Item 2 | 555 |  TAIL1 |       |
|--------+-----|        | TAIL3 |
| Item 3 | 559 |        |       |
|--------+-----| -------+-------+
#+TBLFM: @3$2=@1$2+@2$2
** But when I recalculate OrgTable pushes the tables back together.
** Maybe make two tables and use the UNIX "paste" command to paste them
together.
*** Maybe then use the TeX "\verbatim".

*Tried putting in "^H"==backspaces:
|--------+-----| \b^H-------+-------+
| Item 1 |   4 | \b^H       | HEAD2 |
|--------+-----| \b^H       |-------+
| Item 2 | 555 | \b^H HEAD1 |       |
|--------+-----| \b^H       | HEAD3 |
| Item 3 | 559 | \b^H       |       |
|--------+-----| \b^H-------+-------+

** Then you could print it out of a program and it would look like one
table; but, again, CuCcCc --recalculation glued the table back together--in
an ugly way.

*** Maybe suggest making "^H" (the backspace character) a character that
OrgTableMode will treat as the end-of-line/"$"




On Wed, Feb 16, 2011 at 3:20 PM, Wang Coeus <wangcoeus@gmail.com> wrote:

> Bastien <bastien.guerry@wikimedia.fr> writes:
>
> > Hi Wang,
> >
> > Wang Coeus <wangcoeus@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      | 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 <length>:
> >
> >      |---+------------------------------|               |---+--------|
> >      |   |                              |               |   | <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,
>
> Hi Bastien,
> Really appreciate your help here. The reason I asked this question is
> because I always feel it's too complicated to edit a table with
> table.el. Your suggestion is good for me. :) But there are sometimes
> also need to draw a table as below:
> |-------+-------+----------------|
> |       | HEAD2 | Item 1         |
> |       +-------+----------------|
> | HEAD1 |       | Item 2         |
> |       + HEAD3 |----------------|
> |       |       | Item 3         |
> |-------+-------+----------------|
>
> For such a kind of situation, we only can implement with table.el,
> right?
>
> Really thanks for all your kind help. :)
> --
> Coeus
> In the middle of every difficulty lies opportunity.
>                -- Albert Einstein
>
> _______________________________________________
> 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
>

[-- Attachment #1.2: Type: text/html, Size: 11259 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

  reply	other threads:[~2011-02-17 17:17 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-15 21:10 Can I input multiline in a cell? Wang Coeus
2011-02-15 23:32 ` suvayu ali
2011-02-16  6:06   ` Wang Coeus
2011-02-16  9:42     ` Bastien
2011-02-16 17:48       ` brian powell
2011-02-16 18:03         ` brian powell
2011-02-16 18:43           ` Bastien
2011-02-16 19:03             ` brian powell
2011-02-16 20:01               ` Nick Dokos
2011-02-16 19:16             ` brian powell
2011-02-16 19:56               ` brian powell
2011-02-16 20:26                 ` Wang Coeus
2011-02-18  9:47                 ` Bastien
2011-02-18 15:09                   ` brian powell
     [not found]                     ` <8227.1298043065@alphaville>
2011-02-18 16:03                       ` brian powell
     [not found]                         ` <9775.1298046024@alphaville>
2011-02-18 16:38                           ` brian powell
2011-02-18 16:43                     ` Joost Kremers
2011-02-18 20:53                     ` suvayu ali
2011-02-16 20:20       ` Wang Coeus
2011-02-17 17:16         ` brian powell [this message]
2011-02-18  9:46         ` Bastien
2011-02-16 11:18     ` suvayu ali
2011-02-16 17:07       ` Eric Schulte
2011-02-16 17:24 ` brian powell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTi=i_6_CqEV_McuE7eNzC-zejcUONvenUK1gbYb+@mail.gmail.com' \
    --to=briangpowellms@gmail.com \
    --cc=bastien.guerry@wikimedia.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=wangcoeus@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).