* Using sideways table with :placement in Org 8.0? @ 2014-03-10 4:46 John Hendy 2014-03-10 5:22 ` Nick Dokos 0 siblings, 1 reply; 5+ messages in thread From: John Hendy @ 2014-03-10 4:46 UTC (permalink / raw) To: emacs-orgmode 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. " 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Using sideways table with :placement in Org 8.0? 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 0 siblings, 1 reply; 5+ messages in thread From: Nick Dokos @ 2014-03-10 5:22 UTC (permalink / raw) To: emacs-orgmode 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. > 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Using sideways table with :placement in Org 8.0? 2014-03-10 5:22 ` Nick Dokos @ 2014-03-10 12:57 ` John Hendy 2014-03-14 16:24 ` John Hendy 2014-03-14 16:24 ` John Hendy 0 siblings, 2 replies; 5+ messages in thread From: John Hendy @ 2014-03-10 12:57 UTC (permalink / raw) To: Nick Dokos; +Cc: emacs-orgmode [-- 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 --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Using sideways table with :placement in Org 8.0? 2014-03-10 12:57 ` John Hendy @ 2014-03-14 16:24 ` John Hendy 2014-03-14 16:24 ` John Hendy 1 sibling, 0 replies; 5+ messages in thread From: John Hendy @ 2014-03-14 16:24 UTC (permalink / raw) To: Nick Dokos; +Cc: emacs-orgmode On Mon, Mar 10, 2014 at 7:57 AM, John Hendy <jw.hendy@gmail.com> wrote: > > 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. > Hi Nick (or others), Just following up on this so that the manual can be changed. Just to re-ask, I'm wondering if :float and :placement are independent (no overlap). If so, I'd suggest something more like this: #+begin_example :float Environment for the table... possible values are: sidewaystable, multicolumn, t and nil :placement Positioning arguments for the float... possible values are: [value list] #+end_example Is that possible, or do these arguments take any overlapping values. In looking for float placement options, I'm finding: - http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions#Figures Thus, I'm guessing :placement takes h, t, b, p, !, and H (though it should be noted that sidewaystable requires the rotfloat package to use H). For what it's worth, while I was perusing this page for this email, I find it a bit confusing. The tables section says nothing about what the :float values do, yet images and code sections walk through each of them with a nice summary. There's also a link to [Images and tables], which seems pretty table-dominant in terms of the actual content. The title of that page would imply to me that it's an overview of tables and figures, however it's really only about captions and names. I wonder about adding links to the various #+attr_backend manual pages that exist for images/tables, as it seems like one would naturally be interested in how to export their images/tables properly from Org, and that page doesn't help with that at all. Thanks for any feedback. Happy to help make any desired changes. Best regards, John > Thanks! > John > [snip] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Using sideways table with :placement in Org 8.0? 2014-03-10 12:57 ` John Hendy 2014-03-14 16:24 ` John Hendy @ 2014-03-14 16:24 ` John Hendy 1 sibling, 0 replies; 5+ messages in thread From: John Hendy @ 2014-03-14 16:24 UTC (permalink / raw) To: Nick Dokos; +Cc: emacs-orgmode On Mon, Mar 10, 2014 at 7:57 AM, John Hendy <jw.hendy@gmail.com> wrote: > > 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. > Hi Nick (or others), Just following up on this so that the manual can be changed. Just to re-ask, I'm wondering if :float and :placement are independent (no overlap). If so, I'd suggest something more like this: #+begin_example :float Environment for the table... possible values are: sidewaystable, multicolumn, t and nil :placement Positioning arguments for the float... possible values are: [value list] #+end_example Is that possible, or do these arguments take any overlapping values. In looking for float placement options, I'm finding: - http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions#Figures Thus, I'm guessing :placement takes h, t, b, p, !, and H (though it should be noted that sidewaystable requires the rotfloat package to use H). For what it's worth, while I was perusing this page for this email, I find it a bit confusing. The tables section says nothing about what the :float values do, yet images and code sections walk through each of them with a nice summary. There's also a link to [Images and tables], which seems pretty table-dominant in terms of the actual content. The title of that page would imply to me that it's an overview of tables and figures, however it's really only about captions and names. I wonder about adding links to the various #+attr_backend manual pages that exist for images/tables, as it seems like one would naturally be interested in how to export their images/tables properly from Org, and that page doesn't help with that at all. Thanks for any feedback. Happy to help make any desired changes. Best regards, John > Thanks! > John > [snip] ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-03-14 16:24 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 2014-03-14 16:24 ` John Hendy 2014-03-14 16:24 ` John Hendy
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.