3
\documentclass{article}
\usepackage{amsmath}
\usepackage{cases}
\begin{document}
Cases:
\begin{equation}
\begin{cases}
    N + N/4  \\
    6-W_{|N|}
\end{cases}
\end{equation}
Numcases:
\begin{subnumcases}{}
    N +  N/4  \\
    6-W_{|N|}  
\end{subnumcases}
\end{document}

I would like to have the sub-numbering of subnumcases but with the standard bracket of cases.

4

You can use empheq which is better than cases for this task:

\documentclass{article}
\usepackage{amsmath}
\usepackage{empheq}

\usepackage{cases}
\begin{document}
\subsubsection*{Cases}
\[
\begin{cases}
    N +  N/4  \\
    6-W_{|N|}  
\end{cases}
\]
\subsubsection*{Numbered cases}
\begin{empheq}[left=\empheqlbrace]{align}
  &  N + N/4  \\
  &  6-W_{|N|}
\end{empheq}
\subsubsection*{Subnumbered cases}
\begin{subequations}
\begin{empheq}[left=\empheqlbrace]{align}
  &  N + N/4  \\
  &  6-W_{|N|}
\end{empheq}
\end{subequations}
\end{document}

enter image description here

You get the same alignment if you use

\[
\left\{
\begin{aligned}
    N +  N/4  \\
    6-W_{|N|}
\end{aligned}
\right.
\]

for the first.

0

Using for example, numcases instead of cases you will have the standard bracket. See the manual http://mirrors.ibiblio.org/CTAN/macros/latex/contrib/cases/cases.pdf pag. 2. The size is the same of the bracket.

enter image description here

\documentclass{article}
\usepackage{amsmath,verbatim}
\usepackage{cases}
\begin{document}
\begin{verbatim} 
 with numcases:
 \end{verbatim}

\begin{numcases}{}
 N + N/4  \\
 6-W_{|N|}
\end{numcases}
\begin{verbatim} 
with subnumcases:
\end{verbatim}    

\begin{subnumcases}{}
    N +  N/4  \\
    6-W_{|N|}  
\end{subnumcases}
\end{document}
  • 1
    Doesn't this make both brackets wrong? Also numbering is now wrong. – Snobbish Hi-rep users Apr 25 at 16:33
  • @valerie Now is it correct? – Sebastiano Apr 25 at 16:43
  • No, look at bracket, they are totally different. Also your code and image are different. – Snobbish Hi-rep users Apr 25 at 16:51
  • 1
    @valerie, curly braces are equal. however it seems that this fact Sebastiano emphasize with green rectangles using other tool on equation image. – Zarko Apr 25 at 17:24
  • 1
    @Sebastiano, i suggest you to remove green rectangle from equation image. it seem that they confuse people. – Zarko Apr 25 at 17:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.