Re: [Orgmode] Tables in ASCII export

2010-02-20 Thread Carsten Dominik


On Feb 19, 2010, at 7:54 PM, Michael Gauland wrote:

carsten.dominik this behavior is now the default, controlled by the  
new user option

carsten.dominik `org-export-ascii-table-widen-columns'.

Thanks. That's a start, but what I really want is to have long cells  
folded, so
that one table row might become several lines in the ASCII export.  
For example,

if my table looks like this in org:

   | / | 10R | 20 |
   |   | 1 | The quick brown fo= |
   |   | 2 | Now is the time for  |


I want my ASCII export to look like this:

 1   The quick brown fox
 jumped over the lazy
 dogs.
 2   Now is the time for
 all good me to come
 to the aid of the
 party.


No, this is not possible.

For multi-line fields, please check out table.el, which makes such  
tables.  And Org does export them correctly.


- Carsten




I've started looking at org-table-align to get a feel for how org  
deals with
tables, but I'm still trying to puzzle out where this folding should  
be done.

Any advice on that?

Thanks,
Mike


- Carsten





___
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


Re: [Orgmode] Tables in ASCII export

2010-02-19 Thread Michael Gauland
carsten.dominik this behavior is now the default, controlled by the new user 
option
carsten.dominik `org-export-ascii-table-widen-columns'.

Thanks. That's a start, but what I really want is to have long cells folded, so
that one table row might become several lines in the ASCII export. For example,
if my table looks like this in org:

| / | 10R | 20 |
|   | 1 | The quick brown fo= |
|   | 2 | Now is the time for  |


I want my ASCII export to look like this:

  1   The quick brown fox
  jumped over the lazy
  dogs.
  2   Now is the time for
  all good me to come
  to the aid of the
  party.

I've started looking at org-table-align to get a feel for how org deals with
tables, but I'm still trying to puzzle out where this folding should be done. 
Any advice on that?

Thanks,
Mike


___
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


Re: [Orgmode] Tables in ASCII export

2010-02-12 Thread Carsten Dominik

Hi Michael,

this behavior is now the default, controlled by the new user option
`org-export-ascii-table-widen-columns'.

Hope this helps.

- Carsten

On Feb 6, 2010, at 8:15 PM, Michael Gauland wrote:

When I export tables to ASCII, I'd like the rows to expand as  
necessary so the
full contents is visible. I've has a look at org-exp.el, but I'm at  
a bit of a
loss as to where to start mucking in. Any pointers would be greatly  
appreciated!


Thanks,
Mike


___
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


- Carsten





___
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


Re: [Orgmode] Tables in ASCII export

2010-02-10 Thread Carsten Dominik


On Feb 6, 2010, at 8:15 PM, Michael Gauland wrote:

When I export tables to ASCII, I'd like the rows to expand as  
necessary so the
full contents is visible. I've has a look at org-exp.el, but I'm at  
a bit of a
loss as to where to start mucking in. Any pointers would be greatly  
appreciated!


Hi Michael,

right now I only have a dirty trick, and even that is untested :-(

(add-hook 'org-export-preprocess-hook
  (lambda ()
(let (org-format-transports-properties-p)
  (org-table-map-tables 'org-table-align

I will make a varaible for this, I think it would be useful to have,  
or even should be the default for ASCII export.


- Carsten



___
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