将 3 个数字以两列格式放在一行中

将 3 个数字以两列格式放在一行中

你好,我使用的是双列格式,我想将三幅图放在一行中,就像这个图一样,并且每个图都应该有单独的标题 在此处输入图片描述

\documentclass[conference]{IEEEtran}
    \IEEEoverridecommandlockouts
    \usepackage{cite}
    \usepackage{amsmath,amssymb,amsfonts}
    \usepackage{algorithmic}
    \usepackage{graphicx}
    \usepackage{textcomp}
    \usepackage{xcolor}
    \usepackage{subfig}
    \usepackage[english]{babel}
    \usepackage[utf8]{inputenc}
    \usepackage{makecell}%
    %table
    \usepackage[margin=1in]{geometry}
    \usepackage{tabularx,booktabs}
    \newcolumntype{Y}{>{\centering\arraybackslash}X}
    \usepackage{blindtext}
    \usepackage{times}
    %\usepackage[linesnumbered,ruled,vlined]{algorithm2e}
    \usepackage{algorithm} 
    %\usepackage{algpseudocode} 
     \usepackage{algorithmic}
    
    \makeatletter
    \newcommand{\removelatexerror}{\let\@latex@error\@gobble}
    \makeatother
    
    %\documentclass{IEEEtran}
    
    \usepackage[english]{babel}
    \usepackage[utf8]{inputenc}
    \def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
        T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
        
    \begin{document}
     \begin{figure}
    \begin{minipage}[t]{0.475\columnwidth}
    {\includegraphics[width=\linewidth]{Fig9.PNG}}
      \caption{ssssssss}
      \label{Fig9}
    \end{minipage}\hfill % maximize horizontal separation
    \begin{minipage}[t]{0.475\columnwidth}
    {\includegraphics[width=\linewidth]{Fig10.PNG}}
      \caption{vvvvvvvvvvvvvvvvvvv}
      \label{Fig10}
    \end{minipage}
    \end{figure}

我也尝试过此代码但它没有将图形放置在大小相同的位置

\begin{figure*}

\floatsetup{floatrowsep=Qquad}
\begin{floatrow}
\ffigbox[\FBwidth]{\caption{bbbbb}\label{bbb}}{\includegraphics[scale=0.4]{aaa.png}}
\ffigbox[\FBwidth]{\caption{bbb}\label{Hedgehog}}{\includegraphics[scale=0.4]{aaa.png}}
\ffigbox[\FBwidth]{\caption{cccc}\label{Ernst}}{\includegraphics[scale=0.4]{aaa.png}}
\end{floatrow}
\end{figure*}

答案1

LaTeX 中没有任何内容禁止您\caption在单个figurefigure*环境中放置多个 s。

您可以minipage在浮点数内嵌套 s 以获得标题的正确宽度。

\documentclass[twocolumn]{article}

\usepackage[]{graphicx}

\usepackage{duckuments} % <- dummy content

\begin{document}
\begin{figure*}
  \begin{minipage}[t]{.3\linewidth}
    \includegraphics[width=\linewidth]{example-image-duck}%
    \caption{This is a duck}%
  \end{minipage}\hfil
  \begin{minipage}[t]{.3\linewidth}
    \includegraphics[width=\linewidth]{example-image-duck}%
    \caption{This is another duck}%
  \end{minipage}\hfil
  \begin{minipage}[t]{.3\linewidth}
    \includegraphics[width=\linewidth]{example-image-duck}%
    \caption{But then the ducks arrived}%
  \end{minipage}%
\end{figure*}
\duckument
\end{document}

在此处输入图片描述

相关内容