![用条形图分隔矩阵中的列](https://linux22.com/image/475678/%E7%94%A8%E6%9D%A1%E5%BD%A2%E5%9B%BE%E5%88%86%E9%9A%94%E7%9F%A9%E9%98%B5%E4%B8%AD%E7%9A%84%E5%88%97.png)
答案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}