```tex 
\documentclass[a4paper,UTF8,twoside]{article}
\usepackage{amsmath}
\usepackage[colorlinks=true]{hyperref}
\usepackage[amsstyle]{cases}




\begin{document}
\begin{subnumcases}{\label{equ:utLu0inUT}}
  u_t+Lu=0,                 &\text{in } U_T,\label{subequ:utLu0in}\\
  u=0,                      &\text{on } \partial U\times [0,T],\label{subequ:u0on}\\
  u=g,                      &\text{on } U\times\{T=0\},\label{subset:ugonUtimesT0}
\end{subnumcases}
where $L$ denotes a second-order elliptic operator, and that $v$ is a smooth solution of the adjoint problem \eqref{equ:utLu0inUT}, \eqref{subequ:utLu0in}, \eqref{subset:ugonUtimesT0}.

\begin{subequations}\label{equ:utLu0}
  \begin{gather}
    u_t+Lu=0,\label{subequ:utLu0}\\
    u=0,\label{subequ:u0}\\
    u=g,\label{subequ:ug}
  \end{gather}
\end{subequations}
where $L$ denotes a second-order elliptic operator, and that $v$ is a smooth solution of the adjoint problem \eqref{equ:utLu0}, \eqref{subequ:utLu0}, \eqref{subequ:u0}, \eqref{subequ:ug}.


\begin{equation}
  \left\{\!\!\!
  \begin{array}{rl}
    u_t+Lu=0,                 &\text{in } U_T,\\
    u=0,                      &\text{on } \partial U\times [0,T],\\
    u=g,                      &\text{on } U\times\{T=0\},
  \end{array}\right.
\end{equation}




\end{document}
```

image.png

请问如何实现这样的效果,左侧是大括号(类似于cases环境),中间第一列右对齐,第二列左对齐,整个环境使用一个编号,然后每行各自有子编号。

如上图,第一个式子使用了cases包中的subnumcases环境,这个环境基本实现了上面的要求,但是却不满足第一列右对齐这一点。第二个式子使用了subequations环境,主要目的是为了展示编号的使用情况。第三个式子则是使用了array环境,但是却无法实现每行分别编号且为子编号这一点。

1 回答1

1
<p></p><p></p><p></p><p><span style="color: #859900;"></span></p><p><span style="color: #859900;">\documentclass</span>{<span style="color: #859900;">article</span>}</p><p><span style="color: #859900;">\usepackage</span>[overload]{<span style="color: #859900;">empheq</span>}</p><p><span style="color: #268bd2;">\begin</span>{document}</p><p><br/></p><p><span style="color: #268bd2;">\begin</span>{subequations}</p><p><span style="color: #268bd2;">\begin</span>{empheq}[left = {<span style="color: #268bd2;">\empheqlbrace</span>}]{alignat = 2}</p><p>u_t - <span style="color: #268bd2;">\Delta</span> u &= 0 & <span style="color: #268bd2;">\qquad</span> & <span style="color: #268bd2;">\text</span>{in <span style="color: #859900;">\(</span><span style="color: #859900;">U_T</span><span style="color: #859900;">\)</span>}, <span style="color: #859900;">\\</span></p><p>u &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&= 0 & <span style="color: #268bd2;">\qquad</span> & <span style="color: #268bd2;">\text</span>{on <span style="color: #859900;">\(</span><span style="color: #cb4b16;">\partial</span><span style="color: #859900;"> U</span><span style="color: #cb4b16;">\times</span><span style="color: #859900;"> [</span><span style="color: #d33682;">0</span><span style="color: #859900;">, T]</span><span style="color: #859900;">\)</span>}, <span style="color: #859900;">\\</span></p><p>u &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&= g & <span style="color: #268bd2;">\qquad</span> & <span style="color: #268bd2;">\text</span>{on <span style="color: #859900;">\(</span><span style="color: #859900;">U</span><span style="color: #cb4b16;">\times</span><span style="color: #859900;"> </span><span style="color: #cb4b16;">\{</span><span style="color: #859900;">t = </span><span style="color: #d33682;">0</span><span style="color: #cb4b16;">\}</span><span style="color: #859900;">\)</span>}.</p><p><span style="color: #268bd2;">\end</span>{empheq}</p><p><span style="color: #268bd2;">\end</span>{subequations}</p><p><br/></p><p><span style="color: #268bd2;">\end</span>{document}</p><p><br/></p><p>玩儿去吧。</p><p><br/></p><p><img src="/data/ueditor/php/upload/image/20200427/1587990126443089.png" title="1587990126443089.png" alt="image.png"/></p>

你的回答

请登录后回答

你的回答将会帮助更多人,请务必认真回答问题。