How to pass marginparwidth to includegraphics

Paul A. Rubin parubin73 at gmail.com
Thu Feb 24 21:25:49 UTC 2022


On 2/24/22 16:18, tush via lyx-users wrote:
> 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.
>
Click the "LaTeX and LyX options" tab and enter "width=\marginparwidth" 
in the "LaTeX options" box.

Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220224/80336ba4/attachment.html>


More information about the lyx-users mailing list