ERT expression for dimensions of boxes, images etc.

Paul A. Rubin parubin73 at gmail.com
Sun Jun 27 15:58:21 UTC 2021


On 6/27/21 7:36 AM, Tobias Hilbricht wrote:
> Dear readers of this list,
>
> is it possible in LyX to enter dimensions in terms of ERT expressions
> such as \linewidth+\marginparsep+\marginparwidth into the dialogs for
> boxes, images (Insert -> Box, Insert -> Image) ?
>
> If I have defined a length in Document -> Settings -> LaTeX-preamble,
> what is the LyX way of sizing boxes and images with that length?
>
> Thanks for helpful hints in advance,
> yours sincerly
> Tobias Hilbricht
>
With Insert > Graphics, you can click on the "LaTeX and LyX options" tab 
and insert ERT in the "LaTeX options:" box. For instance, I entered 
"width=\linewidth+\marginparsep+\marginparwidth" for an image and the 
test document compiled with what I think was the intended graphic size.

Unfortunately, I don't see any way to insert ERT in the standard box 
creation dialog.

Paul



More information about the lyx-users mailing list