# Dashed line in equation

What I want:

What I have:

with this code:

\documentclass[11pt, titlepage]{report}
\begin{document}

$$\label{eq:quark1} \left( \begin{array}{c} u \\ c \\ t \end{array} \right), \left( \begin{array}{c} d \\ s \\ b \end{array} \right) \hphantom{iiiii} \begin{array}{c} \textnormal{1\textsuperscript{st}} \\ \textnormal{2\textsuperscript{nd}} \\ \textnormal{3\textsuperscript{rd}} \end{array}$$

\end{document}


I am trying to use \hdashline[2pt/2pt] which I saw in this post, but it doesn't work (undefined control sequence...)

• Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that generates that figure. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – Symbol 1 Apr 7 '15 at 16:09
• the answer in the cited question uses the package arydshln. have you used that? – barbara beeton Apr 7 '15 at 16:12
• I included the code, and yes @barbarabeeton I did include that. I haven't included it here because maybe might know of an alternative way – SuperCiocia Apr 7 '15 at 16:19

Here I \stackon your system of arrays a \Centerstack of three dashed lines (with a -3pt shift).

\documentclass[11pt, titlepage]{report}
\usepackage{stackengine}
\stackMath
% DASHED LINE OF SPECIFIED LENGTH
% From morsburg at http://tex.stackexchange.com/questions/12537/
% how-can-i-make-a-horizontal-dashed-line/12553#12553
$$\label{eq:quark1} \renewcommand\stacktype{L} \stackon[-3pt]{% \left( \begin{array}{c} u \\ c \\ t \end{array} \right), \left( \begin{array}{c} d \\ s \\ b \end{array} \right) \hphantom{iiiii} \begin{array}{c} \textnormal{1\textsuperscript{st}} \\ \textnormal{2\textsuperscript{nd}} \\ \textnormal{3\textsuperscript{rd}} \end{array} }{ \Centerstack{\dashline{1.7in} \dashline{1.7in} \dashline{1.7in}} }$$