GeneralForcing graphics on left hand page (or right hand page)

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
greengrass
Posts: 12
Joined: Sun Oct 26, 2008 1:22 am

Forcing graphics on left hand page (or right hand page)

Post by greengrass »

I have a series of graphics, each occupying a page. (Example - 6 continuous pages of graphics.) I would like them to always start on a left hand page, as they are meant to be viewed in pairs (i.e. every 2 pages should be viewed together, ideally left+right pages to avoid a page flip). Is there any way to force that to happen? I am using the graphicx package and using 'subfloat' for all these figures.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

Forcing graphics on left hand page (or right hand page)

Post by Stefan Kottwitz »

Hi,

this macro could be useful for you:

Code: Select all

\newcommand*\cleartoevenpage{%
  \clearpage%
  \ifodd\value{page}\mbox{}\clearpage\fi}
The memoir class provides a macro with this name that's programmed similar.

Stefan
LaTeX.org admin
greengrass
Posts: 12
Joined: Sun Oct 26, 2008 1:22 am

Forcing graphics on left hand page (or right hand page)

Post by greengrass »

Thanks for that. I'm experimenting with it but am wondering where the correct placement for it is. As I understand, my figure (spanning many pages) is a float and so if I place the command before the figure:

Code: Select all

\cleartoevenpage
\begin{figure}[h!]
\centering
\subfloat[][blahblah] ... 
I get a blank right-hand page, some text on the following left hand page, and then my figure starts on the next right hand page (presumably because its a float?). If i place the command inside the figure:

Code: Select all

\begin{figure}[h!]
\cleartoevenpage
\centering
\subfloat[][blahblah] ... 
It looks the same as before when the command was not used.

Am I doing something wrong here? Thanks for your help.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

Forcing graphics on left hand page (or right hand page)

Post by Stefan Kottwitz »

\cleartoevenpage should be placed right before \begin{figure}. But try it with placing \clearpage right after the following figures additionally to force their output before the following text.

Stefan
LaTeX.org admin
greengrass
Posts: 12
Joined: Sun Oct 26, 2008 1:22 am

Re: Forcing graphics on left hand page (or right hand page)

Post by greengrass »

Adding the \clearpage command immediately after the figure solved it. Thanks!
Post Reply