3

I am trying to find a solution, but actually I have failed, to use curly bracket (using \ccases) for the system symbol of three equations (or more), as for this example. If I adding the & I have much space,

enter image description here

\documentclass{article}
\usepackage[lite]{mtpro2}
\usepackage{mathtools}
\begin{document}
\[\ccases{
x&=R\sin\theta\cos\varphi\\
y&=R\sin\theta\sin\varphi\\
z&=R\cos\theta}
\]
\end{document}

While if I remove the symbol & I lose the vertical alignment of the sign =:

enter image description here

\documentclass{article}
\usepackage[lite]{mtpro2}
\usepackage{mathtools}
\begin{document}
\[\ccases{
x=R\sin\theta\cos\varphi\\
y=R\sin\theta\sin\varphi\\
z=R\cos\theta}
\]
\end{document}

How can I have the correct vertical alignment with the three = symbols without have additional spaces?

ADDENDUM: Here there is an image which compares the classic brace with the elegant curvy brace:

enter image description here

First guide mtpro2 page 12 and second guide mtpro2-2008/1/23 and possible related:

  1. Overwrite dcases* to work inside align (to use mtpro2 braces)
  2. Overwrite matrix to work inside align (to use mtpro2 parentheses and braces)
5
  • Out of curiosity, where does the command \ccases come from? – Bernard Aug 26 '19 at 22:57
  • @Bernard Aesthetically creates the most elegant system symbol compared to the default design. – Sebastiano Aug 26 '19 at 22:59
  • 2
    But where did you find it? Does it come with mtpro2lite? – Bernard Aug 26 '19 at 23:02
  • @Bernard - Indeed, it's the ``mtpro2` package which defines the \ccases(presumably shorthand for "curly cases") command.. – Mico Aug 27 '19 at 9:06
  • 1
    @Mico: Thanks for the info! Apparently, it's probably based on eqnarray (conjectured from the syntax for alignment and the spacing problem…) – Bernard Aug 27 '19 at 10:14
5

Within the scope of \ccases{...}, the & symbol performs the same function as it does inside the cases environment of the amsmath package, i.e., it creates a certain amount of horizontal separation (as well as vertical alignment). However, that's not what you want here, is it?

To get the desired spacing around the = symbols, I recommend that you encase the three equations in an aligned environment, regardless of whether you use the \ccases macro or the cases environment.

enter image description here

\documentclass{article}
\usepackage[lite]{mtpro2}
\usepackage{amsmath}

\begin{document}
\[
\ccases{
  \begin{aligned}
    x &= R\sin\theta\cos\varphi\\
    y &= R\sin\theta\sin\varphi\\
    z &= R\cos\theta
  \end{aligned}
}
\quad\text{vs.}\qquad
\begin{cases}
  \begin{aligned}
    x &= R\sin\theta\cos\varphi\\
    y &= R\sin\theta\sin\varphi\\
    z &= R\cos\theta
  \end{aligned}
\end{cases}
\]
\end{document}
3
  • 2
    Always my profound thanks for your most precious help. In the two guides that I have attached I had found nothing. Grazieeeeeeee – Sebastiano Aug 27 '19 at 17:11
  • 2
    @Sebastiano - You're most welcome! – Mico Aug 27 '19 at 18:44
  • 1
    Is it really very nice! – Oromion Jun 26 '20 at 17:15

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.