Text FormattingExam class Question Numbering

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
coachbennett1981
Posts: 269
Joined: Fri Feb 05, 2010 10:15 pm

Exam class Question Numbering

Post by coachbennett1981 »

I am writing a final exam for my Precalculus class and have a calculator and non-calculator portion (2 different documents). I am use the exam documentclass and I am wondering if there is a way to change the numbering system (i.e start question numbering on 25 rather than 1). Here is part of the document. Below is a bit more that a working class example. Any help would be appreciated..

Code: Select all


\documentclass[12pt]{exam}
\usepackage{geometry}                % See geometry.pdf to learn the layout options. There are lots.
\geometry{letterpaper}                   % ... or a4paper or a5paper or ... 
%\geometry{landscape}                % Activate for for rotated page geometry
%\usepackage[parfill]{parskip}    % Activate to begin paragraphs with an empty line rather than an indent
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{multicol}
\usepackage{amsmath}
\newcommand{\VecN}{\overset{\rightharpoonup}}
\usepackage{epstopdf}
\usepackage{color}
\usepackage{pstricks-add}
\addpoints
\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}
\pagestyle{headandfoot}
\firstpageheader{}{}{}
\runningheader{Spring 2010}{Precalculus}{Final Exam (Continued)}
\firstpagefooter{}{}{}
\runningfooter{}{Page \thepage\ of \numpages}{}
\newcommand{\vecv}{\mathbf v} 
\newcommand{\vecu}{\mathbf u}
\newcommand{\veci}{\mathbf i}
\newcommand{\vecj}{\mathbf j}
\newcommand{\vecw}{\mathbf w}

			
\title{Part II\\ Calculator Permitted}
\author{School Without Walls\ Math Department}
                        % Activate to display a given date or no dat
\begin{document}
\maketitle

\begin{center}
	\fbox{\fbox{\parbox{5.5in}{\centering
	Answer the questions in the space provided.  Be sure to include all work to obtain full credit.  If you run out of room for an answer, continue on the back of the page.}}}
\end{center}
	\vspace{0.1in}
	\hbox to \textwidth{Name and Section:\enspace\hrulefill}
	\vspace{0.2in}
	\hbox to \textwidth{Instructor's Name:\enspace\hrulefill}
\vspace{1in}
	
\newpage
	\begin{questions}
		\question Describe the transformation below on $f(x)$. (Please Note: The transformed graph, $g(x)$ is solid)
			\begin{center}
				\psset{unit=.85cm}
\begin{pspicture}(-3.5,-2)(6,6)
\psaxes[Dx=1]{<->}(0,0)(-5,-5)(5,5)
\psplot[plotstyle=curve,linewidth=2pt,linecolor=red,arrows=<->,linestyle=dashed]{-2} {2} {x x mul}
\psplot[plotstyle=curve,linewidth=2pt,linecolor=blue,arrows=<->]{-5}{-1}{x 3 add 2 exp 2 sub}
\uput[90](3,3){\textcolor{red}{$f(x)=x^{2}$}}		
\end{pspicture}
			\end{center}
				\vspace{1in}
					\begin{multicols}{2}
						\begin{choices}
							\choice $g(x)=(x-3)^{2}-2$
							\choice $g(x)=(x+3)^{2}-2$
							\choice $g(x)=(x-2)^{2}+3$
							\choice $g(x)=(x-2)^{2}-3$
						\end{choices}
					\end{multicols}
						\answerline
	\question Find a positive angle less than $360^{\circ}$ or $2\pi$ that is \emph{coterminial} with the angle $558^{\circ}$.
	\begin{multicols}{4}{
		\begin{choices}
			\choice $188^{\circ}$
			\choice $378^{\circ}$
			\choice $198^{\circ}$
			\choice $279^{\circ}$
		\end{choices}
		}
		\end{multicols}
			\answerline
\end{questions}
\end{document}

Edit by localghost: Marked topic as solved subsequently.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Exam class Question Numbering

Post by gmedina »

Hi,

simply give the appropriate value to the question counter:

Code: Select all

\begin{questions}
  \setcounter{question}{24}
  \question...
\end{questions} 
1,1,2,3,5,8,13,21,34,55,89,144,233,...
coachbennett1981
Posts: 269
Joined: Fri Feb 05, 2010 10:15 pm

Re: Exam class Question Numbering

Post by coachbennett1981 »

I have an easy button at school... I just pushed it. "That was easy." Thank you for you help in this matter. Now my department chair wont' kill me.

Nick
newone2016

Exam class Question Numbering

Post by newone2016 »

Thanks for your post. But it does not work for matching and true/false questions.

Code: Select all

[latex]\begin{truefalse}[title={True/False)},suppressprefix]
Please True or False bla bla
 \begin{questions}
  \setcounter{question}{24}
\begin{question}
  \answer{True} For purposes of evaluating the credibility of a source, a  statement is less credible if the statement maker knows that his or her   reputation is at risk.
\end{question}

\begin{question}
  \answer{True} A deductively valid argument can have true premises and a true
  conclusion.
\end{question}

\begin{question}
  \answer{True} A proposition and its double negation are logically equivalent.
\end{question}[/latex]
alainremillard
Posts: 45
Joined: Fri Mar 16, 2012 8:22 pm

Exam class Question Numbering

Post by alainremillard »

The original post uses the exam class, but there is no {truefalse} environment in this package.

Did you use the examdesign Please update you post to a Infominimal working example and idealy start a new thread
Post Reply