I'm giving students a problem involving eight limit/function requirements and would like them to be equally spaced onto two lines. Here's the code:
\documentclass[11pt, bothsides]{exam}
\usepackage{multicol}
\usepackage{amsmath}
\extrawidth{1in}
\begin{document}
\begin{questions}
\question[10] Draw an example of a function $f(x)$ that satisfies the following conditions:
\newline
\begin{multicols}{4}
$$\lim_{x\to-2}f(x)=1$$
$$f(-2)=\text{DNE}$$
$$\lim_{x\to2^-}f(x)=-4$$
$$f(2)=3$$
$$\lim_{x\to2}f(x)=\text{DNE}$$
$$f(4)=-2$$
$$\lim_{x\to4}f(x) \hspace{.1in} \text{exists}$$
$$\lim_{x\to4}f(x)\neq f(4)$$
\end{multicols}
\end{questions}
\end{document}
But here's the output:
Any ideas why this might be the case? I think it may be due to the extrawidth command, but removing it just screws things up a bit more:
Any ideas? It's not a deal-breaker, but would like to help understand things. Perhaps an array would be better?
\noindent
instruction immediately after\begin{multicols}{4}
. Your code raises some other issues, though, which I've tried to address in my answer.exam
package I often have scenarios where, for example, I have four quick derivative problems that I'd like to space out in a 2x2 array. Any thoughts on this? It seems that usingalignat*
orgather*
will cause some issues. I have been using 'multicols' to solve this so far.alignat*
andgather*
environments? At any rate, there's nothing stopping you from setting up a 2x2array
environment, is there?