I defined a new binary operator using \rule to create a custom symbol similar to \mid but a bit thicker. I originally gave it \mathrel spacing (the same as \mid), but I find that tends to give a bit too much space around the operator, so I changed it to \mathbin.
\newcommand{\mg}{\mathbin{\rule[-2.5pt]{1.25pt}{10pt}}} With \mathbin spacing it looks fine most of the time, but the \mathbin spacing seems a bit "squishier", and in inline math it sometimes gets a squished up a bit too much, as you can see here. (MWE code below.)
So I'm wondering if I can control the spacing around this operator a bit more precisely. I would like it to look similar to \mathbin but to have a greater lower bound on how much the typesetting system can reduce the space in inline math.
Here's the MWE, which generates the example shown above.
\documentclass{article} \newcommand{\mg}{\mathbin{\rule[-2.5pt]{1.25pt}{10pt}}} \begin{document} Here is the `mg' command in an equation, which looks good: \begin{equation} \psi(a\mg b) \end{equation} It also looks fine most of the time in inline math $\psi(a\mg b)$. But sometimes it looks a bit sort of jammed together, e.g.\ $\psi(a\mg b)\,\phi(c\mg b)\,\theta(d\mg e)$. \end{document} 
