[Tex/LaTex] Symbols for four and five vertical dots

stacking-symbolssymbols

I am very new to latex, but have spent hours trying without success to figure this out. I need symbols for both 4 and 5 vertically stacked dots. I know the commands for 1 dot (\cdot), and 3 dots (\vdots). It seems like one methods that I've read about here is to combine symbols, for example combining 4 single dots to create a 4 vertical dot symbol. But, I can't figure it out. Any help would be much appreciated.

Best Answer

Here's one way. The gap is controlled by the \setstackgap macro; The whole thing can be raised or lowered with a \raisebox; the number of dots in the stack are the space-separated argument of the stack.

Note: you could stack any characters as such, not just dots. If the [usestackEOL] option is passed to the package, the EOL separator is no longer a space, but a \\ character.

\documentclass{article}
\usepackage{stackengine}
%\stackMath
\setstackgap{S}{1pt}
\begin{document}
$A \Shortstack{. . . .}B$
$A \raisebox{-1.2pt}{\Shortstack{. . . . .}}B$
$A \setstackgap{S}{.5pt}\Shortstack{. . . . .}B$
\end{document}

enter image description here