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 wr

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 writes: This is great, I like it. Maybe a change to the manual would be appropriate? Best wishes - Carsten On Dec 17, 2010,

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 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 all you help

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

2010-12-17 Thread Carsten Dominik
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 all you help on this front. I've just pushed up the patch with your suggested syntax (which is much better than my original

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: table*

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 widt

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 no

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}{}{} ... \end{tabulary} \begin{tabularx}{}{} ... \end{tabularx} This is typically set to something like \linewidth, \colwidth, or \textwidth, but might also take an abs

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 tabular

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

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

2010-12-15 Thread Thomas S . Dye
Hi Eric, It would be great to have a more general solution. Tables are hard to typeset, so it might take a while to come up with a good specification. Here is what I know about the LaTeX side of things. ** LaTeX destinations for an Org-mode table *** Environments for typesetting a table

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