Why does f\left(x\right)
result in more space before the (
than f{\left(x\right)}
?
i.e. Why does putting extra braces suppress the space?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityWhy does f\left(x\right)
result in more space before the (
than f{\left(x\right)}
?
i.e. Why does putting extra braces suppress the space?
\left
and \right
create a "inner formula" with additional spaces around except in scriptsize or smaller or after an opening delimiter or before a closing delimiter. The curly braces put the inner formula into a sub formula with the same spacing rules as an ordinary math atom (\mathord
).
See package mleftright
, if you want a solution without additional spacing:
\documentclass{article}
\usepackage{mleftright}
\begin{document}
\[
f \left(\frac xy\right) g =
f {\left(\frac xy\right)} g =
f \mleft(\frac xy\mright) g
\]
\end{document}
x
could be a larger construct like a fraction or whatever.
Feb 23, 2014 at 22:04
\left
and \right
when they shouldn't.
f(x)
.\mathrel
,\mathop
, etc.) of the parens are lost outside the braces. Similar to$a - b$
versus$a {- b}$
.$f\left(\frac{1}{2}\right)$
would have been so far from minimal and it would have better explained the issue. Why are you taking it so personally?{\it sniff} and cry
eats some space betweensniff
andand
he will probably get some comments asking why isn't he using\textit{sniff}
(which, in my opinion, are beneficial), rather than explaining the italic correction (that would probably be an answer). In short: “I really freaking hate comments like yours”.