# \hdashline

Used inside math array or matrix-style alignments to draw a dashed horizontal rule at the top of the array or between rows.

https://texform.dev/latex/commands/hdashline

## Metadata

| Field | Value |
| --- | --- |
| Topic | [Layout and breaks](https://texform.dev/latex/topics/layout) |
| Packages | base |
| Allowed mode | math |
| Tags |  |
| Commonality | low |
| Kind | prefix |

## Syntax

### base

Argument specification: ``

Used inside math array or matrix-style alignments to draw a dashed horizontal rule at the top of the array or between rows.

## Examples

```latex
\begin{array}{c}\hdashline a\cr \hdashline b\end{array}
```

[Open in Playground](https://play.texform.dev/?input=%5Cbegin%7Barray%7D%7Bc%7D%5Chdashline+a%5Ccr+%5Chdashline+b%5Cend%7Barray%7D)

## Renderer support

| Package | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- |
| base | full | full | none |

## In TeXForm

TeXForm parses this entry as prefix syntax; the package determines its argument specification.

## See also

- [\\hline](https://texform.dev/latex/commands/hline)

## Test cases

### base

| Input | Case | MathJax | KaTeX | XeTeX |
| --- | --- | --- | --- | --- |
| \begin{array}{cc} \hdashline a & b \\ c & d \end{array} | Positive: ctx:in-array | Pass | Pass | Fail |
