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?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10359
- 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