2

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 ${...}$.

  • 1
    Hmmm... really? Can you show your use case? – Werner Jan 28 '20 at 04:19
  • I find spacing around binary operators too large, especially around \leq that 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
  • You could redefine \( and \), but that won't save you any keystrokes. – John Kormylo Jan 28 '20 at 15:37

1 Answers1

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}

enter image description here

Henri Menke
  • 109,596