Let's say I want to include an oversized margin figure that is allowed to stick into the normal text area using adjustbox, perhaps by something like this:
\documentclass{memoir}
\usepackage{adjustbox}
\usepackage{lipsum}
\begin{document}
\begin{marginfigure}
\adjustbox{lap=-\marginparwidth,caption=Caption,nofloat=figure}{\includegraphics[width=2\marginparwidth]{example-image-a}}
\end{marginfigure}
\lipsum[1-4]
\end{document}
This results in
which is mostly what I want, except for the placement of the caption.
Is it possible to have the caption move along with the actual content of the adjustbox? I'm not concerned with the content overlapping the normal text block (this will be taken care of in another way).
I know there are probably a lot better ways to do what I'm trying to do, but I'm editing a large document and prefer to do something similar to what the original authors have done, keeping their choice of syntax in some user defined macros.


lap=-\marginparwidth. I had expected that the caption would be set inside the same box that is "moved" by thelapoption. – mrf Feb 08 '18 at 14:01