LaTeX forum ⇒ Text FormattingAligning options to the left in exam mode.

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
imtitanium
Posts: 1
Joined: Thu Jan 01, 2015 4:00 pm

Aligning options to the left in exam mode.

Postby imtitanium » Thu Jan 01, 2015 4:09 pm

I am using exam class in latex to create multiple choice questions. However, my multiple choice options are centered. I want each choices to start from the left. Can anyone help me on this?

  1. \documentclass[11 pt, twoside]{exam}
  2. \usepackage{amsmath}
  3. \usepackage[T1]{fontenc}
  4. \usepackage{natbib}
  5. \usepackage{graphicx}
  6. \usepackage{color}
  7. \usepackage{multicol}
  8. \usepackage{hyperref}
  9. \usepackage{subcaption}
  10. \usepackage{epsf}
  11. \usepackage{dcolumn}
  12. \usepackage{bm}
  13. \usepackage{float}
  14.  
  15. \usepackage{fancyhdr}
  16. \fancyhf{} % clear all header and footers
  17. \renewcommand{\headrulewidth}{0pt} % remove the header rule
  18. \fancyfoot[LE,RO]{\thepage}
  19. \pagestyle{fancy}
  20. \fancypagestyle{plain}{%
  21. \fancyhf{}%
  22. \renewcommand{\headrulewidth}{0pt}%
  23. \fancyhf[lef,rof]{\thepage}%
  24. }
  25. \pagestyle{fancy}
  26. \fancyhead{} % clear all header fields
  27. \renewcommand{\headrulewidth}{0pt} % no line in header area
  28. \fancyfoot{} % clear all footer fields
  29. \fancyfoot[LE,RO]{\thepage} % page number in "outer" position of footer line
  30. \fancyfoot[RO]{\bf{GO ON TO THE NEXT PAGE.}} % other info in "inner" position of footer line
  31.  
  32. \begin{document}
  33. \begin{questions}
  34. \question What process does the above figure represent?
  35.  
  36. \begin{choices}
  37. \choice Black Body Radiation
  38. \choice Bremsstrahlung
  39. \choice Ultraviolet Catastrophe
  40. \choice Stellar Radiation
  41. \choice Cosmic Microwavebackground Radiation
  42. \end{choices}
  43. \end{questions}
  44. \end{multicols}
  45. \end{document}

Tags:

User avatar
Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon Jan 05, 2015 11:33 am

Hi and welcome,

extending your example to compilable code, the choices are left aligned. Can you extend your code so that we can see the behaviour you are describing?

btw: Do not use package fancyhdr with the exam class. It can do stuff by itself.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.


Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 8 guests