Landscape tables in endfloat

2,406 views
Skip to first unread message

rp

unread,
Apr 10, 2009, 12:25:51 PM4/10/09
to LaTeX Users Group
Hi!

I have a big table that can only fit in landscape mode. Due to the
usual article submission rules, I also need to have all tables show up
at the end of the document. So, I've been trying to use the rotating
and endfloat packages. Unfortunately, I haven't been able to get the
desired outcome. The best I can get is to have the table show in the
middle of the text (as opposed to the end) when using \begin
{sidewaystable} ... \end{sidewaystable}. If I try using just sideways
the table doesn't even show up!

Has anyone faced this before?
Thanks

RP

Werner Grundlingh

unread,
Apr 10, 2009, 8:58:41 PM4/10/09
to LaTeX Users Group
I understand that article submission rules may sometimes be cumbersome
to incorporate. What I don't understand is why you don't just insert
the LaTeX code for you tables at the end of the document, instead of
inline with the rest of your article. Something to the tune of

\documentclass{article}
% preamble stuff
\begin{document}
text text text text text text text text text text
text text text text text text text text text text
text text text text text text text text text text
...
See Table~\ref{table_1} ...
...
text text text text text text text text text text
text text text text text text text text text text
...
See Table~\ref{table_2} ...
...
text text text text text text text text text text
text text text text text text text text text text
text text text text text text text text text text
...
\begin{thebibliography}{xx}
...
\end{thebibliography}

\begin{table}[ht]
...
\label{table_1}
\end{table}

\begin{table}[ht]
...
\label{table_2}
\end{table}

...

Yes, this is a manual workaround to what you had probably hoped for.
However, if the tables and/figures are few, then there would be no
problem in arranging your document this way.

Werner

Benj. Mako Hill

unread,
May 11, 2009, 9:42:15 PM5/11/09
to LaTeX Users Group
I just ran into the same issue and saw this post before I found the
answer. Since it was not answered here usefully, I wanted to follow up
here.
The answer is in the documentation to endfloat here:
http://www.fi.infn.it/pub/tex/doc/orig/endfloat.pdf

Essentially, it is not possible out of the box. However, endfloat
ships with a file called "efxmpl.cfg" which overrides the
sidewaystable and sidewaysfigure with ones that will work with
endfloat. You can include that file or just copy the file to
endfloat.cfg in your local directory and endfloat will include it
automatically.

Once you do that, sideways and endfloated tables should work. One
thing that broke support for the table environment. I removed the
table environment leaving just the tabular and everything showed up
just right.

Regards,
Mako

--
Benjamin Mako Hill
ma...@atdot.cc
http://mako.cc

jaeger2000

unread,
Jun 14, 2009, 4:48:51 AM6/14/09
to LaTeX Users Group
Hello,
I miss read it and took me some time.
In case anyone else has the issue.
Above solves the issue like he said.

So, what I did was:
1.) Copy the file: efxmpl.cfg (which is located in the package
location: ...\latex\endfloat on my hard drive) to where I am writing
my tex document and leave it in that directory.
ie. Ben wrote above: "copy the file to your local directory".
That's what he meant.
2.) rename the file: efxmpl.cfg to endfloat.cfg.
3.) Compile. It worked!!

kind regards,

Ian Gregory.

Vancouverite

unread,
Jan 20, 2014, 9:28:54 PM1/20/14
to latexus...@googlegroups.com
I had a similar problem with a table that was defined using:
\usepackage{pdflscape}

\begin{document}
.
.
.
\begin{landscape}
\begin{table}
TABLE
\end{table}
\end{landscape}
.
.
.
\end{document}

I solved the problem by opening the endfloat.cfg file and changing the lines:

\RequirePackage{rotating}
\DeclareDelayedFloatFlavor{sidewaysfigure}{figure}
\DeclareDelayedFloatFlavor{sidewaystable}{table}
\endinput

to:

\RequirePackage{rotating}
\RequirePackage{pdflscape}                                 %%Added by me
\DeclareDelayedFloatFlavor{landscape}{table}        %%Added by me
\DeclareDelayedFloatFlavor{sidewaysfigure}{figure}
\DeclareDelayedFloatFlavor{sidewaystable}{table}
\endinput

and this worked to make the pdfscape table go to the bottom.

On Sunday, 10 March 2013 20:06:42 UTC-7, Ebrahim Alizadeh wrote:
The above solution worked for me,

Thanks
Reply all
Reply to author
Forward
0 new messages