A follow-up question of my question regarding \(...\), how can I add horizontal space (preferably \,) to the end of each inline mathmode triggered by $...$? Since the $ is used to enter and exit math mode, would this require tinkering to the inline math environment itself?
MWE
\documentclass[10pt,a4paper]{article}
% CODE %
\begin{document}
Text Here $a+b=c$and Text Here
\end{document}
\,at the end of every inline math-mode equation. – Paul Kim Jun 26 '19 at 01:27$. What is more "normal" is for the input to be "Here $a+b+c$ and". I suspect that you would really want to allow a line break after the math expression, which\,would prevent. – barbara beeton Jun 26 '19 at 01:45The area is $\pi$.You could avoid the incorrect space withThe area is $\pi.$, but semantically, the period is not a part of the math expression, so it shouldn't be inside the $. (Also,$\pi.$\, Next sentencewould have the wrong spacing anyway.) Could you give an example from your work? It almost seems like you're trying to abuse math mode for something it wasn't meant to do. – Teepeemm Jun 26 '19 at 01:56\mathsurround=0.1666667em\everymath{\mskip-3mu\relax}, but I'm always wary with\every...stuff, in case LaTeX already uses it (possible overriding...). Note:\,is\mskip \thinmuskip,\thinmuskipis3mu(TeXbook p. 168) and anmuis 1/18em, hence the0.1666667emI used (3/18).\mathsurroundputs space on both sides of an inline equation; I used the\everymathhook to cancel the space added on the left, as I understood that this was desired. – frougon Jun 26 '19 at 05:58\mathsurroundas suggested by @frougon is the likely best approach. However, as implied in that suggestion, you need to consider whether the left side should be treated the same as the right; since you showed an input space in your example, it's likely that it should be. – barbara beeton Jun 26 '19 at 12:21