Is there any package or local environment that prevent LaTeX from stretching math?
I would basically like the result to be just as if every $...$ was replaced by ${...}$.
Asked
Active
Viewed 513 times
2
1 Answers
7
Just remove stretch and shrink from all the muskips.
\documentclass{article}
\begin{document}
\hbox to 100pt{$a + b$}
\setlength{\thinmuskip}{1\thinmuskip}
\setlength{\medmuskip}{1\medmuskip}
\setlength{\thickmuskip}{1\thickmuskip}
\hbox to 100pt{$a + b$}
\end{document}
Henri Menke
- 109,596

\leqthat I use a lot. The answer of Henri Menke made me found that I am not the only one, and a more reasonable answer than no stretching can be found here: https://tex.stackexchange.com/a/58487/205684 – Tex Exchanger Jan 28 '20 at 06:37\(and\), but that won't save you any keystrokes. – John Kormylo Jan 28 '20 at 15:37