兩個圖形之間的空白

兩個圖形之間的空白

我有四個大小相同的人物。它們都放在彼此下面,但由於某種原因,前兩個頁面之間沒有空格,但對於後兩個頁面,有一個空白,這使得頁面看起來不太好,因為我使用的是兩列頁面,而第一個頁面兩個位於第一列的頂部,第二個位於第二列的頂部,但它們之間有一個空白。這是我使用的乳膠代碼:

\begin{figure}[t]
{\includegraphics[width=\linewidth]{4.png}}
\caption{4}
\label{4}
\end{figure}
\begin{figure}[t]
{\includegraphics[width=\linewidth]{4.png}}
\caption{4}
\label{4}
\end{figure}
\begin{figure}[t]
{\includegraphics[width=\linewidth]{4.png}}
\caption{4}
\label{4}
\end{figure}
\begin{figure}[t]
{\includegraphics[width=\linewidth]{4.png}}
\caption{4}
\label{4}
\end{figure}

這些是我的包裹:

\documentclass[conference,letterpaper]{IEEEtran}
\usepackage{fancyhdr}
\setlength{\paperwidth}{215.9mm}
\setlength{\hoffset}{-9.7mm}
\setlength{\oddsidemargin}{0mm}
\setlength{\textwidth}{184.3mm}
\setlength{\columnsep}{6.3mm}
\setlength{\marginparsep}{0mm}
\setlength{\marginparwidth}{0mm}

\setlength{\paperheight}{279.4mm}
\setlength{\voffset}{-7.4mm}
\setlength{\topmargin}{0mm}
\setlength{\headheight}{0mm}
\setlength{\headsep}{0mm}
\setlength{\topskip}{0mm}
\setlength{\textheight}{235.2mm}
\setlength{\footskip}{12.4mm}

\setlength{\parindent}{1pc}

\usepackage{fancyhdr}
\usepackage{float}
\usepackage[centertags]{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb} %AAB95
\usepackage{amsthm}
\usepackage{tabularx}
\usepackage{comment}
\usepackage{newlfont}
\usepackage{graphicx}
\usepackage{changebar}
\usepackage{subfig}
\usepackage{algorithmic}
\usepackage{subfloat}
\usepackage{multirow}
\usepackage{booktabs}
\usepackage{cite}
\usepackage{amsmath}
\usepackage[T1]{fontenc}
\newtheorem{theorem}{Theorem}[section]
\usepackage[active]{srcltx}
\hfuzz2pt % Don't bother to report over-full boxes if over-edge is < 2pt
\newlength{\defbaselineskip}
\setlength{\defbaselineskip}{\baselineskip}
\newcommand{\setlinespacing}[1]%
           {\setlength{\baselineskip}{#1 \defbaselineskip}}
\newcommand{\doublespacing}{\setlength{\baselineskip}%
                           {1.5 \defbaselineskip}}
\newcommand{\singlespacing}{\setlength{\baselineskip}{\defbaselineskip}}
\renewcommand{\baselinestretch}{1.3}
\usepackage{tabularx,booktabs,ragged2e}
\newcolumntype{Y}{>{\RaggedRight\hsize=1.35\hsize}X}
\newcolumntype{Z}{>{\Centering\hsize=.95\hsize\arraybackslash}X}
\newcommand{\A}{{\cal A}}
\newcommand{\h}{{\cal H}}
\newcommand{\s}{{\cal S}}
\newcommand{\W}{{\cal W}}
\newcommand{\BH}{\mathbf B(\cal H)}
\newcommand{\KH}{\cal  K(\cal H)}
\newcommand{\Real}{\mathbb R}
\newcommand{\Complex}{\mathbb C}
\newcommand{\Field}{\mathbb F}
\newcommand{\RPlus}{[0,\infty)}
\newcommand{\norm}[1]{\left\Vert#1\right\Vert}
\newcommand{\essnorm}[1]{\norm{#1}_{\text{\rm\normalshape ess}}}
\newcommand{\abs}[1]{\left\vert#1\right\vert}
\newcommand{\set}[1]{\left\{#1\right\}}
\newcommand{\seq}[1]{\left<#1\right>}
\newcommand{\eps}{\varepsilon}
\newcommand{\To}{\longrightarrow}
\newcommand{\RE}{\operatorname{Re}}
\newcommand{\IM}{\operatorname{Im}}
\newcommand{\Poly}{{\cal{P}}(E)}
\newcommand{\EssD}{{\cal{D}}}
% THEOREMS ---------------------------------------------------------------
\theoremstyle{plain}
\newtheorem{thm}{Theorem}[section]
\newtheorem{cor}[thm]{Corollary}
\newtheorem{lem}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposition}
%
\theoremstyle{definition}
\newtheorem{defn}{Definition}[section]
%
\theoremstyle{remark}
\newtheorem{rem}{Remark}[section]
%

\renewcommand{\theequation}{\thesection.\arabic{equation}}
\usepackage{mwe}

\newlength{\tempheight}
\newlength{\tempwidth}

\newcommand{\rowname}[1]% #1 = text
{\rotatebox{90}{\makebox[\tempheight][c]{#1}}}

\newcommand{\columnname}[1]% #1 = text
{\makebox[\tempwidth][c]{#1}}

答案1

預設情況下,LaTeX 會嘗試「填滿」每一列。如果它找不到其他方法可以這樣做,它將透過在段落之間插入大量空白來填充列,並且在您的情況下重要的是在浮動之間插入大量空白。

如果您更關心保持浮動之間的垂直距離(大致)均勻而不是填充列,您可以插入指令

\raggedbottom

在序言中。

相關內容