下面的方法該怎麼寫呢?

下面的方法該怎麼寫呢?

我正在使用\documentclass[12pt]{exam}環境,假設我想按以下方式編寫:

在此輸入影像描述

這是我正在做的事情:

\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}

但我認為這不合適,需要做很多調整才能產生期望的輸出。那麼我有什麼確切的方法可以寫它嗎?或者,例如使用\part命令我該如何用上面的方式編寫它?

答案1

結合其中之一維基百科上的例子以及匹配的包文檔,我們得到以下內容。

kvijay考試任務

\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}

該課程的另一種選擇exam是使用套件exsheets來建立試卷。已經提到的 Wikibook 給出了一個非常簡短的範例,說明其與套件一起使用tasks以獲得以下輸出(來自 Wikibook):

維基教科書列表任務

相關內容