From: Carsten Dominik <carsten.dominik@gmail.com>
To: Michael Brand <michael.brand@alumni.ethz.ch>
Cc: emacs-orgmode@gnu.org
Subject: Re: a few suggestions for org-mode table
Date: Sun, 21 Jun 2009 08:16:49 +0200 [thread overview]
Message-ID: <E0079D5A-C03B-44DF-A933-C9027581726B@gmail.com> (raw)
In-Reply-To: <4A3BAEDC.50101@alumni.ethz.ch>
Hi Michael,
Org-mode tables are single line per row, and this will
not change, I am quite sure - there are too many problems
associated with this.
Interestingly enough, there was a time when I wanted to have
this as well, and there is even a command in Org where you can
wrap a couple of lines in a table by selecting text from
"the greek" to "empty" and calling `M-x org-table-wrap-region'.
However, this is not a good solution, because it does not work
correctly with the exporters.
A much better solution is to write all that text into one line
and use <N>, for example <20> in the same column in another row
to restrict the width of this column for display. You can mark this
row with "/" in the first, special column to make sure that it will
not appear in export.
Finally, for export, you can then use attributes to make this
column format as a narrow block.
Here is an example tuned for for LaTeX:
#+ATTR_LaTeX: align=|l|p{2cm}|
| / | | <20> |
| | x | first letter |
| | y | the greek letter ypsilon z still empty |
| | t | x, y, z and t |
| | | |
HTH
- Carsten
On Jun 19, 2009, at 5:29 PM, Michael Brand wrote:
> 1) I would like to have the fixed width columns in tables to be able
> to wrap around text as an alternative to the now implemented text
> truncation. As a "workaround" I use this:
>
> | x | first letter |
> | y | the greek |
> | | \ letter |
> | | \ ypsilon |
> | | z still empty |
> | t | x, y, z and t |
>
> This is almost perfect except the real pain for the manual rewrap
> when changing the text. The difficulty I see here is to define, how
> do I want to indicate the top and bottom edge and width of the cell?
> Probably by padding the separators +---+---+ and defining the column
> width <9> if they are not already there. But since I would like to
> optionally remove the separators again after the change, it would be
> necessary to have some indentation like I did with `\ ' and which
> should not conflict with alignment.
>
>
> 2) One could like to have configurable left/right alignment, even
> combinable with column width, e. g.
>
> | <l10> | <r> |
> | 3.14 | 0x10 |
> | 3.141592=> | 0x32 0x10 |
>
>
> 3) One could like to have decimal point alignment
>
> | 432.10 |
> | 5'432.1 |
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2009-06-21 6:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-19 15:29 a few suggestions for org-mode table Michael Brand
2009-06-21 6:16 ` Carsten Dominik [this message]
2009-06-21 6:18 ` Carsten Dominik
2009-06-22 6:14 ` Carsten Dominik
2009-08-19 20:51 ` a few suggestions for org-mode table, bug report Michael Brand
2009-08-20 6:47 ` Carsten Dominik
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=E0079D5A-C03B-44DF-A933-C9027581726B@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=michael.brand@alumni.ethz.ch \
/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).