![创建虚线](https://linux22.com/image/325143/%E5%88%9B%E5%BB%BA%E8%99%9A%E7%BA%BF.png)
代码
\makeatletter
\newcommand*\dashline{\rotatebox[origin=c]{90}{$\dabar@\dabar@\dabar@$}}
\makeatother
\begin{document}
`\dashline` produces now a dashed line
\dashline
But a dotted vertical line is needed. Something like `\vdots` but e.g. with 5 dots
\vdots
\end{document}
目的
创建垂直虚线而不是虚线。
答案1
解决方案
\documentclass{article}
\makeatletter
\def\fivevdots{\vbox{\baselineskip1\p@ \lineskiplimit\z@
\kern6\p@\hbox{.}\hbox{.}\hbox{.}\hbox{.}\hbox{.}}}
\makeatother
\begin{document}
$ a \vdots a \fivevdots a $
\end{document}