答案1
這是一個解決方案,(a) 使用兩列array
環境,(b) 將 a 放在minipage
右側列中,(c)在環境enumerate
內部使用環境minipage
。請注意,array
如果將其放置在顯示數學環境中,將自動水平居中。
\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}