emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: David Rogoff <david@therogoffs.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: wrap text in table cell?
Date: Wed, 7 Jul 2010 09:22:45 -0500	[thread overview]
Message-ID: <AANLkTinCAU10i7vprNUUflTHc98OIllFAEYhtE8OXyt3@mail.gmail.com> (raw)
In-Reply-To: <4C33BB78.2060900@therogoffs.com>


[-- 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

      reply	other threads:[~2010-07-07 14:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-06 23:25 wrap text in table cell? David Rogoff
2010-07-07 14:22 ` John Hendy [this message]

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=AANLkTinCAU10i7vprNUUflTHc98OIllFAEYhtE8OXyt3@mail.gmail.com \
    --to=jw.hendy@gmail.com \
    --cc=david@therogoffs.com \
    --cc=emacs-orgmode@gnu.org \
    /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).