我无法复制在评论中提到的问题方程式的定义其中提到,使用[t]
选项tabular
最后的间距变差
我最初在解决方案中没有这个[t]
选项,但是一条评论改变了我的观点,即tabular
使用该[t]
选项可以在之前获得更好的间距,而这部分似乎得到了 MWE 中示例的证实(第一个表格使用[t]
而第二个没有)。
问题:
- 什么时候建议使用和不使用
[t]
中的选项tabular
? - 在什么情况下使用该
[t]
选项会影响间距,什么时候不影响段落间距?
代码:
\documentclass{article}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\usepackage{array}% http://ctan.org/pkg/array
\usepackage{lipsum}
\begin{document}
\[
dN/d(d_{p}) = kd_{p}^{\delta},
\]
where:
\begin{tabular}[t]{r@{}l}
$dN$ &: number of particles per unit water volume in the size range $d p$ to $[d p +d(d p )]$ \\
$k$ &: (= constant) depending on the particle concentration \\
$\delta$ &: $(< 0)$ descriptor of the distributions' spectral slope.
\end{tabular}
xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxx.
xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxx.
xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxx.
\[
dN/d(d_{p}) = kd_{p}^{\delta},
\]
where:
\begin{tabular}{r@{}l}
$dN$ &: number of particles per unit water volume in the size range $d p$ to $[d p +d(d p )]$ \\
$k$ &: (= constant) depending on the particle concentration \\
$\delta$ &: $(< 0)$ descriptor of the distributions' spectral slope.
\end{tabular}
xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxx.
xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxx.
xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxx.
\end{document}
答案1
间距为清楚地不好:表格底部和下一段落之间的基线距离与其他基线跳过不同。
\lineskip
如果您设置不同(插入到恰好“太近”的线之间的胶水),问题就会变得非常明显。
\documentclass{article}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\usepackage{array}% http://ctan.org/pkg/array
\usepackage{lipsum}
\begin{document}
\[
dN/d(d_{p}) = kd_{p}^{\delta},
\]
where:
\begin{tabular}[t]{r@{}l}
$dN$ &: number of particles per unit water volume in the size range $d p$ to $[d p +d(d p )]$ \\
$k$ &: (= constant) depending on the particle concentration \\
$\delta$ &: $(< 0)$ descriptor of the distributions' spectral slope.
\end{tabular}
xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxx.
xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxx.
xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxx.
\lineskip=2cm
\[
dN/d(d_{p}) = kd_{p}^{\delta},
\]
where:
\begin{tabular}{r@{}l}
$dN$ &: number of particles per unit water volume in the size range $d p$ to $[d p +d(d p )]$ \\
$k$ &: (= constant) depending on the particle concentration \\
$\delta$ &: $(< 0)$ descriptor of the distributions' spectral slope.
\end{tabular}
xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxx.
xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxx.
xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxx.
\end{document}
答案2
每个框都有顶部、底部和基线。LaTeX 将基线\baselineskip
分开放置,或者\lineskip
如果插入的粘连以保留基线跳过间距小于\lineskiplimit
(换句话说,以较大者为准),则在连续的底部和顶部之间添加。
以下显示了示例表格的顶部、底部和基线。第三个示例使用\strut
s 来弥补文本中缺少下降部和上升部。
\documentclass{article}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\usepackage{array}% http://ctan.org/pkg/array
\usepackage{lipsum}
\fboxsep=0pt
\begin{document}
\[
dN/d(d_{p}) = kd_{p}^{\delta},
\]
where:
\noindent\fbox{\rlap{\begin{tabular}[t]{r@{}l}
$dN$ &: number of particles per unit water volume in the size range $d p$ to $[d p +d(d p )]$ \\
$k$ &: (= constant) depending on the particle concentration \\
$\delta$ &: $(< 0)$ descriptor of the distributions' spectral slope.
\end{tabular}}\rule{\textwidth}{.5pt}}
xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxx.
xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxx.
xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxx.
\[
dN/d(d_{p}) = kd_{p}^{\delta},
\]
where:
\noindent\fbox{\rlap{\begin{tabular}{r@{}l}
$dN$ &: number of particles per unit water volume in the size range $d p$ to $[d p +d(d p )]$ \\
$k$ &: (= constant) depending on the particle concentration \\
$\delta$ &: $(< 0)$ descriptor of the distributions' spectral slope.
\end{tabular}}\rule{\textwidth}{.5pt}}
xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxx.
xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxx.
xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxx.
\[
dN/d(d_{p}) = kd_{p}^{\delta},
\]
where:\strut
\noindent\begin{tabular}{r@{}l}
$dN$ &: number of particles per unit water volume in the size range $d p$ to $[d p +d(d p )]$ \\
$k$ &: (= constant) depending on the particle concentration \\
$\delta$ &: $(< 0)$ descriptor of the distributions' spectral slope.
\end{tabular}
\strut
xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxx.
xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxx.
xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxx.
\end{document}