I'm trying to format a basic circuit question, where a circuit diagram is placed to the right of the choices in a multiple choice question.
Currently, it looks like
I'm after something that looks like, e.g.
Unfortunately, I'm having trouble figuring out how to do this with the wrapfigure and enumerate environments. The circuit diagram is getting placed below the choices, rather than to their right. Any help would be much appreciated!
\documentclass{exam}
\usepackage{circuitikz} % for drawing circuit diagrams
\usepackage{wrapfig} % for wrapfigure environment
\usepackage{enumitem} % more options for enumerate command
% define enumerate command for new multiple choice question
\newlist{mcquestion}{enumerate}{1}
\setlist[mcquestion,1]{label={\bfseries\arabic{mcquestioni}.}, leftmargin=*, resume=mcquestion}
\def\remembered[#1]{\typeout{Call #1:\arabic{mcquestioni}}}
% define enumerate command for possible choices
\newlist{mchoices}{enumerate}{1}
\setlist[mchoices,1]{label={\bfseries\alph.}, wide=1cm, leftmargin=}
\begin{document}
\begin{mcquestion}
\item In the circuit drawn in the figure, the ammeter has no resistance, and the battery has an e.m.f.~$\varepsilon$ and an internal resistance~$r$. Which of the following is correct?
\end{mcquestion}
\begin{mchoices}
\item The current flowing through the ammeter is zero.
\item The p.d. across the ammeter is zero.
\item The potential drop \textbf{inside} the battery is zero.
\item The energy dissipated in the whole circuit is zero.
\end{mchoices}
\begin{wrapfigure}{R}{0.5\linewidth}
\begin{circuitikz}[scale=2] \draw
(0,1) to[battery, l={$\varepsilon$, r}] (1,1)
(1,1) -- (1,0)
(1,0) to[rmeter, t=A] (0,0)
(0,0) -- (0,1)
;
\end{circuitikz}
\end{wrapfigure}
\end{document}




wrapfigand any list-like environment are incompatible (see the first bullet point on the first page ofwrapfigdocumentation). You are much better using explicit minipages for it. (BTW, it has nothing to do withcircuitikz, it would happen the same with any figure content). – Rmano Jun 26 '23 at 15:56problemundefined. – Rmano Jun 26 '23 at 17:28