How to pass marginparwidth to includegraphics

ehud.behar at protonmail.com ehud.behar at protonmail.com
Thu Feb 24 21:18:19 UTC 2022


I have some figures which I want to include in the marginal part of the document.
The graphics to be included should be of width \marginparwidth​.
How can I pass this width to the include graphics tool (Insert->Graphics) within the editor?

In plain LaTeX I would have typed

\begin{marginfigure}
\includegraphics[width=\marginparwidth]{file.png}
\end{marginfigure}

(I created a customized marginfigure inset with a module file)

So after inserting the graphics file, I don't see any way to specify the above width.

The only options I have are those in the attached picture, non of which is marginparwidth.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220224/80e420a9/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: includegraphics gui.png
Type: image/png
Size: 248630 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220224/80e420a9/attachment-0001.png>


More information about the lyx-users mailing list