I am writing my thesis in B5 format in Latex. In the main text, I can handle floats of the figures quite OK. But in the supporting information part, I have massive amount of images (images only under different sections/subsections) which I would like to place 2 images on one page. But after compiling, I am getting one image on a single page which increases the total number of pages heavily.

I have to use [H] from the float package because otherwise images appears random places and nothing placed under section/subsection names.

I have also tried something like


      \@clubpenalty \clubpenalty
       {\@latex@warning{Empty `thebibliography' environment}}%

%%% For an A4 format, use there options instead

            $\underset{\raisebox{0.5ex}{$\smash -$}}{\smash+}$%

%%% Fonts, uncomment only one option %%%

%%% If you want to use MakeIndex to create automatically
% an index, uncomment these lines
\usepackage{makeidx}     % only with Latex2e

% Other packages
% \usepackage{subfig}
\usepackage[super,numbers,sort&compress]{natbib}  %coma




% \usepackage{showframe}



% \usepackage{pstricks-add}%pst-char,,pst-text,ae,pst-grad,pst-slpe
% \usepackage{lmodern,pst-node}

% \renewcommand{\thesubfigure}{} 

% dblfloatfix fixes two floatpages after each other
    % Alter some LaTeX defaults for better treatment of figures:
    % See p.105 of "TeX Unbound" for suggested values.
    % See pp. 199-200 of Lamport's "LaTeX" book for details.
    %   General parameters, for ALL pages:
    \renewcommand{\topfraction}{0.9}    % max fraction of floats at top
    \renewcommand{\bottomfraction}{0.8} % max fraction of floats at bottom
    %   Parameters for TEXT pages (not float pages):
    \setcounter{totalnumber}{4}     % 2 may work better was 4
    \setcounter{dbltopnumber}{2}    % for 2-column pages
    \renewcommand{\dbltopfraction}{0.9} % fit big float above 2-col. text
    \renewcommand{\textfraction}{0.07}  % allow minimal text w. figs
%   Parameters for FLOAT pages (not text pages):
    \renewcommand{\floatpagefraction}{0.7}  % require fuller float pages was 0.7
    % N.B.: floatpagefraction MUST be less than topfraction !!
    \renewcommand{\dblfloatpagefraction}{0.7}   % require fuller float pages 0.7

\listsubcaptions % Finish the last set of sub-floats before
\def\@captype{#1}}% switching to another float type.

%%% Path to the directorz containing the graphics and figures 
%%% General page formatting

 \end{center} \small \it \begin{quote}}

% Macro for 'List of Symbols', 'List of Notations' etc...
\def\listofsymbols{\input{symbols} \clearpage}
\def\addsymbol #1: #2#3{$#1$ \> \parbox{4.6in}{#2 \dotfill \pageref{#3}}\\}



% \def\@mb@citenamelist{cite,citep,citet,citealp,citealt,footcite,nocite}

% Initialize each paper type for which you need a bibliography.
% Just a dummy parameter is necessary.
% \newcites{p}{Publications}
%\newcites{journal,conf,techreport,submitpaper}{Journal Papers,Conference Papers,Technical Reports, Submitted Papers}%Journal Papers


%%% To compile only one or some chapters, use the following
%   command 
% \includeonly{chapter1,chapter2,chapter3,chapter4,appendix_A}

% Morerow Comments
% \newcommand{\comment}[1]{{}} 

% correct bad hyphenation here
% TODO hyphenation
%\hyphenation{qua-dra-tic SRBCT pre-ser-va-tion Min-kow-ski a-dapt-ive de-ri-va-tive pat-ches pre-serv-ing re-sul-ting Em-bedd-ing 
%where-by uni-form de-ri-va-ti-ves con-ti-nu-ous-ly wille-keurige voor-ge-steld}
% solve hyphenation that contain a dash like electromagnetic-endioscopy: electromagnetic\hyp{}endioscopy
% high\hyp{}dimensional

% \usepackage{scrwfile}
% \usepackage{xy}%etex
% \xyoption{all} 

%%% Begining of the document 

\subsection{Section Name}
    \caption{caption 1}

    \caption{caption 2}

    \caption{caption 3}

    \caption{caption 4}


instead of

\subsection{Section Name}
\caption{caption 1}

\caption{caption 2}

\caption{caption 3}

\caption{caption 4}

But it is not really useful if I need to add something afterwards (if I add a figure in between I have to redo everything again). And also if I include two images in a single \begin{figure}, I get a blank page before it.

Here is a screenshot what I get: enter image description here

and what I want: enter image description here

  • 1
    if you use H then the entire float has no positioning logic applied at all, it's just as positioned as if it was a big X at that point, so basically you can have as many H floats on a page as you want if they fit. It's not possible to run your code but presumbably the images are (or at least tex things they are) too big to fit (allowing for space between them and the page number etc. If you use example-image (which is available for such tests) and made a real test document someone could suggest how to make the images fit Commented Feb 24, 2018 at 12:14
  • 1
    unrelated but don't load here (it just loads float) don't load amsmath (twice) as it's loaded by mathtools, don't load epsfig (ever:-) use graphicx don't load graphics (included by at least epsfig or rotating or graphicx or psfrag) you specify multiorow twice Commented Feb 24, 2018 at 12:22
  • I am using the following template for the thesis in general: rug.nl/research/intelligent-systems/latexresources/… Commented Feb 24, 2018 at 12:35
  • it is best to make a small example that you add inline to your question (it should only need article class float.sty and some floats using example-image with heights forced to demonstrate your issue. Commented Feb 24, 2018 at 12:38
  • As a rule, avoid templates, and never use a package unless you know what it does. Commented Feb 24, 2018 at 16:47

1 Answer 1


To place two images in a page, [H] is just the worst option as this avoid floating the two images to the right nearly point (most probably the beginning of the next page) without leaving huge wasting spaces.

You really only need take care of tree things to avoid this:

(1) Obviously, always avoid [H] (at least for this objective).

(2) Place the [p] option alone (or combined with t and b) whenever it is needed (convenient,permissible) to group floats.

(3) Take care that the height of the two images plus the height of the two captions and some more (because \floatsep and \textfloatsep if there are also some text) is no more that the total height of text. If so, reduce the image size, the captions or both.

Alternatively you can put several images in a a float, but this not save you of (3), only make the [tbp] options mostly irrelevant (as far as the height of the float is near of hte the height of the whole text area). The only advantage of this approach is force join images at any cost (even when they do not fit at all in the page) but precisely for this reason usually will be better use two float and with the appropriate option/s:

This MWE try to explain this with some examples:



% Just to simplify the posterior code

\lipsum[1] % dummy text

% [p] option is good if you want two images in one page

% option here is superfluous (except if you use also "b" or "t") 

% [p] option still works! 

% options here agian is superfluous 

% Images too big per only one page  
% Use [t], [b] or [tp] but not [p] if you want avoid a centered image without text around
% (maybe not a bad idea after all ...) 

\begin{figure}[tb!] \wideimage{example-image-16x9}\captionlipsum\end{figure}\lipsum[5]


% Two images in a float to maintain together. Not a good idea in this case ....    

% ... unless you take care of the image size

  • I mostly agree with you, but: If you want to have control over where the images are put, don't use figure at all. So it might be best to not use figure (though your tips on positioning are all correct and good if one uses figure).
    – Skillmon
    Commented Feb 24, 2018 at 15:14
  • @Skillmon As far I understood, in this case the problem is not maintain images together in an exact position of text , but in the same page, completely filled with that images. Whereas for the first is enough put aside the floats (but using a package for the captions) for the second I do not see why to do that.
    – Fran
    Commented Feb 24, 2018 at 15:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .