Text FormattingAligning options to the left in exam mode.

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

Aligning options to the left in exam mode.

Post by imtitanium »

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?

Code: Select all

\documentclass[11 pt, twoside]{exam}
\usepackage{amsmath}
\usepackage[T1]{fontenc}
\usepackage{natbib}
\usepackage{graphicx}
\usepackage{color}
\usepackage{multicol}
\usepackage{hyperref}
\usepackage{subcaption}
\usepackage{epsf} 
\usepackage{dcolumn}
\usepackage{bm}
\usepackage{float}

\usepackage{fancyhdr}
\fancyhf{} % clear all header and footers
\renewcommand{\headrulewidth}{0pt} % remove the header rule
\fancyfoot[LE,RO]{\thepage} 
\pagestyle{fancy}
\fancypagestyle{plain}{%
  \fancyhf{}%
  \renewcommand{\headrulewidth}{0pt}%
  \fancyhf[lef,rof]{\thepage}%
}
\pagestyle{fancy}
\fancyhead{} % clear all header fields
\renewcommand{\headrulewidth}{0pt} % no line in header area
\fancyfoot{} % clear all footer fields
\fancyfoot[LE,RO]{\thepage}           % page number in "outer" position of footer line
\fancyfoot[RO]{\bf{GO ON TO THE NEXT PAGE.}} % other info in "inner" position of footer line

\begin{document}
\begin{questions}
\question What process does the above figure represent?

\begin{choices}
\choice  Black Body Radiation
\choice Bremsstrahlung
\choice Ultraviolet Catastrophe
\choice Stellar Radiation
\choice Cosmic Microwavebackground Radiation
\end{choices}
\end{questions}  
\end{multicols}
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Aligning options to the left in exam mode.

Post by Johannes_B »

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.
Post Reply