Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Is there a standard package for generating a matching question such as: Match the following states with its capitals:

Michigan              Raleigh

North Carolina        Lansing

Minnesota             St.Paul  
share|improve this question
    
Don't you think that the question is too generic? –  egreg Jul 10 '12 at 11:16
1  
Like this? –  Tom Bombadil Jul 10 '12 at 11:16
1  
I think the OP may mean to have two vertical columns of text with white space in between so that pupils can draw lines connecting the states to their capitals. In which case the answer would probably involve a properly formatted tabular (see here for example). –  Willie Wong Jul 10 '12 at 11:37
1  
@ashpool: it would really help if you provide at the very least a image or a link to an example of your desired output. –  Willie Wong Jul 10 '12 at 11:39

1 Answer 1

up vote 5 down vote accepted

Maybe this user-defined environment matchtabular might be what you are looking for:

Example

\documentclass{article}

\usepackage{tabularx}

\newcounter{matchleft}
\newcounter{matchright}

\newenvironment{matchtabular}{%
  \setcounter{matchleft}{0}%
  \setcounter{matchright}{0}%
  \tabularx{\textwidth}{%
    >{\leavevmode\hbox to 1.5em{\stepcounter{matchleft}\arabic{matchleft}.}}X%
    >{\leavevmode\hbox to 1.5em{\stepcounter{matchright}\alph{matchright})}}X%
    }%
}{\endtabularx}

\begin{document}

\begin{matchtabular}
France & Washington DC \\
The United States of America & Berlin \\
The Czech Republic & Paris \\
Germany & Prague \\
\end{matchtabular}

\end{document}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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