Math & ScienceHow to typeset several "full-size" equations inside one

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
deniss
Posts: 11
Joined: Tue Aug 04, 2009 9:06 pm

How to typeset several "full-size" equations inside one

Post by deniss »

Hello, and thanks for reading!

I need to typeset a "case" statement of the type "A = { ...", where "..." consists of 2 lines of equations with their respective conditions. If I use the "\begin{array} ... \end{array}" inside the equation environment, my fractions are dwarfed like within the $...$ environment in text, and I want the equations to retain their full size, like within the \[...\] environment or "\begin{equation}...\end{equation}". Anyone know how to accomplish that?

-Denis

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

How to typeset several "full-size" equations inside one

Post by gmedina »

Hi,

you could use the cases environment provided by the amsmath package; it is described in page 8 of the amsmath user guide. For the fractions issue, you can use the \dfrac command.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
deniss
Posts: 11
Joined: Tue Aug 04, 2009 9:06 pm

How to typeset several "full-size" equations inside one

Post by deniss »

gmedina wrote: you could use the cases environment provided by the amsmath package; it is described in page 8 of the amsmath user guide. For the fractions issue, you can use the \dfrac command.
Thank you for the reply. It appears that aligned might do the job, since they say it figures the width for the contents and not to a line width. They don't mention anything about that for cases...
phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Re: How to typeset several "full-size" equations inside one

Post by phi »

For the full-sized fractions use the dcases or dcases* environment from the mathtools package.
deniss
Posts: 11
Joined: Tue Aug 04, 2009 9:06 pm

How to typeset several "full-size" equations inside one

Post by deniss »

Thank you for the suggestion. dcases works great.

aligned does the full-size scaling too, but it's not really for case statements, since the alignment is not to the left bracket but instead about some center point.
Post Reply