[OS X TeX] Customized Inparaenum

Gary L. Gray gray at engr.psu.edu
Wed Nov 16 20:41:46 CET 2005


On Nov 16, 2005, at 2:32 PM, Alain Schremmer wrote:

> I am trying to create a multiple choice exam where each item looks  
> like:
>
> Given this and that, which of the following is your choice?
> a. blah       b. blip        c. clonk        d. er             e.  
> None of the preceding.
>
> The following almost does it.
>
>    Given that this and that, which of
>    \begin{inparaenum}[\hspace{5mm}a.]
>    \item
>    blah
>    \item
>    blip
>    \item
>    clonk
>    \item
>    er
>    \item
>    None of the preceding.
>    \end{inparaenum}
>
> (1) What I would like is a. b. c. d. e. to be boldfaced
> When I tried
>
>    \begin{inparaenum}[\hspace{5mm}\textbf{a.}]
>
> I got
>
>    a. blah       a. blip        a. clonk        a. er             a.
>    None of the preceding.
>
> which I do not understand at all.
>
> (2) I used \hspace{5mm} to separate the choices but I have no idea  
> how to get rid of the 5mm ahead of the first choice to get
>
> Given this and that, which of the following is your choice?
> a. blah       b. blip        c. clonk        d. er             e.  
> None of the preceding.
>
> instead of
>
> Given this and that, which of the following is your choice?
>        a. blah       b. blip        c. clonk        d.  
> er             e. None of the preceding.
>
> which is wasting space but, of course, what I am getting.

Try this:

Here is the question.\\
\begin{inparaenum}[\hfill(a)]
\item choice 1
\item choice 2
\item choice 3
\item choice 4
\item choice 5
\end{inparaenum}

I hope this helps.

-- Gary
------------------------- 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 macostex-archives mailing list