* sideways table @ 2017-07-07 17:20 Sharon Kimble 2017-07-07 19:04 ` John Hendy 0 siblings, 1 reply; 4+ messages in thread From: Sharon Kimble @ 2017-07-07 17:20 UTC (permalink / raw) To: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 1352 bytes --] I'm trying to use 'sideways' with an org-mode table being exported to latex. But its not working. This is my table header - --8<---------------cut here---------------start------------->8--- #+CAPTION: Table of Parochial Fees from 1 January 2017 - Funerals, Burials and Monuments (cite:0204). #+ATTR_LATEX: :booktabs t :environment longtable :float sideways --8<---------------cut here---------------end--------------->8--- If I don't have ':environment longtable' then the pdf compiling fails saying that - --8<---------------cut here---------------start------------->8--- ! LaTeX Error: Environment sidewaystable undefined. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.12122 \begin{sidewaystable} [htbp] --8<---------------cut here---------------end--------------->8--- So how can I use 'sideways' with a table please? Its not clear exactly what to do from the org-mode manual, and google doesn't provide any solutions either. Thanks Sharon. -- A taste of linux = http://www.sharons.org.uk TGmeds = http://www.tgmeds.org.uk DrugFacts = https://www.drugfacts.org.uk Debian 9.0, fluxbox 1.3.5-2, emacs 25.1.1, org-mode 9.0.7 [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 832 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: sideways table 2017-07-07 17:20 sideways table Sharon Kimble @ 2017-07-07 19:04 ` John Hendy 2017-07-07 23:37 ` Sharon Kimble 0 siblings, 1 reply; 4+ messages in thread From: John Hendy @ 2017-07-07 19:04 UTC (permalink / raw) To: Sharon Kimble; +Cc: emacs-orgmode On Fri, Jul 7, 2017 at 12:20 PM, Sharon Kimble <boudiccas@skimble.plus.com> wrote: > > I'm trying to use 'sideways' with an org-mode table being exported to > latex. But its not working. This is my table header - > > --8<---------------cut here---------------start------------->8--- > #+CAPTION: Table of Parochial Fees from 1 January 2017 - Funerals, Burials and Monuments (cite:0204). > #+ATTR_LATEX: :booktabs t :environment longtable :float sideways > --8<---------------cut here---------------end--------------->8--- > > If I don't have ':environment longtable' then the pdf compiling fails saying that - > > --8<---------------cut here---------------start------------->8--- > ! LaTeX Error: Environment sidewaystable undefined. > > See the LaTeX manual or LaTeX Companion for explanation. > Type H <return> for immediate help. > ... > > l.12122 \begin{sidewaystable} > [htbp] > > --8<---------------cut here---------------end--------------->8--- > > So how can I use 'sideways' with a table please? Its not clear exactly > what to do from the org-mode manual, and google doesn't provide any > solutions either. > I've run into this question before, but am not sure this is the same thread I resolved it: - https://lists.gnu.org/archive/html/emacs-orgmode/2014-03/msg00373.html Namely: #+attr_latex: :float sidewaystable Another option I use regularly: - https://www.mail-archive.com/emacs-orgmode@gnu.org/msg110703.html Namely: lscape pacakge longtable Hope that helps! John > Thanks > Sharon. > -- > A taste of linux = http://www.sharons.org.uk > TGmeds = http://www.tgmeds.org.uk > DrugFacts = https://www.drugfacts.org.uk > Debian 9.0, fluxbox 1.3.5-2, emacs 25.1.1, org-mode 9.0.7 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: sideways table 2017-07-07 19:04 ` John Hendy @ 2017-07-07 23:37 ` Sharon Kimble 0 siblings, 0 replies; 4+ messages in thread From: Sharon Kimble @ 2017-07-07 23:37 UTC (permalink / raw) To: John Hendy; +Cc: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 2338 bytes --] John Hendy <jw.hendy@gmail.com> writes: > On Fri, Jul 7, 2017 at 12:20 PM, Sharon Kimble > <boudiccas@skimble.plus.com> wrote: >> >> I'm trying to use 'sideways' with an org-mode table being exported to >> latex. But its not working. This is my table header - >> >> --8<---------------cut here---------------start------------->8--- >> #+CAPTION: Table of Parochial Fees from 1 January 2017 - Funerals, Burials and Monuments (cite:0204). >> #+ATTR_LATEX: :booktabs t :environment longtable :float sideways >> --8<---------------cut here---------------end--------------->8--- >> >> If I don't have ':environment longtable' then the pdf compiling fails saying that - >> >> --8<---------------cut here---------------start------------->8--- >> ! LaTeX Error: Environment sidewaystable undefined. >> >> See the LaTeX manual or LaTeX Companion for explanation. >> Type H <return> for immediate help. >> ... >> >> l.12122 \begin{sidewaystable} >> [htbp] >> >> --8<---------------cut here---------------end--------------->8--- >> >> So how can I use 'sideways' with a table please? Its not clear exactly >> what to do from the org-mode manual, and google doesn't provide any >> solutions either. >> > > I've run into this question before, but am not sure this is the same > thread I resolved it: > - https://lists.gnu.org/archive/html/emacs-orgmode/2014-03/msg00373.html > > Namely: #+attr_latex: :float sidewaystable > > Another option I use regularly: > - https://www.mail-archive.com/emacs-orgmode@gnu.org/msg110703.html > > Namely: lscape pacakge longtable > > Thanks for this John. I've finally got it to work by using this - --8<---------------cut here---------------start------------->8--- #+latex_header: \usepackage{lscape} #+latex: \begin{landscape} #+CAPTION: Table of Parochial Fees from 1 January 2017 - Funerals, Burials and Monuments (cite:0204). #+ATTR_LATEX: :booktabs t blah #+latex: \end{landscape} --8<---------------cut here---------------end--------------->8--- Not quite an org-mode success, but at least its working. Thanks Sharon. -- A taste of linux = http://www.sharons.org.uk TGmeds = http://www.tgmeds.org.uk DrugFacts = https://www.drugfacts.org.uk Debian 9.0, fluxbox 1.3.5-2, emacs 25.1.1, org-mode 9.0.7 [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 832 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <mailman.77.1499529617.15722.emacs-orgmode@gnu.org>]
* Re: sideways table [not found] <mailman.77.1499529617.15722.emacs-orgmode@gnu.org> @ 2017-07-08 21:17 ` edgar 0 siblings, 0 replies; 4+ messages in thread From: edgar @ 2017-07-08 21:17 UTC (permalink / raw) To: Sharon Kimble; +Cc: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 1111 bytes --] > Date: Fri, 07 Jul 2017 18:20:27 +0100 > From: Sharon Kimble <boudiccas@skimble.plus.com> > Subject: [O] sideways table > Message-ID: <87k23kgo4k.fsf@skimble.plus.com> > > So how can I use 'sideways' with a table please? Its not clear exactly > what to do from the org-mode manual, and google doesn't provide any > solutions either. > > Thanks > Sharon. I know that this is not your question, but I suggest that you take another approach. You will eventually have a long table which is longer than a single page, and combining that with :float sideways is not going to help you (did not work for me in the past). I attach a working example that you might find useful. It includes the implementation with booktabs, if you want. I think that the only thing that you are missing is loading booktabs: #+LATEX_HEADER: \usepackage{booktabs} ------------------------------------------------- ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands! $24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options! [-- Attachment #2: table.org --] [-- Type: text/plain, Size: 5681 bytes --] #+STARTUP: indent #+LATEX_HEADER: \usepackage{tabu} * Long portrait table #+CAPTION: Long portrait table. #+ATTR_LATEX: :environment longtabu :align cXX | Symbol | Meaning | Expression | |--------+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |--------+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | | *General* | | | $\Psi$ | Helmholtz free energy density | $\Psi_{m}\left(D_{m},I_{1},I_{3}\right) + \Psi_{f}\left(D_{f},D_{int},I_{4}\right) + \Psi_{m}\left(I_{1}, I_{2}, I_{3}, I_{4}, I_{5}, D_{int}\right) + \Psi_{D}\left(a\right)$ | * Long landscape table #+LATEX_HEADER: \usepackage{pdflscape} #+BEGIN_landscape #+CAPTION: Long landscape table #+ATTR_LATEX: :environment longtabu :align cXX | Symbol | Meaning | Expression | |--------+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |--------+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | | *General* | | | $\Psi$ | Helmholtz free energy density | $\Psi_{m}\left(D_{m},I_{1},I_{3}\right) + \Psi_{f}\left(D_{f},D_{int},I_{4}\right) + \Psi_{m}\left(I_{1}, I_{2}, I_{3}, I_{4}, I_{5}, D_{int}\right) + \Psi_{D}\left(a\right)$ | #+END_landscape * table with colors # https://emacs.stackexchange.com/a/30306 #+LATEX_HEADER: \usepackage[table]{xcolor} #+CAPTION: Table with colors. | hi | there | |------+------------------------------------| | this | @@latex:\cellcolor{blue!25}@@ that | | one | two | * Sideways table with colors Note that, by itself, you would need the header from [[*table with colors][table with colors]] #+CAPTION: Sideways table with colors. #+ATTR_LATEX: :float sideways | hi | there | |------+------------------------------------| | this | @@latex:\cellcolor{blue!25}@@ that | | one | two | * Booktabs table #+LATEX_HEADER: \usepackage{booktabs} #+CAPTION: Booktabs table. #+ATTR_LATEX: :booktabs t | hi | there | |------+------------------------------------| | this | @@latex:\cellcolor{blue!25}@@ that | | one | two | * Sideways table with booktabs Remember to load booktabs as in [[*Booktabs table][Booktabs table]] #+CAPTION: Sideways table with booktabs. #+ATTR_LATEX: :float sideways :booktabs t | hi | there | |------+------------------------------------| | this | @@latex:\cellcolor{blue!25}@@ that | | one | two | * Longtabu with sideways :noexport: This does not work #+CAPTION: Longtabu with sideways #+ATTR_LATEX: :environment longtabu :align cXX :float sideways | Symbol | Meaning | Expression | |--------+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |--------+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | | *General* | | | $\Psi$ | Helmholtz free energy density | $\Psi_{m}\left(D_{m},I_{1},I_{3}\right) + \Psi_{f}\left(D_{f},D_{int},I_{4}\right) + \Psi_{m}\left(I_{1}, I_{2}, I_{3}, I_{4}, I_{5}, D_{int}\right) + \Psi_{D}\left(a\right)$ | * COMMENT See also https://tex.stackexchange.com/questions/170205/rotate-table-90-degrees-and-stretch-to-fill-whole-page https://emacs.stackexchange.com/questions/14688/how-do-i-insert-resizebox-code-in-org-mode-tables-when-exporting-to-latex * COMMENT My config #+BEGIN_SRC elisp (org-version) #+END_SRC #+RESULTS: : 9.0.9 #+BEGIN_SRC elisp (emacs-version) #+END_SRC #+RESULTS: : GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2) : of 2015-01-11 on maritornes, modified by Debian ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-07-09 21:54 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-07-07 17:20 sideways table Sharon Kimble 2017-07-07 19:04 ` John Hendy 2017-07-07 23:37 ` Sharon Kimble [not found] <mailman.77.1499529617.15722.emacs-orgmode@gnu.org> 2017-07-08 21:17 ` edgar
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).