I am having trouble with the subfigures in one main figure. I am using the following preamble and coding for the figures:

\usepackage[none]{hyphenat} % no word break
\usepackage{graphics, float}
\usepackage{epstopdf} %graphics in .eps format
\usepackage[backend=bibtex,style=numeric, sorting=none]{biblatex}
\usepackage{csquotes} %Package biblatex Warning: 'babel/polyglossia' detected but 'csquotes' missing.
\geometry{a4paper} % ... or letter or a4paper or a5paper or ...            %\usepackage[parfill]{parskip}    % Activate to begin paragraphs with an empty line rather than an indent
\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}
        urlcolor=blue }
\oddsidemargin = 0.5cm
\def \m{$\mu$} 
\def \g{$\gamma$}
\def \b{$\beta^-$}
\def \a{$\alpha$}
\def \PCL{$\text{PCL}_\text{13000}$-$\text{PEO}_\text{5000}$}
\def \PEO{$\text{PCL}_\text{1100}$-$\text{PEO}_\text{550}$}

    \caption{In figure a, the chemical structure of block copolymer PCL-PEO can be viewed. In figure b and c, the chemical structures of respectively polymer PEO and PCl can be viewed.}\label{fig:PCLPEO2}


It now looks like this: enter image description here

I would like them to be horizontally next to each other with some spacing in between, but I cannot figure this out..

1 Answer 1


Try removing any imports of the subfigure and subfig packages; the former is deprecated, and the latter certainly should not be used at the same time as the former. Replacing them with the subcaption package should accomplish what you want (see, for example, here).

Indeed, I don't think the subfigure package will accept the arguments you're passing to it, which accounts for those little ‘0.3’s and ‘b’s floating around your diagrams.

  • I changed the packages into the subcaption package. It looks better now, but I am still not satisfied with the result. Do you know how I can get the images all horizontally to each other with some spacing in between? Feb 24, 2015 at 10:03
  • The widths you've specified in your example seem to add up to more than \textwidth. Is the problem solved if you decrease them all to 0.25\textwidth, for example? Feb 24, 2015 at 10:08
  • Yes, I know I actually cannot use these widths, but it looked better then for example using 0.25\textwidth. When Iam using these widths u are putting forward the figures will overlap.. I did use minipages before, but I it is not working for subfigures right? Feb 24, 2015 at 10:12
  • I'm not clear on the problem you're having then. What is it that you're not satisfied with? Is it just that the diagrams are too large and so you cannot fit them onto one line without them overlapping, or is there something else? I'm not sure about the interactions of minipages with subfigures, but I've used them with the subequations environment before without any problem. Feb 24, 2015 at 10:15
  • The problem was that the figures did not have the same dimensions, so I just had to vary the widths a little bit. It worked now! Thanks for your tip of using the subcaption package, because that actually was the trick! :) Feb 24, 2015 at 10:17

You must log in to answer this question.

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