[texhax] Drawing a Likert scale

Chris Bergstresser chris at subtlety.com
Mon Nov 14 00:41:46 CET 2005


Hi all --

    I'm trying to write a set of macros to draw Likert scales, which 
look something like this:

    |__|__|__|__|
    |  |  |  |  |

    A  B  C  D  E

    However, I can't seem to get the alignment in the tabular 
environment to work right.  I've tried (example reduced to 2 items):

\begin{tabular}{cccccc}
	& \vline\rule{0cm}{0.2cm} & & & \vline\rule{0cm}{0.2cm} & \\
	\cline{2-5}
	& \vline\rule{0cm}{0.2cm} & & & \vline\rule{0cm}{0.2cm} & \\
	\multicolumn{3}{c}{A} & \multicolumn{3}{c}{B} \\
\end{tabular}

   But the centerline overhangs the ends, like so:

   _|__|_
    |  |

    A  B

    Changing the first line to "\begin{tabular}{cc@{}ccc@{}c}" results in:

   _|__|
    |  |
   A  B

    Which is also just not right.

    Can anyone help?

-- Chris



More information about the texhax mailing list