I have been able to use the \twopagepicture package with success (all margins, appearances, etc.) correspond to what I have been looking for one of my wide figures in the thesis, however, it only gets at the end of the chapter not right after the text where it is supposed to introduce the figure. Is there a particular command I should add to force the figure to the next even/odd pages? I have tried the \clearpage before the next section but still it is.

I am working on a memoir like class that I have found useful for french style memoires. Here is what you can find on my styles file:

\usepackage{amsmath,amssymb}             % AMS Math %Format& definition of styles Myriam

% For the `memoir` class remove the following two packages.
% This class already provide the functionality of both


    \if #1t%
        \if #2p%
        \if #2p%
            \if #1t%
        \if #1b%
        \if #2p\relax
        \adjustbox{trim=0 0 {\mywidth} 0,clip}{\includegraphics[width=2\mywidth]{#3}}}%
        \if #1b\else
        \if #2p%
            \if #1b%
        \if #2p%
            \if #1t%
        \if #2p%
        \adjustbox{trim={\mywidth} 0 0 0,clip}{\includegraphics[width=2\mywidth]{#3}}}%
        \if #2p%
            \if #1b%

% Table of contents for each chapter

\usepackage[nottoc, notlof, notlot]{tocbibind}
% Use \minitoc where to put a table of contents


% Glossary / list of abbreviations

\renewcommand{\nomname}{Liste des Abréviations}


% My pdf code




%nicer backref links
\ifcase #1 %
(Non cité.)%
(Cité en page~#2.)%
(Cité en pages~#2.)%
\renewcommand*{\backrefsep}{, }
\renewcommand*{\backreftwosep}{ et~}
\renewcommand*{\backreflastsep}{ et~}

% Links in pdf

% Change this to change the informations included in the pdf file

pdfauthor="Myriam RAYMOND", %auteur du document
pdfsubject="Flexibilité et standardisation des SI dans les BPOs", %sujet du document
%pdftoolbar=false, %barre d'outils non visible
pdfmenubar=true, %barre de menu visible
pdfhighlight=/O, %effet d'un clic sur un lien hypertexte
colorlinks=true, %couleurs sur les liens hypertextes
pdfpagemode=None, %aucun mode de page
pdfpagelayout=SinglePage, %ouverture en simple page
pdffitwindow=true, %pages ouvertes entierement dans toute la fenetre
linkcolor=linkcol, %couleur des liens hypertextes internes
citecolor=citecol, %couleur des liens pour les citations
urlcolor=linkcol %couleur des liens pour les url

% definitions.
% -------------------


% Some useful commands and shortcut for maths:  partial derivative and stuff

\newcommand{\pd}[2]{\frac{\partial #1}{\partial #2}}

\usepackage{rotating}                    % Sideways of figures & tables
%\usepackage[sectionbib]{chapterbib}          % Cross-reference package (Natural BiB)
%\usepackage{natbib}                  % Put References at the end of each chapter
                                         % Do not put 'sectionbib' option here.
                                         % Sectionbib option in 'natbib' will do.
\usepackage{fancyhdr}                    % Fancy Header and Footer

% \usepackage{txfonts}                     % Public Times New Roman text & math font

%%% Fancy Header %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Fancy Header Style Options

\pagestyle{fancy}                       % Sets fancy header and footer
\fancyfoot{}                            % Delete current footer settings

%\renewcommand{\chaptermark}[1]{         % Lower Case Chapter marker style
%  \markboth{\chaptername\\
hechapter.\ #1}}{}} %

%\renewcommand{\sectionmark}[1]{         % Lower case Section marker style
%  \markright{\thesection.\ #1}}         %

\fancyhead[LE,RO]{\bfseries\thepage}    % Page number (boldface) in left on even
% pages and right on odd pages
\fancyhead[RE]{\bfseries\nouppercase{\leftmark}}      % Chapter in the right on even pages
\fancyhead[LO]{\bfseries\nouppercase{\rightmark}}     % Section in the left on odd pages

\renewcommand{\headrule}{\color{black} \headruleORIG}



%%% Clear Header %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Clear Header Style on the Last Empty Odd pages

\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else%
  \thispagestyle{empty}%              % Empty header styles


% Prints your review date and 'Draft Version' (From Josullvn, CS, CMU)
\newcommand{\reviewtimetoday}[2]{\special{!userdict begin
    /bop-hook{gsave 20 710 translate 45 rotate 0.8 setgray
      /Times-Roman findfont 12 scalefont setfont 0 0   moveto (#1) show
      0 -12 moveto (#2) show grestore}def end}}
% You can turn on or off this option.
% \reviewtimetoday{\today}{Draft Version}

\hrulefill $\:$ {\bf #1}\\


\renewcommand{\minitoc}{\minitocORIG \vspace{1.5em}}

{ \begin{list}%
{ \end{list} }


% centered page environment


And this is how my chapter looks like:

    \chapter{Cas Pilote:}
    \twopagepicture{b}{p}{Chapitre8/ATMprocessmap.jpg}{Shéma du processus de dévidage des enveloppes deposées par les clients dans les guichets automatiques.}\label{fig:ATMprocess}
    \section % another section

Could you please help in telling me why the process picture is shifted till the end of the chapter and does not take its place after the \twopagepicture environment? I still am facing a shifting between the left portion of the picture and the right portion (amounting to the caption's space). I totally depend on you figuring out what packages &/or commands are conflicting and resulting in these two issues please.

OK. I seem a bit clearer on this oversize image. But perhaps I'm not getting the required results because I'm not following the advice correctly. Here are some steps I need to clarify: a) When you say "These type of figures are best to insert them manually". You meant insert in the chapter directly? Where is the \twopagepicture command line then? b)You adviced to "Try modifying the \twopagepicture by copying it and renaming it". Where should I copy the file? and HOW could I rename it? c) The commands:

\cleartoevenpage \includegraphics[height=0.95\textheight]{petra} \newpage

should come in the chapter I'm writing? how do I combine these commands with the \twopagepicture command? Is the 0.95 indicative of an "OK" rescaling of my picture? or should I try other ratios until I reach the desired results?

Last, I used the commands as follows in my chapter:

    \twopagepicture{b}{p}{Chapitre8/ATMprocessmap.jpg}{Schéma du processus de dévidage des enveloppes de paiement déposées dans les guichets automatiques}

By trying the \cleartoevenpage before the \includegraphics and the \newpage after do not get me the required results. Notice that I need to omit all paper margins and that still my float goes to the end of the chapter leaving a blank paper at the required section. How could I manage a caption that spans above the two pages?

  • 2
    The problem would be much more comprehensible if you add a proper minimal example to your question and give a hint where to find this »twopagepicture« package. Mar 11, 2012 at 20:59
  • It seems that this cross-post contains some code: SPAN a figure over two pages.
    – Stefan Kottwitz
    Mar 11, 2012 at 21:21
  • I did add the minimal example and am really waiting "desperatly" for some help. S.O.S Mar 16, 2012 at 23:54
  • @MyriamIskander Can you post the offending image somewhere on the net, it might be able to be positioned quite easily otherwise, depending on the aspect ratio. You need also to add the class you need in your MWE. Mar 17, 2012 at 0:39

1 Answer 1


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:


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.

enter image description here

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.


The odd page image, will have to be shifted to the left by \textwidth.


enter image description here

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).


You can see the rule in the last image below.

enter image description here

Full MWE

First page


Hope this helps.

  • Hello @Yiannis the document class is \documentclass[a4paper,11pt,twoside]{StyleThese} I didn't understand what you meant with comment out. Did you mean remove delete or just putting the % comment?? I'm not sure I am understanding. Mar 17, 2012 at 23:24
  • @MyriamIskander By comment out I mean just put the % as I marked it above. Mar 18, 2012 at 3:08
  • Tried this option, but had very puzzled results (even afer several compilations). The picture gets parts onto the same page with text overlapping on it. Plus no caption appears with the figure. Mar 18, 2012 at 12:24
  • But the \pagebreak \cleardoublepage did force the figure to appear at the right place. The problem is now to account for the caption shifting Mar 18, 2012 at 12:30
  • @MyriamIskander It is difficult to tell without having a knowledge of the image. Can you post it somewhere? Mar 18, 2012 at 16:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.