4

I'm using \documentclass[12pt]{exam} environment, and suppose I want to write in the following way:

enter image description here

Here is what I'm doing:

\documentclass[12pt]{exam}
\begin{document}
\begin{questions}
\question Find the value of each of the following funcitons:\par
(i) $y=a+b$\hspace{100pt}(ii) $f(x)=c+d$\par
(iii) $y=e+f$\hspace{90pt}(iv) $f(x)=g+h$\par
(v)$f(x)=i+j$\hspace{85pt}(v) $y=k+l$
\end{questions}
\end{document}

But I think this is not suitable, a lot of adjustments need to do to produce desired output. so there any exact way that I can write it? or, such as using \part command how can I write it in above manner?

4
  • 1
    Related: tex.stackexchange.com/questions/363888/…
    – Johannes_B
    Apr 14 '17 at 5:26
  • 2
    Something i noticed just now: You have number v two times. Unfortunately, stuff like that happens when numbering manually.
    – Johannes_B
    Apr 14 '17 at 8:10
  • ohh yess ... I also noticed just now, that's my mistake. Anyway thanks @Johannes_B
    – k.Vijay
    Apr 14 '17 at 8:15
  • 2
    Noticed just now, looking at the picture again. We both have funcitons in our examples :-) I wonder what a funkty ton might do.
    – Johannes_B
    Apr 14 '17 at 8:20
10

Combining one of the examples from the Wikibook and the matching package documentation, we get the following.

kvijayExamTasks

\documentclass[12pt]{exam}
\usepackage{tasks}
\settasks{
    counter-format=(tsk[r]),
    label-width=4ex
}
\begin{document}
\begin{questions}
    \question Find the value of each of the following funcitons:\par
    (i) $y=a+b$\hspace{100pt}(ii) $f(x)=c+d$\par
    (iii) $y=e+f$\hspace{90pt}(iv) $f(x)=g+h$\par
    (v)$f(x)=i+j$\hspace{85pt}(v) $y=k+l$
    \question Which one of the entries does not fit with the others?
    \begin{tasks}(2)
        \task mercury
        \task iron
        \task lead
        \task zinc
    \end{tasks}
    \question Find the value of each of the following funcitons:
    \begin{tasks}(2)
        \task  $y=a+b$   \task  $f(x)=c+d$ 
        \task  $y=e+f$   \task $f(x)=g+h$  
        \task $f(x)=i+j$ \task $y=k+l$
    \end{tasks}
\end{questions}
\end{document}

An alternative to the exam class is using package exsheets to create exam papers. The already mentioned Wikibook gives a very short example of its usage together with package tasks to get the following output (from the Wikibook):

WikibooksListsTask

0

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.