因此,我尝试制作一个完整的双倍行距文档,因此在 MWE 中我有以下代码:
\documentclass[12pt,a4paper,titlepage]{article}
\usepackage{setspace}
\setstretch{2}
\usepackage{booktabs}
\usepackage{float}
%Document Begins
\begin{document}
\begin{table}[h!]
\begin{minipage}{\textwidth}
Table 1:\setcounter{table}{1}\\\emph{Demographic and clinical information for each of the neglect participants.}
\end{minipage}
\begin{center}
\begin{tabular*}{\textwidth}{c @{\extracolsep{\fill}} cccc}
\toprule
Patient&Age&Weeks post stroke&Gender&Regions affected by CVA\\
\midrule
AK&34&4&F&MCA\\
AS&58&18&F&Parietal 1\\
GJ&42&4&M&MCA\\
\bottomrule
\end{tabular*}
\end{center}
\begin{minipage}{\textwidth}
\emph{Note:} MCA $=$ Territory of the Middle Cerebral Artery.
\end{minipage}
\end{table}
\end{document}
如您所见,这不会在 minipage 中产生双倍行距。但是,如果我更改h!
为H
,它会在任何地方产生双倍行距(这是所需的)。但是,我更喜欢使用 h!,因为它将表格放置在我的文档中更干净的位置。
有人知道为什么会发生这种情况吗?我该怎么办?
答案1
答案2
setspace 包努力尝试不是使所有内容都变成双倍行距。它会恢复为单倍行距,例如在浮动行和脚注中。如果您不想要这样,请不要使用该包,而是手动设置 \baselinestretch:
\documentclass[12pt,a4paper,titlepage]{article}
\usepackage{booktabs}
\usepackage{float}
\renewcommand\baselinestretch {2}
\usepackage{lipsum}
%Document Begins
\begin{document}
\lipsum[13] \footnote{\lipsum[13]}
\begin{table}[h!]
\begin{minipage}{\textwidth}
Table 1:\setcounter{table}{1}\\\emph{Demographic and clinical information for each of the neglect participants.}
\end{minipage}
\begin{center}
\begin{tabular*}{\textwidth}{c @{\extracolsep{\fill}} cccc}
\toprule
Patient&Age&Weeks post stroke&Gender&Regions affected by CVA\\
\midrule
AK&34&4&F&MCA\\
AS&58&18&F&Parietal 1\\
GJ&42&4&M&MCA\\
\bottomrule
\end{tabular*}
\end{center}
\begin{minipage}{\textwidth}
\emph{Note:} MCA $=$ Territory of the Middle Cerebral Artery.
\end{minipage}
\end{table}
\end{document}