限制:
我必须使用顶部对齐aligned
,让顶部方程的基线与枚举标签对齐。
问题:
花括号超出了顶部方程式的范围,因此看起来不太好看。
问题:
如何防止左花括号超出公式顶部?
\documentclass[preview,border=12pt,12pt,varwidth]{standalone}
\usepackage{mathtools,enumitem}
\begin{document}
Find the solution of
\begin{enumerate}[label=\alph*.]
\item
$\!
\left\{
\begin{aligned}[t]
2x +5y &=12\\
3x -8y &=11
\end{aligned}
\right.
$
\item
$\!
\left\{
\begin{aligned}[t]
-2x -3y &=7\\
x -2y &=1
\end{aligned}
\right.
$
\end{enumerate}
\end{document}
答案1
使用delarray
:
\documentclass{article}
\usepackage{amsmath,enumitem,array,delarray}
\newenvironment{system}[1][c]
{\begin{array}[#1]\{{@{} r @{} >{{}} l @{}}.}
{\end{array}}
\begin{document}
Find the solution of
\begin{enumerate}[label=\alph*.]
\item $\begin{system}[t]
2x + 5y & = 12 \\[\jot]
3x - 8y & = 11
\end{system}$
\item $\begin{system}[t]
-2x -3y & = 7 \\[\jot]
x -2y & = 1
\end{system}$
\end{enumerate}
\end{document}
答案2
这是一个相当直观和非正式的满足您的要求的方法:
\documentclass{article}
\usepackage{enumitem}
\newcommand{\twolinebrace}{%
\raisebox{-.5\dimexpr\jot+\baselineskip}{$
\left\{\begin{array}{@{}c@{}}\null\\[\jot]\null\end{array}\right.\kern-\nulldelimiterspace$}}
\begin{document}
Find the solution of
\begin{enumerate}[label=\alph*.]
\item
$\twolinebrace
\begin{array}[t]{r@{}l}
2x + 5y & {}= 12 \\[\jot]
3x - 8y & {}= 11
\end{array}$
\item
$\twolinebrace
\begin{array}[t]{r@{}l}
-2x -3y & {}= 7 \\[\jot]
x -2y & {}= 1
\end{array}$
\end{enumerate}
\end{document}
这个想法是降低支架,而不是降低整个结构。也许更简单:
\documentclass{article}
\usepackage{amsmath,enumitem}
\begin{document}
Find the solution of
\begin{enumerate}[label=\alph*.]
\item
$\raisebox{-.5\height}{$\biggl\{$}
\begin{array}[t]{r@{}l}
2x + 5y & {}= 12 \\[\jot]
3x - 8y & {}= 11
\end{array}$
\item
$\raisebox{-.5\height}{$\biggl\{$}
\begin{array}[t]{r@{}l}
-2x -3y & {}= 7 \\[\jot]
x -2y & {}= 1
\end{array}$
\end{enumerate}
\end{document}
答案3
\documentclass[preview,border=12pt,12pt,varwidth]{standalone}
\usepackage{mathtools,enumitem,calc}
\newcommand{\Bob}[1][2em]{%
\raisebox{-.5\height}{$\left\{\rule[-#1/2]{0pt}{#1}\right.$}
}
\begin{document}
Find the solution of
\begin{enumerate}[label=\alph*.]
\item
$\!\Bob
\begin{aligned}[t]
2x +5y &=12\\
3x -8y &=11
\end{aligned}
$
\item
$\!\Bob
\begin{aligned}[t]
-2x -3y &=7\\
x -2y &=1
\end{aligned}\quad\text{ la suite}
$
\end{enumerate}
\end{document}
答案4
在这里,我使用\scalerel[max-width]{\{}{...}
代替语法来\left\{...\right.
将分隔符与项目的高度相匹配。
\documentclass[preview,border=12pt,12pt,varwidth]{standalone}
\usepackage{mathtools,enumitem}
\usepackage{scalerel}
\begin{document}
Find the solution of
\begin{enumerate}[label=\alph*.]
\item
$\!
\scalerel[1.7ex]{\{}{%
\begin{aligned}[t]
2x +5y &=12\\
3x -8y &=11
\end{aligned}
}
$
\item
$\!
\scalerel[1.7ex]{\{}{%
\begin{aligned}[t]
-2x -3y &=7\\
x -2y &=1
\end{aligned}
}
$
\end{enumerate}
\end{document}