答案1
无需任何包装(嗯,除了黑板粗体)
\documentclass{article}
\usepackage{amsfonts}
\begin{document}
\[
P = \left\{
h \colon D(h) \subset E \to \mathbb{R} \;
\middle|
\begin{tabular}{ @{\;} l @{\;} }
$D(h)$ is a linear subspace of $E$ \\
$h$ is linear, $G\subset D(h)$ \\
$h$ extends $g$, and $h(x)\leq p(x)$ $\forall x \in D(h)$
\end{tabular}
\right\}
\]
\end{document}
答案2
您可以nicematrix
使用两个单细胞块来完成此操作。
如果要增加右侧文本的垂直间距,可以在代码[<length>]
后添加。例如: 。\\
h\textup{ is linear}, G\subset D(h),\\[1ex]
\documentclass{article}
\usepackage{nicematrix, amsfonts}
\begin{document}
\[
P=\begin{BNiceArray}{c|l}
\Block{1-1}{h\colon D(h)\subset E\to\mathbb{R}}&
\Block[l]{1-1}{D(h)\textup{ is a linear subspace of }E,\\
h\textup{ is linear}, G\subset D(h),\\
h\textup{ extends }g,\textup{ and }h(x)\leq p(x)\quad\forall x\in D(h)}
\end{BNiceArray}.
\]
\end{document}
答案3
array
以下是仅使用、amsmath
和amsfonts
来表示黑板粗体 R 的解决方案:
\documentclass{article}
\usepackage{amsfonts, amsmath}
\begin{document}
\[
P = \left\{
\begin{array}{c|l}
& D(h) \text{ is a linear subspace of }E,\\
h: D(h) \subset E \to \mathbb{R} & h \text{ is linear, } G \subset D(h),\\
&h \text{ extends }g, \text{ and } h(x) \le p(x) \; \forall x \in D(h)
\end{array}
\right\}
\]
\end{document}