答案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}