我正在使用带有会议设置的文档类 IEEEtrans 来撰写论文。当我添加带有子图的图形时,LaTeX 意外地添加了垂直空间,这会使整个文档看起来很奇怪,并在意想不到的地方添加了更多空间。(参见图中的示例)
正如您在图中所看到的,马和文字之间存在不应该存在的垂直空间。
该作品的代码:
\begin{figure} [H]
\centering
\subfigure[Original]
{
\includegraphics[width=1.4in]{images/Fotos_caballos/caballos.png}
\label{caballos_original}
}
\subfigure[Demo using recommended scales]
{
\includegraphics[width=1.4in]{images/Fotos_caballos/caballos_out_orig.png}
\label{caballos_demo}
}
\\
\subfigure[Demo using scales 3, 4 and 6]
{
\includegraphics[width=1.4in]{images/Fotos_caballos/caballos_out_346.png}
\label{caballos_demo_346}
}
\subfigure[Python]
{
\includegraphics[width=1.4in]{images/Fotos_caballos/output_python_caballos.png}
\label{caballos_python}
}
\\
\subfigure[FPGA]
{
\includegraphics[width=1.4in]{images/Fotos_caballos/output_fpga_caballos.png}
\label{caballos_FPGA}
}
\caption{Horses image comparison. }
\label{caballos}
\end{figure}
Figure \ref{caballos} shows how the MSRCP algorithm works on a badly contrasted image with certain shadowed elements.
整个文档使用的包和选项:
\documentclass[conference]{IEEEtran}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage[utf8]{inputenc}
\usepackage{algorithmic}
\usepackage[ruled]{algorithm2e}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{xcolor}
\usepackage{float}
\usepackage[sorting=none]{biblatex}
\usepackage[export]{adjustbox}
\usepackage{subfigure}
\addbibresource{cite.bib} %Imports bibliography file
\setlength{\dblfloatsep}{1in}
\begin{document}
\newcommand{\etal}{\textit{et al.}}
\makeatletter
\newcommand{\removelatexerror}{\let\@latex@error\@gobble}
\makeatother
\pagestyle{plain}