4

What I want:

enter image description here

What I have:

enter image description here

with this code:

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

\begin{equation} \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{equation}

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

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
\def\dashfill{\cleaders\hbox to .5em{\rule{.4ex}{.4pt}}\hfill}
\newcommand\dashline[1]{\hbox to #1{\dashfill\hfil}}

\begin{document}
\begin{equation} \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}}
}
\end{equation}

\end{document}

enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.