[OS X TeX] Fixed-size table

Alain Schremmer Schremmer.Alain at gmail.com
Tue Sep 12 17:46:38 EDT 2006


I am using the following table for multiple choice answers.

        \begin{center}
        \newdimen\digitwidth \settowidth\digitwidth{0}
        \def~{\hspace{\digitwidth}}
        \def\divrule#1#2{\noalign{\moveright#1\digitwidth\vbox{\hrule
        width#2\digitwidth}}}
        %\catcode`\=\active \def{}
                        \hspace*{-3mm}%
                       \begin{tabular}{@{} r||c|c|c|c|c| @{}}
                        \divrule{3}{17.5}
            %Row0
                   
                &    \textbf{a}
                &    \textbf{b}
                &    \textbf{c}
                &    \textbf{d}
                &    \textbf{e}
                \\
        %                \divrule{3}{17.5}
                \midrule
            %Row1
                    1
                &    %a
                &    %b
                &    %c
                &    %d
                &    %e
                \\
                \midrule
        etc
            %Row25
                    25
                &    %a
                &    %b
                &    %c
                &    %d
                &    %e
                \\
                \bottomrule
            \end{tabular}
        \end{center}

The trouble I have is that as soon as I put marks in the "correct" 
cells, the table changes size: sometimes it gets wider, sometimes it 
gets shorter. This makes it hard to check the students' answers.

Is there a way that I can freeze the size. I am using \textsf{x} as a 
mark but need not to.

Hopeful regards
--schremmer

P.S. I have no idea what all the stuff at the beginning of the table 
does and I can't remember where I got it.

------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the MacOSX-TeX mailing list