jkuczm / mmacells

Mathematica cells in TeX
61 stars 18 forks source link

Question: \mmaCellGraphics vertical positioning #48

Open jose-a-sa opened 3 years ago

jose-a-sa commented 3 years ago

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

jkuczm commented 3 years ago

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}