我的最小演示如下
\documentclass{article}
\usepackage{amsmath,amssymb}
\begin{document}
$$
\begin{aligned}
\text{quantitative} &=
\left\{
\begin{gathered}
\text{continuous}\\
\text{discret}
\end{gathered}
\right.
\\
\text{qualitative} &=
\left\{
\begin{gathered}
\text{nominal}\\
\text{ordinal}
\end{gathered}
\right.
\end{aligned}
$$
\end{document}
我想要一个右划线,categorical
超过三行discret
,nominal
并且ordinal
,像
我怎样才能到达那里基本 Latex 命令或者特定包裹?
答案1
您可以使用NiceArray
(由nicematrix
包提供的)来提供更多的灵活性:
\documentclass{article}
\usepackage{nicematrix}
\begin{document}
\[
\renewcommand{\arraystretch}{1.2}
\begin{NiceArray}{rcl}
\Block{2-1}{\text{quantitative} =}
& \text{continuous} & \\
& \text{discret} & \Block{3-1}{= \text{categorical}} \\
\Block{2-1}{\text{qualitative} =}
& \text{nominal} & \\
& \text{ordinal} & \\
\CodeAfter
\SubMatrix.{1-1}{2-1}\{
\SubMatrix.{3-1}{4-1}\{
\SubMatrix\}{2-3}{4-3}.
\end{NiceArray}
\]
\end{document}
答案2
我不确定这是否是一种有效的表达想法的方式。无论如何,对于一次性案例,使用一些视觉格式
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\hbox{\valign{\vfil#\cr
\hbox{$\begin{aligned}
\text{quantitative} &=
\left\{\begin{aligned}&\text{continuous} \\ &\text{discrete}\end{aligned}\right.
\\
\text{qualitative} &=
\left\{\begin{aligned}&\text{nominal} \\ &\text{ordinal}\end{aligned}\right.
\end{aligned}$}
\cr
\hbox{%
\hspace{-1em}%
$\left.\vphantom{\begin{matrix} 0 \\ 0 \\ 0 \\ 0 \end{matrix}}\right\}\text{categorical}$%
}
\cr
}}
\]
\end{document}