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 at 4: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: tex.stackexchange.com/a/58487/205684 – Tex Exchanger Jan 28 at 6:37
  • You could redefine \( and \), but that won't save you any keystrokes. – John Kormylo Jan 28 at 15:37
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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.