mmacells icon indicating copy to clipboard operation
mmacells copied to clipboard

Question: \mmaCellGraphics vertical positioning

Open jose-a-sa opened this issue 3 years ago • 1 comments

Hi,

How can I move the \includegraphics{} so that the "Out[...] =" label is centred vertically relative to graphics height? I can move it left/right using \mmaCellGraphics[ig={trim= -1cm 0cm 0cm 0cm}]{Output}{fig.pdf}.

Best wishes, Jose Sa

jose-a-sa avatar Sep 06 '21 17:09 jose-a-sa

Graphics included by mmacells commands is always typeset inside latex3 coffin. You can control typesetting of this coffin using pole1, pole2, xoffset and yoffset options.

To put coffin handle in vertical center of coffin use pole2=vc option. To control where coffin handle will be typeset, with respect to current reference point in the document, use xoffset and yoffset e.g.

\mmaCellGraphics[pole2=vc]{Output}{fig.pdf}
\mmaCellGraphics[pole2=vc,yoffset=.5ex]{Output}{fig.pdf}
\mmaCellGraphics[pole2=vc,yoffset=.5ex,xoffset=1cm]{Output}{fig.pdf}

jkuczm avatar Sep 06 '21 20:09 jkuczm