What is the "best LaTeX practices" for writing absolute value symbols? Are there any packages which provide good methods?
Some options include
\mid x \mid, but I'm not sure which is best...
|show 2 more comments|
I have been using the code below using
Since I don't think I have a case where I don't want this to scale based on the parameter, I make use of Swap definition of starred and non-starred command so that the normal use will automatically scale, and the starred version won't:
If you want it the other way around comment out the code between
Note if you just use | you get mathord spacing, which is different from the spacing you'd get from paired mathopen/mathclose delimiters or from