* wrap text in table cell?
@ 2010-07-06 23:25 David Rogoff
2010-07-07 14:22 ` John Hendy
0 siblings, 1 reply; 2+ messages in thread
From: David Rogoff @ 2010-07-06 23:25 UTC (permalink / raw)
To: emacs-orgmode
I'm still learning org mode and have a question about table mode. Is
there a way to wrap text in a cell? I search the docs I could find and
the closest thing was putting <N> in a cell which forced that column to
be N characters wide. That sort-or works, but isn't great. Am I
missing something, or can org-mode not do this?
Thanks,
David
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: wrap text in table cell?
2010-07-06 23:25 wrap text in table cell? David Rogoff
@ 2010-07-07 14:22 ` John Hendy
0 siblings, 0 replies; 2+ messages in thread
From: John Hendy @ 2010-07-07 14:22 UTC (permalink / raw)
To: David Rogoff; +Cc: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 2141 bytes --]
I was just asking about this. I'm not sure I figured out the best way, but
it seems to work for me. I am exporting my tables to LaTeX primarily so I'm
not sure if this is what you're looking for or not...
Here's the recent series of messages:
http://osdir.com/ml/emacs-orgmode-gnu/2010-07/msg00068.html
The typical LaTeX table alignment is something like l|l|l for text which
means left aligned text with vertical dividers. Instead of l you can use
p{width} to specify a fixed column width which will wrap. In org, put this
in your file and export it to LaTeX PDF
#+ATTR_LaTeX: align= |l|l|
|row 1|test of some really really long text because I want to see if it will
wrap; what in the world will happen to it?|
|row 2|test of some not so long test|
#+ATTR_LaTeX: align= |l|p{10cm}|
|row 1|test of some really really long text because I want to see if it will
wrap; what in the world will happen to it?|
|row 2|test of some not so long test|
You can play with the 10cm value to figure out what you want to do. I
essentially use trial and error. I export, check the result, and leave every
'fine' column as the l (left) alignment and then target ones with longer
text to prevent them from going off the page. If you were looking for a more
'automatic' or 'intelligent' method, I'm not sure that it exists and not
sure anyone could agree on the rules it should follow anyway (should it wrap
a particular column? Just the longest one? Just the right-most one?).
Does this help?
John
On Tue, Jul 6, 2010 at 6:25 PM, David Rogoff <david@therogoffs.com> wrote:
> I'm still learning org mode and have a question about table mode. Is there
> a way to wrap text in a cell? I search the docs I could find and the
> closest thing was putting <N> in a cell which forced that column to be N
> characters wide. That sort-or works, but isn't great. Am I missing
> something, or can org-mode not do this?
>
> Thanks,
>
> David
>
> _______________________________________________
> 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: 2777 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-07-07 14:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-06 23:25 wrap text in table cell? David Rogoff
2010-07-07 14:22 ` John Hendy
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).