1

I need align this rules but I can't. Can anybody help me?

enter image description here

3
  • @AlejandroBenitez please see if the answer meets the requirement -- the length of the rule and thickness can be controlled with the options \rule{length}{thickness} and the tabto package ensures tabbing environment – js bibra Nov 13 '20 at 1:57
  • @AlejandroBenitez the second option uses makebox with the same result – js bibra Nov 13 '20 at 2:06
  • oops sorry its @AlejandraBenitez – js bibra Nov 13 '20 at 2:13
4

enter image description here

\documentclass{article}
\usepackage{enumitem}
\usepackage{tabto}

\begin{document}
\begin{enumerate}[label=\alph*)]
    \NumTabs{4}
\item text \tab{\rule{6cm}{0.15mm}}
\item text text \tab{\rule{6cm}{0.15mm}}
\item text text text \tab{\rule{6cm}{0.15mm}}
\end{enumerate}
\end{document}

another option with makebox

enter image description here

\documentclass{article}
\usepackage{enumitem}

\begin{document}
\begin{enumerate}[label=\alph*)]

\item \makebox[3cm][l]{It would be nice} \makebox[2cm][l]{\rule{2cm}{0.3mm}}
\item \makebox[3cm][l]{It would} \makebox[2cm][l]{\rule{2cm}{0.3mm}}
\item \makebox[3cm][l]{It } \makebox[2cm][l]{\rule{2cm}{0.3mm}}

\end{enumerate}
\end{document}
1
  • 1
    The second makebox is overkill. – John Kormylo Nov 13 '20 at 20:50

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.