If I write a case with fractions within, the lines of equation overlaps, and the vertical space is few without fractions too IMHO.
I added additional vertical space for all the other multiline environments via \jot and \arraystrecth, but how can I set vertical spacing for all cases?
Math & Science ⇒ Set vertical Spacing of Cases globally
- Lucas Malor
- Posts: 14
- Joined: Fri Feb 03, 2012 4:05 pm
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Set vertical Spacing of Cases globally
Hi Lucas,
cases uses a fixed arraystretch value of 1.2 internally. Here's a redefinition, showing how you optionally can change it:
If you need it globally, just change the default value of 1.2 for the optional argument above.
I posted this solution earlier on my blog, with more explanation: amsmath: cases and \arraystretch.
Stefan
cases uses a fixed arraystretch value of 1.2 internally. Here's a redefinition, showing how you optionally can change it:
Code: Select all
Code, edit and compile here:
\makeatletter\renewcommand*\env@cases[1][1.2]{%\let\@ifnextchar\new@ifnextchar\left\lbrace\def\arraystretch{#1}%\array{@{}l@{\quad}l@{}}%}\makeatother
I posted this solution earlier on my blog, with more explanation: amsmath: cases and \arraystretch.
Stefan
LaTeX.org admin
- Lucas Malor
- Posts: 14
- Joined: Fri Feb 03, 2012 4:05 pm
Re: Set vertical Spacing of Cases globally
Wonderful, it works. I read cases with 1.4 a lot better. Thank you.
My Blog: http://pazziaumana.blogspot.com/
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Set vertical Spacing of Cases globally
Take a look at the mathtools package. It offers several similar environments with enhancements.
Best regards and welcome to the board
Thorsten
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- Lucas Malor
- Posts: 14
- Joined: Fri Feb 03, 2012 4:05 pm
Re: Set vertical Spacing of Cases globally
It seems interesting, but unlyckily I already submitted my work. If I need it in a future I'll try it. Thank you.
My Blog: http://pazziaumana.blogspot.com/