大花括号和长垂直条件线

大花括号和长垂直条件线

我正在尝试编写一个包含多种情况的数学方程式:以下是我的代码:

    \begin{equation*} 
\begin{aligned}
q(\mathcal A | \mathcal C ) =
\begin{cases}
 (t, CI_{1-\alpha})\mid \exists g \in \mathbb{R} \land \land(g \;\text {is a consistent estimator for}\;  \mathcal  C)\\
& \land (g \; \text {satisfies} \; \mathcal  C)\land( CI_{1-\alpha}  \text {is the} (1-\alpha)\% \text {confidence interval} )\\
   \end{cases} 
\end{aligned}
\end{equation*}

我想要一个带有长垂直条件线的大花括号,如下所示:
在此处输入图片描述

答案1

我建议您使用\left\{ ... \middle\vert ... \right]}构造,以及和aligned之间的环境。并且,确保在高分隔符周围插入足够的空格 - 具体来说,带有花括号的( ) 和带有竖线的( )。\middle\vert\right\}\thinspace\,\thickspace\;

在此处输入图片描述

\thinspace您可能会问,使用和使用的建议\thickspace来自哪里?Knuth 在 TeXbook 第 18 章“数学打字的要点”第 174 页推荐了这一点。如果它对 Knuth 来说足够好......

当然,一定要注意这个结构是否适合文本块。如有必要,请应用缩写,例如,用confidence interval替换conf.\ int.

\documentclass{article}
\usepackage{amsmath} % for 'equation*' and 'aligned' env.'s and '\text' macro
\usepackage{amssymb} % for '\mathcal' directive

\begin{document}

\begin{equation*} 
q(\,\mathcal{A} \mid \mathcal{C} \,) = % use '\mid', not '|'
\left\{ \,
  (t, \mathrm{CI}_{1-\alpha})
\; \middle\vert \;
  \begin{aligned}
    &\exists\, g \in \mathbb{R} \\
    &\land(\text{$g$ is a consistent estimator for $\mathcal {C}$})\\
    &\land (\text{$g$ satisfies $\mathcal{C}$}) \\
    &\land(\text{$\mathrm{CI}_{1-\alpha}$ is the $(1-\alpha)$ confidence interval} )
  \end{aligned}
\, \right\}
\end{equation*}

\end{document}

相关内容