General ⇒ Forcing graphics on left hand page (or right hand page)
-
- Posts: 12
- Joined: Sun Oct 26, 2008 1:22 am
Forcing graphics on left hand page (or right hand page)
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.
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)
Hi,
this macro could be useful for you:
The memoir class provides a macro with this name that's programmed similar.
Stefan
this macro could be useful for you:
Code: Select all
\newcommand*\cleartoevenpage{%
\clearpage%
\ifodd\value{page}\mbox{}\clearpage\fi}
Stefan
LaTeX.org admin
-
- Posts: 12
- Joined: Sun Oct 26, 2008 1:22 am
Forcing graphics on left hand page (or right hand page)
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:
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:
It looks the same as before when the command was not used.
Am I doing something wrong here? Thanks for your help.
Code: Select all
\cleartoevenpage
\begin{figure}[h!]
\centering
\subfloat[][blahblah] ...
Code: Select all
\begin{figure}[h!]
\cleartoevenpage
\centering
\subfloat[][blahblah] ...
Am I doing something wrong here? Thanks for your help.
- Stefan Kottwitz
- Site Admin
- Posts: 10347
- Joined: Mon Mar 10, 2008 9:44 pm
Forcing graphics on left hand page (or right hand page)
\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
Stefan
LaTeX.org admin
-
- Posts: 12
- Joined: Sun Oct 26, 2008 1:22 am
Re: Forcing graphics on left hand page (or right hand page)
Adding the \clearpage command immediately after the figure solved it. Thanks!