Here is an example of my solution some days before. I am using the package hvfloat. I know the package units is obsolete. siunitx is much better.
\documentclass[11pt, a4paper, twoside]{report}
\usepackage{geometry}
\usepackage{amsmath,amsfonts,amssymb,amsxtra}
\usepackage{booktabs}
\usepackage{hvfloat}
\usepackage{units}
\begin{document}
\listoftables
\clearpage
\section{minimalbeispiel}
\vfill
\begin{center}
\hvFloat[%
nonFloat=true,%
capPos=l,%
capAngle=90,%
objectAngle=90,%
]{table}{\tiny%
\begin{tabular}{llllllll}
\toprule
& \multicolumn{4}{c}{Coefficients} & & \\
\cmidrule(lr){2-5}
Clamp. pres. in bar & $b_0$ & $b_1$ & $b_2$ & $b_3$ & $SS_{\text{err}}$ & $R^2$ in \%\\
\midrule
15 & $9.63*10^{-1}$ & $-2.16*10^{-3}$ & $3.56*10^{-6}$ & $-3.38*10^{-9}$ & $6.16*10^{-4}$ & 99.88\\
20 & $9.62*10^{-1}$ & $-2.08*10^{-3}$ & $3.40*10^{-6}$& $-3.27*10^{-9}$ & $8.19*10^{-4}$ & 99.83\\
25 & $9.64*10^{-1}$ & $-2.08*10^{-3}$ & $3.46*10^{-6}$ & $-3.29*10^{-9}$ & $5.30*10^{-4}$ & 99.89\\
30 & $9.61*10^{-1}$ & $-1.99*10^{-3}$ & $3.19*10^{-6}$ & $-3.00*10^{-9}$ & $6.99*10^{-4}$ & 99.84\\
35 & $9.53*10^{-1}$ & $-1.98*10^{-3}$ & $3.09*10^{-6}$ & $-2.92*10^{-9}$ & $6.87*10^{-4}$ & 99.85\\
40 & $9.53*10^{-1}$ & $-2.04*10^{-3}$ & $3.33*10^{-6}$ & $-3.22*10^{-9}$ & $5.84*10^{-4}$ & 99.88\\
45 & $9.54*10^{-1}$ & $-2.06*10^{-3}$ & $3.20*10^{-6}$ & $-3.02*10^{-9}$ & $5.24*10^{-4}$ & 99.89\\
\bottomrule
\end{tabular}%
}%
[Polarization curve data fitting of clamping pressure testing]{%
Polarization curve data fitting of clamping pressure testing\\ Model: $\frac{U}{V} = b_0 + b_1 \frac{i}{\unitfrac[]{\text{mA}}{\text{cm}^2}} + b_2 \frac{i^2}{\left(\unitfrac[]{\text{mA}}{\text{cm}^2}\right)^2} + b_3 \frac{i^3}{\left(\unitfrac[]{\text{mA}}{\text{cm}^2}\right)^3}$}{tab:3}
%
\hvFloat[%
nonFloat=true,%
capPos=l,%
capAngle=90,%
objectAngle=90,%
]{table}{\tiny%
\begin{tabular}{llllll}
\toprule
& \multicolumn{3}{c}{Coefficients} & & \\
\cmidrule(lr){2-4}
\tiny{Curr. dens. in \unitfrac{mA}{cm\textsuperscript{2}}} & $b_0$ & $b_1$ & $b_2$ & $SS_{\text{err}}$ & $R^2$ in \%\\
\midrule
100 & $7.35*10^{-1}$ & $2.35*10^{-3}$ & $-4.09*10^{-5}$ & $2.98*10^{-5}$ & 76.12\\
200 & $6.09*10^{-1}$ & $3.91*10^{-3}$ & $-6.64*10^{-5}$ & $3.21*10^{-5}$ & 87.97\\
300 & $4.76*10^{-1}$ & $6.83*10^{-3}$ & $-1.16*10^{-4}$ & $5.13*10^{-5}$ & 93.34\\
400 & $3.82*10^{-1}$ & $6.40*10^{-3}$ & $-1.08*10^{-4}$ & $3.66*10^{-5}$ & 94.47\\
480 & $2.58*10^{-1}$ & $9.11*10^{-3}$ & $-1.53*10^{-4}$ & $7.52*10^{-5}$ & 94.23\\
560 & $1.69*10^{-1}$ & $8.80*10^{-3}$ & $-1.47*10^{-4}$ & $1.55*10^{-4}$ & 88.06\\
640 & $1.88*10^{-2}$ & $1.18*10^{-2}$ & $-1.94*10^{-4}$ & $2.28*10^{-4}$ & 89.73\\
\bottomrule
\end{tabular}%
}
[Cell voltage over clamping pressure data fitting parameters]{Cell voltage over clamping pressure data fitting parameters\\ Model: $\frac{U}{V} = b_0 + b_1 \frac{p}{\text{bar}} + b_2 \frac{p^2}{\left(\text{bar}\right)^2}$}{tab:2}
\end{center}
\vfill\clearpage
\end{document}
The reason has to do with an oversize image. As LaTeX cannot fit it on a page it will float to the end. These type of figures are best to insert them manually
. You will need to define a different environment for this. Try modifying the \twopagepicture
by copying it a renaming it and just comment out the begin{figure}
and \end{figure}
.
\newcommand*{\twopagepicture}[4]{% copy twopagepicture an comment out
.....
% \begin{figure}[#1]
....
% \end{figure}%
% \begin{figure}[#1]
.....
% \end{figure}%
......
}
This ensures that the images will be shown exactly where placed.
To have a correctly placed two page spread firstly, one needs a method to clear to an even page, normally I would code it as follows:
\usepackage[strict]{changepage}
\makeatletter
\newcommand{\cleartoevenpage}{%
\clearpage%
\ifoddpage\c@page\hbox{}\clearpage\fi}
The second issue to take into consideration, is that the image width is always larger than the \textwidth
dimension and hence any scaling must be done on the \textheight
. This is important, otherwise you will get a new page.
The even page image is simply placed normally but issuing a \cleartoevenpage
before the placement and a \newpage after
it, producing the image shown above.
\cleartoevenpage
\includegraphics[height=0.95\textheight]{petra}
\newpage
The odd page image, will have to be shifted to the left by \textwidth
.
\hspace*{-\textwidth}\includegraphics[height=0.95\textheight]{petra}\hspace{1em}
The caption can be placed using a parbox
or a minipage
. In this case I have used a parbox
. If your captions will have more than a paragraph of text, then use a minipage. Depending on the amount of text you have it may look better if you shift it slightly up or down. This can be done either using a vspace
command or use a rule (I prefer the latter as I can have a visual clue and only zero the width at the final copy).
\parbox[b]{0.25\textwidth}{\lipsum*[1-2]\par\rule{1pt}{50pt}}
You can see the rule in the last image below.
Full MWE
\documentclass{book}
\usepackage[left=0pt,right=0pt,top=0.5in,bottom=0.5in]{geometry}
\usepackage{graphicx,lipsum,caption,crop}
\usepackage[strict]{changepage}
\makeatletter
\newcommand{\cleartoevenpage}{%
\clearpage%
\ifoddpage\c@page\hbox{}\clearpage\fi}
\begin{document}
First page
\cleartoevenpage
\includegraphics[height=0.95\textheight]{petra}
\newpage
\hspace*{-\textwidth}\includegraphics[height=0.95\textheight]{petra}\hspace{1em}
\parbox[b]{0.25\textwidth}{\lipsum*[1-2]\par\rule{1pt}{50pt}}
\end{document}
Hope this helps.
Best Answer
You cannot mix some text (section title) and
sidewaysfigure
on the same page. In your case, if the image is shorter than rest of vertical place on the page and you like to have both on the same page, just can rotate only image:Note, in this case figure caption is not rotated width image.