[OS X TeX] Space around equal sign
ross.moore at mq.edu.au
Tue Nov 2 13:49:12 EDT 2010
On 03/11/2010, at 3:27 AM, Cleo <so.net at live.com> wrote:
> Hi guys,
> When I need to write some math, say $x=y+n$, I usually use $x~=~y~+~n$ to avoid
> it breaks between lines. However, sometimes it appears an unwanted space before
> and after the equal sign. I have tried to solve this by using $x~\!=\!~y~+~n$
> but not always it works.
> Is there a way to avoid an expression to break and maintain a "constant" space
> around the equal sign?
You should not need to do this.
TeX's internal rules already are heavily biased to not break lines within a math expression. You usually have to work pretty hard to achieve breaks in math, so if you are getting some that you do not like, then it is probably because you are doing other things incorrectly.
Please send an example of a document with bad breaks. That will allow us to see what is really going wrong, and give you better advice.
> Thanks in advance.
Hope this helps,
More information about the MacOSX-TeX