Aspect ratio sometimes set to "off"

Maria Gouskova gouskova at gmail.com
Wed Jun 5 12:22:51 UTC 2024


Hi Stef,

On Wed, Jun 5, 2024 at 7:49 AM Stef Pillaert <stef.pillaert at kuleuven.be>
wrote:

> Follow up: if the settings are like this, the aspect ratio always seems to
> be neglected, resulting in vertically stretched figures in the output.
> I work on windows 11 (the problem was similar in previous versions of LyX,
> on windows 10).
> Stef
>

I think this is the desired behavior of that dialog. It's explained in the
Embedded Objects manual (look under "Help"). The "maintain aspect ratio"
option is only available when you set both dimensions, and then the
dimension settings are interpreted as the maximum dimensions not to exceed.
If you set only one, the other is set automatically, and the aspect ratio
setting is on automatically. The one thing that I think is not working
correctly is that the aspect ratio option is grayed out but does not appear
to be checked, even though it's on.

When I try your settings (set only one dimension to 50% of the page width,
leave the other unset) I get the correct behavior. Can you create a minimal
working example of an image that comes out distorted when you set only one
dimension?

Maria


> ------------------------------
> *Van:* Stef Pillaert <stef.pillaert at kuleuven.be>
> *Verzonden:* woensdag 5 juni 2024 9:33
> *Aan:* lyx-users at lists.lyx.org <lyx-users at lists.lyx.org>
> *Onderwerp:* Aspect ratio sometimes set to "off"
>
> A small problem I every now and then notice with figures: the setting to
> keep the aspect ratio sometimes "disappears". Hard to reproduce this
> behavior consistently. When I copy-paste figures, I know that I risk that
> this will happen. But I think it also happens in other situations. Again,
> hard to reproduce consistently, it happens "now and then".
> A bit annoying, since this makes me check the entire document to detect
> whether this has happened or not.
> I hoped this behavior would have disappeared in LyX 2.4, but this doesn't
> seem to be the case.
> Stef
> --
> lyx-users mailing list
> lyx-users at lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20240605/5f97ce9c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 47164 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20240605/5f97ce9c/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 40303 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20240605/5f97ce9c/attachment-0003.png>


More information about the lyx-users mailing list