How can I construct three vertical dots similar to \vdots
but which span the same height as a colon :
? \vdots
is usually intended for use in matrices or a set of equations to indicate that there are many elements. I am intending its use within an in-line equation for purposes of operator ordering.
[Tex/LaTex] Vertical dots with same height as colon
math-modesymbols
Best Answer
If you want a version of
\vdots
that is exactly as tall as a colon you could try to overlay a\cdot
on top of a:
. The code below, which is based on this excellent answer, does exactly this.I'm actually defining several different versions of
\threedots
with different spacing properties:\threedotsord
has the same spacing as ordinary letters;\threedotsopen
and\threedotsclose
have the same spacing as opening and closing parentheses respectively;\threedotsbin
has the same spacing as a binary operator (like+
,-
,\times
,…);\threedotsrel
has the same spacing as a relation symbol (like=
,<
,\sim
,\rightorrow
, …).Which version you need will depend on how you intend to use the symbol. Since you're talking about operator ordering, you will probably want to use
\threedotsopen
and\threedotsclose
. For convenience, I defined a macro\oporder
that puts a pair of triple dots with the correct spacing around its argument.Note that
\mathop
vertically centres its argument with respect to the math axis whenever it is applied to a single character, as remarked e.g. here. You could also centre the\cdot
with respect to the:
, but this is more work (if you want to do it automatically, without guessing the amount to lower it by).