TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use eqexam for creating Multiple Choice Questions with randomized answers. Let's take the following example:



In what year did Columbus sail the ocean blue?
    \Ans0 1st random choice\eAns
    \Ans1\label{eq} 2nd (the correct) random choice\eAns
    \Ans0 3rd random choice\eAns
    \Ans0 4th random choice\eAns
    \Ans0 5th random chioce\eAns
    \Ans0 None of these\eAns


which produces the following output: PDF output

I want to be able to customize the problem and answers environments, more exactly, to put the problem number inside a \fbox and change the text size, and also the way the choices are numbered - I want to put capital letters A, B, C, ... inside \fbox, but I don't know how this can be done.

share|improve this question
up vote 3 down vote accepted



and put

\def\exlabelformat{\fbox{\textbf{\theeqquestionnoi.}}\ }

in your preamble.

share|improve this answer
A tip: If you indent lines by 4 spaces, they'll be marked as a code sample, as I did in my edit. You can also highlight the code and click the "code" button (with "{}" on it). – doncherry Jan 11 '12 at 14:54
Indeed, using showgrayletters, forpaper and useforms options does part of the trick, the other options seem not to be relevant to my case. Also, redefining \exlabelformat seems to help. – digital-Ink Jan 11 '12 at 15:04

Your Answer


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.