I am using \fillin[]
command in the latex exam
class to produce the following output:
Convert the following angles from degrees to radians:
\begin{questions}
\begin{multicols}{4}
\question
\begin{align*}
180 \degree
&= \fillin[$1$] \pi \\
&= \fillin[$\frac{1}{2}$] \tau \\
&\approx \fillin[$3.14159$]
\end{align*}
\columnbreak
\question
\begin{align*}
90 \degree
&= \fillin[$\frac{1}{2}$] \pi \\
&= \fillin[$\frac{1}{4}$] \tau \\
&\approx \fillin[$1.57079$]
\end{align*}
\columnbreak
\question
\begin{align*}
270 \degree
&= \fillin[$\frac{3}{2}$] \pi \\
&= \fillin[$\frac{3}{4}$] \tau \\
&\approx \fillin[$4.71238$]
\end{align*}
\columnbreak
\question
\begin{align*}
360 \degree
&= \fillin[$2$] \pi \\
&= \fillin[$1$] \tau \\
&\approx \fillin[$6.28318$]
\end{align*}
\end{multicols}
\vspace*{\stretch{1}}
\end{questions}
The output is actually exactly as I hoped for. However, I am getting several errors from Overleaf:
I suspect it is not proper to put \fillin[]
inside of an align
environment. I also tried removing the dollar signs, which are typically not allowed inside an align
environment, but this did not help and caused the fractions to stop rendering correctly.
Is there a proper way to deal with \fillin[]
inside an align
environment?
Additionally, this may be better saved for a separate question, but is there a way to make a \fillin[]
command that works outside of the exam
class, e.g. in the kaobook
class?