這可能適用於tabbing
,enumerate
和itemize
塊,如果不是其他的話。
如何擺脫(或指定)“包裹”/包圍項目塊的預設垂直間距?通常我想要這個,因為它看起來不錯。但對於某些證明,我希望整個線塊與塊周圍的線具有相同的垂直間距。
對於給定區塊的範例tabbing
,如下所示:
\begin{tabbing}
$f \in ND ~~~\= \iff \varphi_f(x)<x$ \quad \quad \quad \= by definition of $ND$ \\
$\varphi_f(x)<x \> \iff \varphi_g(x)<x$ \> by our assumption of $Range(\varphi_f) = Range(\varphi_g)$ \\
$\varphi_g(x)<x \> \iff g \in ND$ \> by definition of $ND$
\end{tabbing}
此結果是預設結果,但我不希望區塊周圍有額外的垂直間距:
答案1
我建議您使用 anarray
或 atabular
環境。
首先array
是基於 - 的解決方案:
\documentclass{article}
\usepackage{amsmath} % for '\DeclareMathOperator' macro
\usepackage{array} % for '\newcolumntype' macro
\DeclareMathOperator{\Range}{\mathit{Range}}
\newcolumntype{L}{>{$}l<{$}}
\newcommand{\ND}{\mathit{ND}}
\begin{document}
Assume $\Range(\varphi_f)=\Range(\varphi_g)$.
$\begin{array}{@{}l@{}l@{\qquad}L@{}}
f\in\ND &{}\iff\varphi_f(x)<x & by definition of $\ND$ \\
\varphi_f(x)<x &{}\iff\varphi_g(x)<x & by our assumption of $\Range(\varphi_f)=\Range(\varphi_g)$ \\
\varphi_g(x)<x &{}\iff g\in\ND & by definition of $\ND$\\
\end{array}$
This weak form of \dots
\end{document}
其次,根據上面給出的序言材料,透過使用環境來實現格式化目標同樣容易tabular
。您需要更改的只是替換
$\begin{array}{@{}l@{}l@{\qquad}L@{}}
和
\begin{tabular}{@{}L@{}L@{\qquad}l@{}}
並替換\end{array}$
為\end{tabular}
.