Thanks for reading my inquiry.
My issue concerns (sideways / landscape) longtable, the afterpage package, and (figure) float placement. In particular, the latter seems to behave in what is, for me at the moment, an undesireable manner.
Having encountered the need to include a large landscape table in my work, and wishing that table to "float", I have explored several alternatives. The rotating package is excellent, for example. Its tables "float" very well; unfortunately - and nobody claims it's supposed to do this - it cannot break tables across pages. The other alternative I have explored is the lscape / pdflscape package with longtable. This combination generates great landscape tables broken across pages, but it does not permit text to "flow" around the table. Enter the afterpage package. I have found several examples of concerns such as mine resolved with this package. Some examples:
http://tex.stackexchange.com/questions/ ... learing-th
http://tex.stackexchange.com/questions/ ... scape-page
http://www.latex-community.org/forum/vi ... age#p53422
http://www.latex-community.org/forum/vi ... cape#p8882
So the above examples seem to work very well when only text surrounds that "floating" longtable. My problem enters when what follows the table are numerous, 1-page each, (floating) figures. To start, I'll adapted an example from the above with bold and italics (I can't yet read latin) to generate the following:
Code: Select all
\documentclass{article}
\usepackage{array,longtable,lipsum,afterpage,pdflscape}
\begin{document}
\textbf{\lipsum[1]}
\afterpage{
\begin{landscape}
\begin{longtable}{|c|>{\raggedright}p{0.7\linewidth}|}
\hline
A & \lipsum[1] \tabularnewline \hline
B & \lipsum[2] \tabularnewline \hline
C & \lipsum[3] \tabularnewline \hline
D & \lipsum[4] \tabularnewline \hline
\end{longtable}
\end{landscape}
}
\textit{\lipsum[2-8]}
\end{document}
Code: Select all
\documentclass{article}
\usepackage{array,longtable,lipsum,afterpage,pdflscape}
\begin{document}
\textbf{\lipsum[1]}
\afterpage{
\begin{landscape}
\begin{longtable}{|c|c|>{\raggedright}p{0.7\linewidth}|}
\hline
Figure \ref{fig:first} & A & \lipsum[2] \tabularnewline \hline
Figure \ref{fig:second} & B & \lipsum[3] \tabularnewline \hline
Figure \ref{fig:third} & C & \lipsum[4] \tabularnewline \hline
Figure \ref{fig:fourth} & D & \lipsum[5] \tabularnewline \hline
\end{longtable}
\end{landscape}
}
\begin{figure}
\caption{First}
\label{fig:first}
\vspace{6in} %%%%%%%%%%% make a full-page "dummy figure"
\end{figure}
\begin{figure}
\caption{Second}
\label{fig:second}
\vspace{6in} %%%%%%%%%%% make a full-page "dummy figure"
\end{figure}
\begin{figure}
\caption{Third}
\label{fig:third}
\vspace{6in} %%%%%%%%%%% make a full-page "dummy figure"
\end{figure}
\begin{figure}
\caption{Fourth}
\label{fig:fourth}
\vspace{6in} %%%%%%%%%%% make a full-page "dummy figure"
\end{figure}
\textit{\lipsum[6-10]}
\end{document}
Thanks for your time,
Christian