I noticed that \cos
is somewhat larger then \sin
, and I thought of using something like \hphantom{\cos}\neghphantom{\sin}
to add the difference after one of my expressions. However it turns out there is no such command. Anyone know of an alternative? Or perhaps a way of defining such a negative phantom myself?
*edit *
Additional information
I was trying to add the space difference at the end of the expression, so after the \alpha
. Something like \sin \alpha ABC+additional spacing
Using Hendrik's example I could do something like \mathop{\rlap{$\sin\alpha ABC$}}\hphantom{$\cos\alpha ABC$}
but then the line ABC needs to be present twice, so I am hoping for an alternative.
Best Answer
You can do with
mathtools
, but I wouldn't recommend it. This leaves a gap on the right of “sin”, but centering it in the available space would be even worse.A different solution, where you add the space after the
\sin<expression>
can beSince we need to know what the argument to
\csin
is, braces delimiting it are necessary.However, this has limitations because it's difficult to catch the type of the last object in the argument of
\csin
, so this might break with parenthesized expressions and hand corrections would be needed, for instanceYet another proposal: a
\sincorr
space to be added by hand where necessary:The output is identical as with the previous solution.