一幅图中三个子图水平排列

一幅图中三个子图水平排列

我在处理一个主图中的子图时遇到了麻烦。我使用以下序言和编码来处理这些图:

\documentclass[11pt]{report}
\usepackage{geometry}
\usepackage{amsmath}
\usepackage{acronym}
\usepackage{times}
\usepackage{amssymb}
\usepackage{mathrsfs}
\usepackage{latexsym}
\usepackage[none]{hyphenat} % no word break
\usepackage{wrapfig}
\usepackage[font={footnotesize,it}]{caption}
\usepackage{url}
\usepackage{titling}
\usepackage{textcomp}
\renewcommand{\thechapter}{\Roman{chapter}}
\renewcommand{\thesection}{\arabic{chapter}.\arabic{section}}
\renewcommand{\thetable}{\arabic{chapter}.\arabic{table}}
\renewcommand{\thefigure}{\arabic{chapter}.\arabic{figure}}
\usepackage{hyperref}
\usepackage{cleveref}
\usepackage{graphics, float}
\usepackage{caption}
\usepackage[pdftex]{graphicx}
\usepackage{epstopdf} %graphics in .eps format
\usepackage{siunitx}
\usepackage{booktabs}
\usepackage{microtype}
\usepackage{subfigure}
\usepackage{subfig}
\usepackage[english]{babel}\addto\captionsenglish
{\renewcommand{\bibname}{References}}
\usepackage[backend=bibtex,style=numeric, sorting=none]{biblatex}
\usepackage{multirow}
\usepackage{textcomp}
\usepackage{csquotes} %Package biblatex Warning: 'babel/polyglossia' detected but 'csquotes' missing.
\usepackage{listings}
\usepackage{babel,blindtext}
%\usepackage[T1]{fontenc} 
\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}
\hypersetup{colorlinks,
        citecolor=black,
        filecolor=black,
        linkcolor=black,
        urlcolor=blue }
\setlength{\textwidth}{420pt}
\oddsidemargin = 0.5cm
\def \m{$\mu$} 
\def \g{$\gamma$}
\def \b{$\beta^-$}
\def \a{$\alpha$}
\newcommand{\unicode}[1]{{}}
\def \PCL{$\text{PCL}_\text{13000}$-$\text{PEO}_\text{5000}$}
\def \PEO{$\text{PCL}_\text{1100}$-$\text{PEO}_\text{550}$}

   \begin{figure}
    \begin{subfigure}{0.36\textwidth}
            \includegraphics[scale=0.72]{PolymersomePCLPEO.JPEG}
            \caption{PEO-PCL}
            \label{fig:PCLPEO1}
    \end{subfigure}        
    \begin{subfigure}{0.34\textwidth}
            \includegraphics[scale=0.4]{PEO.JPEG}
            \caption{PEO}
            \label{fig:PEO1}        
    \end{subfigure}       
    \begin{subfigure}{0.32\textwidth}
            \includegraphics[scale=0.82]{PCL.JPEG}
            \caption{PCL}
            \label{fig:PCL1}       
    \end{subfigure}
    \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}

\结束{图}

现在看起来像这样: 在此处输入图片描述

我希望它们水平地相邻,并且它们之间有一定的间距,但我无法弄清楚这一点。

答案1

subfigure尝试删除和包的任何导入subfig;前者已弃用,后者当然不应与前者同时使用。用包替换它们subcaption应该可以实现您想要的效果(例如,参见这里)。

事实上,我认为 subfigure 包不会接受您传递给它的参数,这解释了图表中出现的那些小“0.3”和“b”。

相关内容