创建虚线

创建虚线

代码

\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}

相关内容