I noticed that $$\exp(\frac12), \exp\{\frac12\}, \exp[\frac12]$$
are all (at least visually) equivalent to $$\exp\left(\frac12\right), \exp\left\{\frac12\right\}, \exp\left[\frac12\right]$$
The same is also true for \sin, \cos, \log and \ln. How do I declare my own math operators that follow this convention?
Here is a MWE
\documentclass{article}
\usepackage{physics}
\begin{document}
\[
\exp{\frac{-1}{2}} \quad \exp(\frac{-1}{2}) \quad \exp[\frac{-1}2]
\]
\end{document}
Commenting the import of the physics package reverts the behaviour back to normal.
Edit: This behavior happens when using the physics
package.
$$...$$
, but use\[...\]
or other environments instead.physics
package. Also yeah, I always usealign*
environment, it's just more natural to write $$ on stackexchange since I use math stack a lot hahaphysics
. The syntax introduced by it is bewildering at best.physics
package\left(...\right)
if you want automatic sizing. The sizing isn't always perfect but it's OK and I don't see howphysics
is helping here. Or (better) declare paired delimiters using \DeclarePairedDelimiter from amsmath/mathtools