![帮助 使用两个条件格式化集合](https://linux22.com/image/475901/%E5%B8%AE%E5%8A%A9%20%E4%BD%BF%E7%94%A8%E4%B8%A4%E4%B8%AA%E6%9D%A1%E4%BB%B6%E6%A0%BC%E5%BC%8F%E5%8C%96%E9%9B%86%E5%90%88.png)
答案1
解决方案如下:(a) 使用双列array
环境,(b) 将 放在minipage
右列,(c)enumerate
在minipage
环境内使用环境。请注意,array
如果将其放在 display-math 环境中,它将自动水平居中。
\documentclass{article} % or some other suitable document class
\usepackage{enumitem}
\newlength\mylen
% measure width of 'minipage' environment:
\settowidth\mylen{(1)\quad$f(hu)=f(h)$ for all $u\in U_f$ an open set in $G$}
\begin{document}
\[
\left\{ \begin{array}{@{} l | l @{}}
f\colon G\to W &
\begin{minipage}{\mylen}
\begin{enumerate}[left=0pt,nosep,label=(\arabic*)]
\item $f(bg)=\Delta(b)^{1/2}\sigma(b)f(g),\ \forall b\in B,\ \forall g\in G$
\item $f(hu)=f(h)$ for all $u\in U_f$ an open set in $G$
\end{enumerate}
\end{minipage}
\end{array} \right\}
\]
\end{document}
答案2
类似这样的事情可能会发生
我在这里写的每件事
\item $f(bg)=\Delta(b)...$
全 MWE
\documentclass[a4paper]{article}
\usepackage{mathtools,varwidth,enumitem}
\begin{document}
\noindent
Line just to show that it is centered
\noindent
\rule\textwidth{1pt}%
\[
\left\{
f: G \to W
\:
\middle\vert
\begin{varwidth}{\textwidth}% it readjusts it self
\begin{enumerate}[label=(\alph*),nosep, leftmargin=*]
\item foobar
\item bar foo
\end{enumerate}
\end{varwidth}
\right\}
\]
\end{document}
答案3
enumerate
在这个简单的情况下不需要。
\documentclass[a4paper]{article}
\usepackage{amsmath}
\begin{document}
\[
\left\{\,
f: G \to W
\;\middle\vert\;
\renewcommand{\arraystretch}{1.2}% like in cases
\begin{tabular}{@{}r@{ }l@{}}
(1) & $f(bg)=\Delta(b)^{1/2}\sigma(b)f(g),\ \forall b\in B,\ \forall g\in G$ \\
(2) & $f(hu)=f(h)$ for all $u\in U_f$ an open set in $G$
\end{tabular}
\,\right\}
\]
\end{document}