From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Using sideways table with :placement in Org 8.0? Date: Mon, 10 Mar 2014 07:57:07 -0500 Message-ID: References: <87iormbpby.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0116150a1c6b8104f4402473 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMzlZ-0004OD-38 for emacs-orgmode@gnu.org; Mon, 10 Mar 2014 08:57:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WMzlX-0003Cg-LH for emacs-orgmode@gnu.org; Mon, 10 Mar 2014 08:57:13 -0400 Received: from mail-ob0-x22b.google.com ([2607:f8b0:4003:c01::22b]:40104) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMzlX-0003CH-ER for emacs-orgmode@gnu.org; Mon, 10 Mar 2014 08:57:11 -0400 Received: by mail-ob0-f171.google.com with SMTP id wn1so6927370obc.16 for ; Mon, 10 Mar 2014 05:57:07 -0700 (PDT) In-Reply-To: <87iormbpby.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nick Dokos Cc: emacs-orgmode --089e0116150a1c6b8104f4402473 Content-Type: text/plain; charset=UTF-8 On Mar 10, 2014 12:22 AM, "Nick Dokos" wrote: > > John Hendy 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. > Blast. I was close! I thought :float was standalone so I tried this combo last night as well. :float :placement sidewaystsble Now it makes sense I think. Is placement just for things like [htb], then? If so, perhaps those should be split into separate line items. Thanks! John > > 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 > > --089e0116150a1c6b8104f4402473 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Mar 10, 2014 12:22 AM, "Nick Dokos" <ndokos@gmail.com> wrote:
>
> John Hendy <jw.hendy@gmail.co= m> 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 sidewaystabl= e,
> > multicolumn, t and nil. When unspecified, a table with a caption = will
> > have atable environment. Moreover, :placement attribute can speci= fy
> > the positioning of the float. "
> >
>
> Actually it says:
>
> ,----
> | `:float'
> | `:placement'
> | =C2=A0 =C2=A0 =C2=A0Float environment for the table. =C2=A0Possible = values are
> | =C2=A0 =C2=A0 =C2=A0`sidewaystable', `multicolumn', `t' = and `nil'. =C2=A0When unspecified,
> | =C2=A0 =C2=A0 =C2=A0a table with a caption will have a `table' e= nvironment. =C2=A0Moreover,
> | =C2=A0 =C2=A0 =C2=A0`:placement' attribute can specify the posit= ioning of the float.
> `----
>
> Try
>
> #+attr_latex: :float sidewaystable
>
> instead. The doc does need clarification.
>

Blast. I was close! I thought :float was standalone so I tri= ed this combo last night as well.

:float :placement sidewaystsble

Now it makes sense I think. Is placement just for things lik= e [htb], then? If so, perhaps those should be split into separate line item= s.

Thanks!
John

> > Here's a test document:
> >
> > * Heading
> >
> > #+attr_latex: :placement sidewaystable
> > | *alpha* | *beta* | *gamma* | *delta* |
> > |---------+--------+---------+---------|
> > | =C2=A0 =C2=A0 100 | =C2=A0 =C2=A0200 | =C2=A0 =C2=A0 300 | =C2= =A0 =C2=A0 400 |
> > | =C2=A0 =C2=A0 200 | =C2=A0 =C2=A0100 | =C2=A017.321 | =C2=A0 13= 3.3 |
> > | =C2=A0 =C2=A0 400 | =C2=A0 =C2=A0 50 | =C2=A0 4.162 | =C2=A0 = =C2=A044.4 |
> > | =C2=A0 =C2=A0 800 | =C2=A0 =C2=A0 25 | =C2=A0 2.040 | =C2=A0 = =C2=A014.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/&= quot;)
> > (require 'ox-latex)
> >
> > The resultant table is not inside of \begin/end{sidewaystable}: > >
> > \begin{center}
> > \begin{tabular}{rrrr}
> > \textbf{alpha} & \textbf{beta} & \textbf{gamma} & \te= xtbf{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 call= ing for
> > sidewaystable anyway, so that shouldn't matter.
> >
> > Thanks for any suggestions.
> >
> >
> > John
> >
> >
>
> --
> Nick
>
>

--089e0116150a1c6b8104f4402473--