I'm using the symbol \otimes
as a unary operator and it's vertical alignment doesn't seem right to me. It wants to sit a bit below the baseline. For example, if I define \newcommand{\myop}{\ensuremath \otimes}
, then $\myop I$
becomes
and $F_{\myop I}$
becomes
I tried using \raisebox
to fix this, e.g.,
\newcommand{\myop}{\ensuremath \raisebox{1pt}{$\otimes$}}
This fixes $\myop I$
:
But \raisebox
doesn't seem to be sensitive to subscripts. The operator stays the same size while everything around it shrinks:
The problem, I think, is that \raisebox
creates its own LR box, which doesn't inherit the settings in the surrounding math environment. Is there a version of \raisebox
that "respects math"?
The inline mode uses one of the delimiters: \ ( \), $ $ or \begin{math} \end{math} and the display mode has two versions: numbered and unnumbered. To print equations in display mode one these delimiters are used: \[ \], $$ $$, \begin{displaymath} \end{displaymath} or \begin{equation} \end{equation}.
To do this, put ampersand "&" signs around the text you want LaTeX to align, e.g. Each equation can be labelled separately, just put the label command after the relevant equation.
In LaTeX text mode, the vertical bar produces an em dash (—). The \textbar command can be used to produce a vertical bar.
The “%” character is used to specify a line tag within it and create a vertical line using the “\vert” tag. Add the “$” sign before and after the “\vert” command to specify a single line.
Try \mathchoice
(or \mathpalette
):
\newcommand{\myop}{% \mathchoice{\raisebox{1pt}{$\displaystyle\otimes$}} {\raisebox{1pt}{$\otimes$}} {\raisebox{0.5pt}{$\scriptstyle\otimes$}} {\raisebox{0.2pt}{$\scriptscriptstyle\otimes$}}}
The amsopn documentation says:
... the vertical spacing may not be optimal in script and scriptscript sizes. Unfortunately TeX provides no easy way to do math mode vertical spacing that varies with current math style like mu units.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With