\begin{document}
The algebraic system define over operator $\star$ , which is \emph{closed} and \emph{associative} is called SEMIGROUP.
The algebraic system define over operator $\star$ having property \emph{Closed}, \emph{Associative} and \emph{Identity} is called MONOID.
\end{document}
我想写 1.closed 2.associative } semigroup 1.closed 2.associative 3.identity } monoid
我想在两行不同的行中写下 1.closed 2.associative,并将它们与长'}'符号组合并写成 semigroup 。
我怎样才能做到这一点?
答案1
以下一组嵌套array
环境可能会实现您所寻找的内容:
\documentclass{article}
\usepackage{array,amsmath}
\begin{document}
$\begin{array}{@{} ll @{}}
\left.\begin{array}{@{} ll @{}}
\left. \begin{array}{@{} ll @{}}
\text{1. closed}\\
\text{2. associative}
\end{array}\right\} & \text{semigroup}\\
& \text{3. identity}
\end{array}\right\} & \text{monoid}
\end{array}$
\end{document}
答案2
您可以使用 TikZ 包创建绘图:
\documentclass[11pt]{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[line width = 0.7pt]
\def\h{0.45} % height
\foreach \i/\txt in {1/closed, 2/associative, 3/identity} {
\node at (0,-\i*\h) {\i. \txt};
}
\node[align = right] at (-2.3,-1.5*\h) {semigroup \Big\{};
\node[align = left ] at ( 2.1,-2.0*\h) {\Bigg\} monoid};
\end{tikzpicture}
\end{document}