Using the exam package I'm making worksheets for topics. Lets say i make one worksheet with 10 questions however i only want to see questions 2,5,7 and 10. How would i create it so only specific questions are shown on the pdf. So basically the worksheets are like a question bank rather then a whole worksheet/exam paper. Also i would like the shown questions we be numbered 1,2,3... no matter if it is actually 2,5,7...
1 Answer
You can use \iffalse,...,\fi
for skipping the desired questions.
\documentclass[answers]{exam}
\begin{document}
\begin{questions}
\question Approximate $\displaystyle \int_0^1 \sin x^2 \, dx$ within $.001$ of
its true value.
\question Calculate the $$\int_{(5,6)}^{(3,3)} \mathbf{F}\cdot d\mathbf{l}$$
for $\mathbf{F}(x,y,z)=xy\mathbf{a}_x + (3x-y^2)\mathbf{a}_y$.
\iffalse
\question Skipped question.
\fi
\question Find the gradient of\\[0.5cm]
a- $f(x,y,z)=xy^2+2z$\\
b- $f(r,\phi,z)=2rsin\phi$\\
c- $f(R,\theta,\phi)=2\theta+R^2$\\
\question Last question.
\end{questions}
\end{document}
\usepackage{verbatim}
and then\begin{comment}
and\end{comment}
\begin{comment}
to\end{comment}
without need of%
on each line.... Thought it was obvious by the names... You need to include in this environment questions 1, 3-4, 6 and 8-10... So, only 2,5 and 7 will remain in your active code