General ⇒ How to write vertical dashed line?
How to write vertical dashed line?
Hello. I want to write a vertical dashed line—it should look like \vdots, but with small vertical dashes instead of dots. Is there any package containing a symbol like that?
NEW: TikZ book now 40% off at Amazon.com for a short time.
- Stefan Kottwitz
- Site Admin
- Posts: 10323
- Joined: Mon Mar 10, 2008 9:44 pm
How to write vertical dashed line?
Hi bbasic,
welcome to the board!
There's a package providing dashed lines in array: arydshln.
Stefan
welcome to the board!
There's a package providing dashed lines in array: arydshln.
Stefan
LaTeX.org admin
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
How to write vertical dashed line?
I'm not sure if it fits your ideas, but you could use the \textbrokenbar command from the textcomp package as suggested in the "Comprehensive LaTeX Symbol List". Perhaps this list contains other suitable symbols.
Best regards and welcome to the board
Thorsten¹
Best regards and welcome to the board
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: How to write vertical dashed line?
Stefan, thank you for your advice, but I know for arydshln and it doesn not fit my needs. I don't need dashed lines in array, only a symbol.
Localghost, you got correctly what I need. Thank you very much for \textbrokenbar command. It almost perfectly fits my needs. The only thing I would have changed is to have three "pieces" (instead of two)—and unfortunately, there is no symbol like that in textcomp package. I have also found \brokenvert in wasysym package, but it looks exactly as \textbrokenbar. Furthermore, \Cutline and \Kutline of marvosym package have three pieces, but they are horizontal (and I need vertical).
A workaround I have found is to use nccrules package. The command \dashrule[-0.6ex]{0.4}{3 1.5 3 1.5 3} then gives what I want. If nobody comes up with a simpler solution, I believe this will be useful to me and others with a similar need.
Once more, thank you both for help.
Localghost, you got correctly what I need. Thank you very much for \textbrokenbar command. It almost perfectly fits my needs. The only thing I would have changed is to have three "pieces" (instead of two)—and unfortunately, there is no symbol like that in textcomp package. I have also found \brokenvert in wasysym package, but it looks exactly as \textbrokenbar. Furthermore, \Cutline and \Kutline of marvosym package have three pieces, but they are horizontal (and I need vertical).
A workaround I have found is to use nccrules package. The command \dashrule[-0.6ex]{0.4}{3 1.5 3 1.5 3} then gives what I want. If nobody comes up with a simpler solution, I believe this will be useful to me and others with a similar need.
Once more, thank you both for help.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
How to write vertical dashed line?
You can rotate this symbol with help of the graphicx package.bbasic wrote:[...] Furthermore, \Cutline and \Kutline of marvosym package have three pieces, but they are horizontal (and I need vertical). [...]
Code: Select all
Code, edit and compile here:
\usepackage[11pt,a4paper]{article}\usepackage{graphicx,marvosym}\begin{document}Text \rotatebox{90}{\Kutline} Text\end{document}
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- Stefan Kottwitz
- Site Admin
- Posts: 10323
- Joined: Mon Mar 10, 2008 9:44 pm
How to write vertical dashed line?
Hi,
after I had read the first posting I had array or tabular lines in my thoughts somehow, that's why I mentioned arydshln.
It's not hard to build a vertical dashed line symbol yourself. Here's a solution just using amssymb and graphicx:
Stefan
after I had read the first posting I had array or tabular lines in my thoughts somehow, that's why I mentioned arydshln.
It's not hard to build a vertical dashed line symbol yourself. Here's a solution just using amssymb and graphicx:
Code: Select all
Code, edit and compile here:
\documentclass{article}\usepackage{amssymb}\usepackage{graphicx}\makeatletter\newcommand*\dashline{\rotatebox[origin=c]{90}{$\dabar@\dabar@\dabar@$}}\makeatother\begin{document}Test\dashline Text\end{document}
LaTeX.org admin
Re: How to write vertical dashed line?
Thank you both once more. Stefan's solution works just fine.