emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: Nick Dokos <ndokos@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Using sideways table with :placement in Org 8.0?
Date: Mon, 10 Mar 2014 07:57:07 -0500	[thread overview]
Message-ID: <CA+M2ft8H4+fWycD__wJx4gJuJp-X8P0peRDDQ3wk0CQVd5CN-g@mail.gmail.com> (raw)
In-Reply-To: <87iormbpby.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2484 bytes --]

On Mar 10, 2014 12:22 AM, "Nick Dokos" <ndokos@gmail.com> wrote:
>
> John Hendy <jw.hendy@gmail.com> 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
>
>

[-- Attachment #2: Type: text/html, Size: 3737 bytes --]

  reply	other threads:[~2014-03-10 12:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-10  4:46 Using sideways table with :placement in Org 8.0? John Hendy
2014-03-10  5:22 ` Nick Dokos
2014-03-10 12:57   ` John Hendy [this message]
2014-03-14 16:24     ` John Hendy
2014-03-14 16:24     ` John Hendy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+M2ft8H4+fWycD__wJx4gJuJp-X8P0peRDDQ3wk0CQVd5CN-g@mail.gmail.com \
    --to=jw.hendy@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=ndokos@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).