Diagonal three dots (⋱) symbol in LaTeX

In this tutorial, I will show you how to get diagonal three dots in LaTeX with the default command and other packages.

LaTeX provides a default command \ddots to get diagonal three dots in the document. Generally, this symbol is used in a matrix.

\documentclass{article}
\usepackage{amsmath} % For matrix
\begin{document} 

$$ \verb|\ddots|\rightarrow \ddots $$
$$
\begin{bmatrix}
  a_1    & \cdots &     \\
  \vdots & \ddots &     \\
         &        & a_n 
\end{bmatrix}
$$

\end{document}

Output:

diagonal three dots in matrix.

Diagonal three dots with other packages

You can use different packages to get different Diagonal three dots. Some packages in LaTeX provide \ddots commands but you may see some differences in their output.

PackageCommandOutput
None\ddots\ddots
MnSymbol\ddots\ddots
fdsymbol\ddots\ddots
stix\ddots\ddots

Let’s try with the stix package.

\documentclass{article}
\usepackage{amsmath} % For matrix
\usepackage{stix}
\begin{document} 

$$ \verb|\ddots|\rightarrow \ddots $$
$$
\begin{bmatrix}
  a_1    & \cdots &     \\
  \vdots & \ddots &     \\
         &        & a_n 
\end{bmatrix}
$$

\end{document}

Output:

diagonal three dots in matrix with stix.

Diagonal two dots in LaTeX

If you want a diagonal two dots in LaTeX, then you can use the \ddotdot command provided by the MnSymbol package.

\documentclass{article}
\usepackage{amsmath} % For matrix
\usepackage{MnSymbol}
\begin{document} 

  $$ \verb|\ddotdot|\rightarrow \ddotdot $$
  $$
\begin{bmatrix}
  a_1    & \cdots &     \\
  \vdots & \ddotdot &     \\
         &        & a_n 
\end{bmatrix}
$$

\end{document}

Output:

diagonal two dots in matrix.

Leave a Reply

Your email address will not be published. Required fields are marked *