[Tex/LaTex] How to type tensor multiplication with vertical dots

symbolstensor

I want to type this equation in LaTeX. How do I type those vertical dots symbol?

Best Answer

These are obviously binary operators, so they should carry the same spacing. That is, use whatever works and then wrap it in \mathbin. While the original picture showed the bottom dots resting on the baseline, I think it would be more correct to center the symbols on the math axis (where the \cdot is placed). Here is a simple possibility, that does not allow for size changes in scripts, but does respect global size changes like \large.

\documentclass{article}

\def\onedot{$\mathsurround0pt\ldotp$}
\def\cddot{% two dots stacked vertically
  \mathbin{\vcenter{\baselineskip.67ex
    \hbox{\onedot}\hbox{\onedot}}%
  }}%
\def\cdddot#1{% three dots 
  \mathbin{\vcenter{\baselineskip.67ex
    \hbox{\onedot}\hbox{\onedot}\hbox{\onedot}%
  }}%
}

\begin{document}
Test it:
\[
\mathbf{P} = \varepsilon_0 \left(\chi^{(1)}
    \cdot \mathbf{E} + \chi^{(2)}
    \cddot \mathbf{EE} + \chi^{(3)}
    \cdddot \mathbf{EEE} + \cdots \right)
\]
\end{document}

Allowing for changes in scripts is a good deal harder, but could be done with the aid of some of the internals of the mathdots package.

Related Question