Re: [Orgmode] allow table* specification with #+ATTR_LaTeX:

2010-12-18 Thread Thomas S. Dye
Hi Eric, This is a very nice addition to the LaTeX exporter. It opens up a lot of LaTeX to Org-mode users. Users unfamiliar with LaTeX might be interested to know that standard LaTeX typesets captions as if they are beneath the captioned item. This means that the vertical spacing is

Re: [Orgmode] allow table* specification with #+ATTR_LaTeX:

2010-12-17 Thread Thomas S. Dye
Hi Eric, A syntax like this, with a width attribute, seems most like Org-mode to me: #+ATTR_LaTeX table* tabularx width=\textwidth align=llXrl If that isn't a reasonable possibility, then, yes, the square brackets should be changed. These represent optional arguments in LaTeX. The

Re: [Orgmode] allow table* specification with #+ATTR_LaTeX:

2010-12-17 Thread Eric Schulte
Hi Tom, Thanks for all you help on this front. I've just pushed up the patch with your suggested syntax (which is much better than my original). It allows the following behavior. The following org #+begin_src org #+CAPTION: A wide table with tabulary #+LABEL: tbl:wide #+ATTR_LaTeX:

Re: [Orgmode] allow table* specification with #+ATTR_LaTeX:

2010-12-17 Thread Eric Schulte
Ah! you caught me :) I've just pushed up documentation. -- Eric Carsten Dominik carsten.domi...@gmail.com writes: This is great, I like it. Maybe a change to the manual would be appropriate? Best wishes - Carsten On Dec 17, 2010, at 9:39 PM, Eric Schulte wrote: Hi Tom, Thanks for

Re: [Orgmode] allow table* specification with #+ATTR_LaTeX:

2010-12-17 Thread Carsten Dominik
On Dec 17, 2010, at 10:01 PM, Eric Schulte wrote: Ah! you caught me :) I've just pushed up documentation. -- Eric Thank you, Eric. - Carsten Carsten Dominik carsten.domi...@gmail.com writes: This is great, I like it. Maybe a change to the manual would be appropriate? Best wishes -

Re: [Orgmode] allow table* specification with #+ATTR_LaTeX:

2010-12-16 Thread Eric Schulte
Hi Tom, Thanks for the informative list. I had no idea LaTeX supported so many table options. How about I update the patch so that is supports the following sets of mutually exclusive options... - longtable :: wraps the table in a longtable with no table or tabular wrappers --

Re: [Orgmode] allow table* specification with #+ATTR_LaTeX:

2010-12-16 Thread Eric Schulte
The attached patch implements the behavior described previously, so for example the following org #+begin_src org #+CAPTION: A wide table with tabulary #+LABEL: tbl:wide #+ATTR_LaTeX: table* tabulary align=l|lp{3cm}r|l | 1 | 2 | 3 | | 4 | 5 | 6 | #+CAPTION: A normal table with

Re: [Orgmode] allow table* specification with #+ATTR_LaTeX:

2010-12-16 Thread Thomas S. Dye
Hi Eric, The syntax for tabularx and tabulary includes a width specification that is a required argument: \begin{tabulary}{width}{align} ... \end{tabulary} \begin{tabularx}{width}{align} ... \end{tabularx} This is typically set to something like \linewidth, \colwidth, or \textwidth, but

Re: [Orgmode] allow table* specification with #+ATTR_LaTeX:

2010-12-16 Thread Eric Schulte
Hi Tom, Thanks for the pointer, how about this revised version of the patch. It takes the following inputs #+begin_src org #+CAPTION: A wide table with tabulary #+LABEL: tbl:wide #+ATTR_LaTeX: table* tabulary[\textwidth] align=l|lp{3cm}r|l | 1 | 2 | 3 | | 4 | 5 | 6 | #+CAPTION: A

[Orgmode] allow table* specification with #+ATTR_LaTeX:

2010-12-15 Thread Eric Schulte
Hi, The attached patch allows the use of table* latex tables from within Org mode documents using the attr_latex lines, for example #+CAPTION: A wide table #+LABEL: tbl:wide #+ATTR_LaTeX: table* align=l|lp{3cm}r|l | ... | ... | | ... | ... | Should this be added, or should we put together a