I am using the most recent release of TexLive on my MacBook Air. I am using the packages amsmath
, amssymb
, scalefnt
, graphicx
,and subcaption
in addition to a journal's package.
Like a previous query How to get less spacing in math mode, I want to reduce the white space in math mode but only when an equation occurs in text, as in $a=b.$
I don't want to automatically reduce the white space when in display-math mode, such as
$$a=b$$
or
\begin{align}
a&=b\\
c&=d
\end{align}
I know that I can do various things in individual equations such as
$a{=}b$
or $ a \!=\! b,$
but I don't want to have to do it each time,
and the journal might insist on changes in publication, or perhaps
my co-author will want to do things differently for some other purpose.
I couldn't see how to use \newcommand
or \stackrel
in a way that makes such a distinction between equations in text and equations in displaymath, but it ought to be simple using {displaystyle} or something similar. I couldn't figure it out.
Help?
\[
…\]
preferable to$$
?$
to enter math mode. If you use the standard latex alternative\(a=b\)
then it is easy as you just need to redefine\(
to change the spacing.\)
instead of ` $ a=b $ `. Why use 4 keystrokes when 2 will do?