I am writing an exam. Using a 2-column layout with \begin{multicols}{2}
, which works fine.
The exam is a multiple-choice question set; hence I have a nested enumerate starting immediately after beginning multicolumn and ending immediately before multicolumn.
So far, so good.
The rub is that occasionally, a batch of questions refers to a diagram or table. On these occasions, I would like to insert such diagram/table in a single column (i.e. spanning the 2 columns) so that they are legible.
Of course, since I am already inside an enumerate, LaTeX throws an error if I try to end multicolumn, insert chart, and begin multicolumn again.
I saw float
mentioned somewhere, but not sure of whether it does the trick. To be clear, if the inserted/floated object spans all columns of my multicolumn environment, that is 100% acceptable.
I have tried figure
, but anything inside this environment completely disappears.
\begin{figure}[t]
\exbatch{Questions 4 is based on the following table: }
\includegraphics{test1_q4_sample}
\end{figure}
PARTIALLY SOLVED: Replaced {figure}
with {figure*}
environment, and it sorta worked - h
placement still doesn't work. t
works, but pushes the image to the next page, irrespective of whether there's something before the figure or not on the page.
Turns out there is no solution to this, and {figure*}
environment has no h
, which explains the above issue.