How to pass marginparwidth to includegraphics

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


Great. Thanks a lot for the quick reply.

------- Original Message -------
On Thursday, February 24th, 2022 at 11:25 PM, Paul A. Rubin via lyx-users <lyx-users at lists.lyx.org> wrote:

> 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/ff1eac5e/attachment.html>


More information about the lyx-users mailing list