Math & Science ⇒ Set vertical Spacing of Cases globally
- Lucas Malor
- Posts: 14
- Joined: Fri Feb 03, 2012 4:05 pm
Set vertical Spacing of Cases globally
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?
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
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Set vertical Spacing of Cases globally
cases uses a fixed arraystretch value of 1.2 internally. Here's a redefinition, showing how you optionally can change it:
Code: Select all
\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
- Lucas Malor
- Posts: 14
- Joined: Fri Feb 03, 2012 4:05 pm
Re: Set vertical Spacing of Cases globally
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Set vertical Spacing of Cases globally
Best regards and welcome to the board
Thorsten
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