[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Using sideways table with :placement in Org 8.0?
From: |
Nick Dokos |
Subject: |
Re: [O] Using sideways table with :placement in Org 8.0? |
Date: |
Mon, 10 Mar 2014 01:22:09 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
John Hendy <address@hidden> writes:
> I was just playing around with the new syntax for accessing
> sidewaystable in Org 8.0, but it doesn't seem to be working. The
> manual /seems/ pretty straightforward:
> - http://orgmode.org/manual/LaTeX-specific-attributes.html
>
> ":placement
> Float environment for the table. Possible values are sidewaystable,
> multicolumn, t and nil. When unspecified, a table with a caption will
> have atable environment. Moreover, :placement attribute can specify
> the positioning of the float. "
>
Actually it says:
,----
| `:float'
| `:placement'
| Float environment for the table. Possible values are
| `sidewaystable', `multicolumn', `t' and `nil'. When unspecified,
| a table with a caption will have a `table' environment. Moreover,
| `:placement' attribute can specify the positioning of the float.
`----
Try
#+attr_latex: :float sidewaystable
instead. The doc does need clarification.
> Here's a test document:
>
> * Heading
>
> #+attr_latex: :placement sidewaystable
> | *alpha* | *beta* | *gamma* | *delta* |
> |---------+--------+---------+---------|
> | 100 | 200 | 300 | 400 |
> | 200 | 100 | 17.321 | 133.3 |
> | 400 | 50 | 4.162 | 44.4 |
> | 800 | 25 | 2.040 | 14.8 |
>
> Minimal config loaded with `emacs -Q`:
>
> (add-to-list 'load-path "~/.elisp/org.git/lisp/")
> (add-to-list 'load-path "~/.elisp/org.git/contrib/lisp/")
> (require 'ox-latex)
>
> The resultant table is not inside of \begin/end{sidewaystable}:
>
> \begin{center}
> \begin{tabular}{rrrr}
> \textbf{alpha} & \textbf{beta} & \textbf{gamma} & \textbf{delta}\\
> \hline
> 100 & 200 & 300 & 400\\
> 200 & 100 & 17.321 & 133.3\\
> 400 & 50 & 4.162 & 44.4\\
> 800 & 25 & 2.040 & 14.8\\
> \end{tabular}
> \end{center}
>
> The heading contains \usepackage{rotating}, but it's not calling for
> sidewaystable anyway, so that shouldn't matter.
>
> Thanks for any suggestions.
>
>
> John
>
>
--
Nick