Here is a question that has long been bothering me: what is the correct way to write a function application in \LaTeX?
The simple answer is of course $f(x)$
. However, $f\left(x\right)$
delivers a different result (in terms of spacing), even if the height of the argument does not require larger brackets.
In MathML, ⁡
controls the spacing between the function and its argument like so <mi>f</mi><mo>⁡</mo><mfenced<mi>x</mi></mfenced>
.
Is there a similar construct in LaTeX?
Thanks, Sébastien
mathtools
package fixes the spacing discrepancy betweenf(x)
andf\left(x\right)
, but I can't find a reference right now.\mleft/mright
(mleftright package). That case that mathtools does fix, is when a fencing macro is made using\DeclarePairedDelimiter
then the auto scaller is "fixed", but that is not general.