i am working with a simple question but i can't include underline before the \question.




 \question What is the color of your shirt? \line



  1. What is the color of your shirt? __

    but i'm trying to make something like this by:


__ 1.What is the color of your shirt?

How can I create this?

  • The answer probably depends greatly on what the myclass class is--in particular, on the definition of the questions environment. – Andrew Uzzell Oct 24 '12 at 11:12
  • That's not a minimal working example (MWE). In addition to the unknown document class, you're missing the \begin{document} ... \end{document}. – Loop Space Oct 24 '12 at 11:22
  • @Kayla: Please post your TeX/LaTeX/etc. related questions here, on the main site! TeX - LaTeX Meta, however, is intended for questions about the main site, e.g. if you don't know how to accept an answer, if your reputation seems odd, or if you would like to discuss the reasons for a question being closed. – doncherry Oct 24 '12 at 17:53

Assuming the questions environment is that of the exam class: Redefine \questionlabel.




\question\label{q:test} What is the color of your shirt? 

See question~\ref{q:test}.


enter image description here

  • redefining the command indid make it. Thank You so much! – Kayla Oct 30 '12 at 0:00

like spaces, drawn rules (e.g. \hline) get ignored at the beginning of a line, so you need to put a "stopper" in front if you want it to be output. add \leavevmode before \hdline.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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