我的 Latex 文档中有三个表格,它们之间产生了很多不必要的空格。我不知道如何减少这些空格。
我也尝试过不同的建议,例如链接1,链接2遗憾的是,他们都没有彻底解决问题。
此外,我发现这个问题是由于的第一个设置\documentclass[<options>]{cas-dc}
,我把它与下面的包一起放在了一起,这些包在我的 Latex 文档中使用,在下面的代码中。
\documentclass[a4paper,fleqn]{cas-dc}
\usepackage{lipsum,capt-of,graphicx}
\usepackage{geometry}% Just for this example
\usepackage{natbib}
\usepackage{ragged2e}
\usepackage{setspace}
\usepackage[labelfont=bf,justification=raggedright,singlelinecheck=false, font={footnotesize}]{caption}
\captionsetup[figure]{name=Fig. ,labelsep=period, justification=justified, singlelinecheck=off}
\captionsetup[table]{labelsep=newline,font=footnotesize, justification=justified, singlelinecheck=off}
\usepackage{subcaption}
%%%Author definitions
\def\tsc#1{\csdef{#1}{\textsc{\lowercase{#1}}\xspace}}
\tsc{WGM}
\tsc{QE}
\tsc{EP}
\tsc{PMS}
\tsc{BEC}
\tsc{DE}
%%%
\usepackage{etoolbox}
\AtBeginEnvironment{table}{\sffamily}
\usepackage{booktabs,siunitx, multirow}
\sisetup{table-format=1.4, tight-spacing=true, separate-uncertainty}
\sisetup{
output-exponent-marker = \text{e},
exponent-product={},
retain-explicit-plus,
input-open-uncertainty = ,
input-close-uncertainty = ,
table-align-text-pre = false,
table-align-text-post = false,
round-mode=places,
round-precision=2,
table-space-text-pre = (,
table-space-text-post = ),
}
\usepackage{amsmath}
\usepackage{adjustbox}
\usepackage{floatrow}
\floatsetup[table]{style=Plaintop, captionskip=0pt, capposition=top}
\let\sum\relax % To change the style of summation symbol
\DeclareSymbolFont{otherlargesymbols}{OMX}{cmex}{m}{n}
\DeclareMathSymbol{\sum}{\mathop}{otherlargesymbols}{"50}
\setlength{\mathindent}{0pt}
\setlength\parindent{0pt}
\begin{document}\sloppy
\justify
\title [mode = title]{This is a specimen $a_b$ title}
rtydf
\maketitle
%\vspace*{-\baselineskip}
\begin{table*}[hbt!]
\setlength{\tabcolsep}{1.95pt}
\begin{adjustbox}{width=.7\textwidth}
\captionsetup{width=.69\linewidth}
%\vspace*{-\baselineskip}
%\vspace*{2 mm}
%\renewcommand*\arraystretch{1.3}
\caption{bbbb}\label{tbl:2}
\begin{tabular}{@{} l c *{7}{S} @{}} % 1 'c' column, 4 'S' columns
\bottomrule
\multirow{2.5}{*}{}
& \multicolumn{7}{c}{C1} \\
\cmidrule(lr){2-8} & {A} & {B} & {C} & {D} & {E} & {F} & {G}\\
\bottomrule
\multirow{1.3}{*}{TTT:}\\
\midrule
AA & \num{8.12 \pm 3.5} & \num{1} & \num{1 \pm 7.91} &
\num{9 \pm 4.24} & \num{9 \pm 3.21} & \num{2.50 \pm 7.91} &
\num{5 \pm 3.12}\\
BB & \num{2.1 \pm 4.52} & \num{7.69 \pm 10} & \num{21} &
\num{6 \pm 5.80} & \num{15 \pm 6.2} & \num{17} &
\num{10}\\
CC & \num{6.14 \pm 6.2} & \num{9.67 \pm 10.54} & \num{8.5 \pm 7.1} & \num{14.83 \pm 6.79} & \num{9.7 \pm 7.5} & \num{2.50 \pm 7.91} &
\num{13.75 \pm 3.95}\\
DD & \num{15.71 \pm 13.55} & \num{12 \pm 31.62} & \num{45} &
\num{12 \pm 1.62} & \num{90 \pm 31.62} & \num{0} &
\num{1.50 \pm 2.91}\\
%\bottomrule
\midrule
\bottomrule
\multirow{1.3}{*}{TTT:}\\
\midrule
AA & \num{8.12 \pm 3.5} & \num{1} & \num{1 \pm 7.91} &
\num{9 \pm 4.24} & \num{9 \pm 3.21} & \num{2.50 \pm 7.91} &
\num{5 \pm 3.12}\\
BB & \num{2.1 \pm 4.52} & \num{7.69 \pm 10} & \num{21} &
\num{6 \pm 5.80} & \num{15 \pm 6.2} & \num{17} &
\num{10}\\
CC & \num{6.14 \pm 6.2} & \num{9.67 \pm 10.54} & \num{8.5 \pm 7.1} & \num{14.83 \pm 6.79} & \num{9.7 \pm 7.5} & \num{2.50 \pm 7.91} &
\num{13.75 \pm 3.95}\\
DD & \num{15.71 \pm 13.55} & \num{12 \pm 31.62} & \num{45} &
\num{12 \pm 1.62} & \num{90 \pm 31.62} & \num{0} &
\num{1.50 \pm 2.91}\\
%\bottomrule
\midrule
\end{tabular}
\end{adjustbox}
\end{table*}
\begin{table*}[hbt!]
\setlength{\tabcolsep}{1.95pt}
\begin{adjustbox}{width=.7\textwidth}
\captionsetup{width=.69\linewidth}
%\vspace*{-\baselineskip}
%\vspace*{2 mm}
%\renewcommand*\arraystretch{1.3}
\caption{ccc.}\label{tbl:2}
\begin{tabular}{@{} l c *{7}{S} @{}} % 1 'c' column, 4 'S' columns
\bottomrule
\multirow{2.5}{*}{}
& \multicolumn{7}{c}{C1} \\
\cmidrule(lr){2-8} & {A} & {B} & {C} & {D} & {E} & {F} & {G}\\
\bottomrule
\multirow{1.3}{*}{TTT:}\\
\midrule
AA & \num{8.12 \pm 3.5} & \num{1} & \num{1 \pm 7.91} &
\num{9 \pm 4.24} & \num{9 \pm 3.21} & \num{2.50 \pm 7.91} &
\num{5 \pm 3.12}\\
BB & \num{2.1 \pm 4.52} & \num{7.69 \pm 10} & \num{21} &
\num{6 \pm 5.80} & \num{15 \pm 6.2} & \num{17} &
\num{10}\\
CC & \num{6.14 \pm 6.2} & \num{9.67 \pm 10.54} & \num{8.5 \pm 7.1} & \num{14.83 \pm 6.79} & \num{9.7 \pm 7.5} & \num{2.50 \pm 7.91} &
\num{13.75 \pm 3.95}\\
DD & \num{15.71 \pm 13.55} & \num{12 \pm 31.62} & \num{45} &
\num{12 \pm 1.62} & \num{90 \pm 31.62} & \num{0} &
\num{1.50 \pm 2.91}\\
%\bottomrule
\midrule
\bottomrule
\multirow{1.3}{*}{TTT:}\\
\midrule
AA & \num{8.12 \pm 3.5} & \num{1} & \num{1 \pm 7.91} &
\num{9 \pm 4.24} & \num{9 \pm 3.21} & \num{2.50 \pm 7.91} &
\num{5 \pm 3.12}\\
BB & \num{2.1 \pm 4.52} & \num{7.69 \pm 10} & \num{21} &
\num{6 \pm 5.80} & \num{15 \pm 6.2} & \num{17} &
\num{10}\\
CC & \num{6.14 \pm 6.2} & \num{9.67 \pm 10.54} & \num{8.5 \pm 7.1} & \num{14.83 \pm 6.79} & \num{9.7 \pm 7.5} & \num{2.50 \pm 7.91} &
\num{13.75 \pm 3.95}\\
DD & \num{15.71 \pm 13.55} & \num{12 \pm 31.62} & \num{45} &
\num{12 \pm 1.62} & \num{90 \pm 31.62} & \num{0} &
\num{1.50 \pm 2.91}\\
%\bottomrule
\midrule
\end{tabular}
\end{adjustbox}
\end{table*}
\begin{table*}[hbt!]
\setlength{\tabcolsep}{1.95pt}
\begin{adjustbox}{width=.7\textwidth}
\captionsetup{width=.69\linewidth}
%\vspace*{-\baselineskip}
%\vspace*{2 mm}
%\renewcommand*\arraystretch{1.3}
\caption{ddd}\label{tbl:2}
\begin{tabular}{@{} l c *{7}{S} @{}} % 1 'c' column, 4 'S' columns
\bottomrule
\multirow{2.5}{*}{}
& \multicolumn{7}{c}{C1} \\
\cmidrule(lr){2-8} & {A} & {B} & {C} & {D} & {E} & {F} & {G}\\
\bottomrule
\multirow{1.3}{*}{TTT:}\\
\midrule
AA & \num{8.12 \pm 3.5} & \num{1} & \num{1 \pm 7.91} &
\num{9 \pm 4.24} & \num{9 \pm 3.21} & \num{2.50 \pm 7.91} &
\num{5 \pm 3.12}\\
BB & \num{2.1 \pm 4.52} & \num{7.69 \pm 10} & \num{21} &
\num{6 \pm 5.80} & \num{15 \pm 6.2} & \num{17} &
\num{10}\\
CC & \num{6.14 \pm 6.2} & \num{9.67 \pm 10.54} & \num{8.5 \pm 7.1} & \num{14.83 \pm 6.79} & \num{9.7 \pm 7.5} & \num{2.50 \pm 7.91} &
\num{13.75 \pm 3.95}\\
DD & \num{15.71 \pm 13.55} & \num{12 \pm 31.62} & \num{45} &
\num{12 \pm 1.62} & \num{9 \pm 31.62} & \num{0} &
\num{1.50 \pm 2.91}\\
%\bottomrule
\midrule
\bottomrule
\multirow{1.3}{*}{TTT:}\\
\midrule
AA & \num{8.12 \pm 3.5} & \num{1} & \num{1 \pm 7.91} &
\num{9 \pm 4.24} & \num{9 \pm 3.21} & \num{2.50 \pm 7.91} &
\num{5 \pm 3.12}\\
BB & \num{2.1 \pm 4.52} & \num{7.69 \pm 10} & \num{21} &
\num{6 \pm 5.80} & \num{15 \pm 6.2} & \num{17} &
\num{10}\\
CC & \num{6.14 \pm 6.2} & \num{9.67 \pm 10.54} & \num{8.5 \pm 7.1} & \num{14.83 \pm 6.79} & \num{9.7 \pm 7.5} & \num{2.50 \pm 7.91} &
\num{13.75 \pm 3.95}\\
DD & \num{15.71 \pm 13.55} & \num{12 \pm 31.62} & \num{45} &
\num{12 \pm 1.62} & \num{90 \pm 31.62} & \num{0} &
\num{1.50 \pm 2.91}\\
%\bottomrule
\midrule
\end{tabular}
\end{adjustbox}
\end{table*}
\end{document}
答案1
请注意,它cas-dc
用于期刊投稿。如果您使用它向期刊投稿,您应该不是更改布局参数。出版商提供的类的全部目的是消除作者的选择并强制执行一致的样式。
但是要回答这个问题:
这些是浮动页面上的双列浮动元素,因此它们是分开\@dblfpsep
的。
添加
\makeatletter
\@dblfpsep=0pt
\makeatother
您的序言将其设置为 0pt,并且表格根本没有空间,设置为您喜欢的长度。