r/LaTeX 8d ago

Help formatting a quiz

Post image

Hello! How can I set up my questions like this? I am writing up a quiz.

11 Upvotes

5 comments sorted by

12

u/colonel0sanders 8d ago

This is what I use for this kind of stuff:

\newcommand{\colitems}[2]{%
  \begin{minipage}[t]{0.45\textwidth}\vspace{0pt}
  \item #1
\end{minipage}
\begin{minipage}[t]{0.4\textwidth}\vspace{0pt}
  \item #2
\end{minipage}}

Then, with the enumitem package you can use the [resume] tag on your enumerate blocks to it continues counting your problems. Then you could write something like this:

\noindent \textbf{Write an equation in \underline{standard form} of the line that passes through the given point and has the given slope $m$ or that passes through the given points}

\begin{enumerate}[resume]
  \colitems{$(4, -8)$, $m=-5$}{$(7, -2)$, $(13, 22)$}
\end{enumerate}

I'm 100% self-taught so there may be a way better way to do it, but that has worked for me so far.

1

u/YoSoyArchimedes 7d ago

Thank you!

6

u/jenwe 8d ago

Using the tasks package more or less out of the box.

2

u/jpgoldberg 7d ago

I would discourage underling. Use \emph for emphasis.