Auwch... At first, I couldn't make a minimal working example...until I discovered that I was always copying a figure (and then changing the filename), with extra LyX-LaTex-settings in the third tab, combined with the following in my preamble: \usepackage[export]{adjustbox} Just to be able to use valign for my figures. Probably this is the cause of all my problems with aspect ratio's and figures!!! Sorry, only by inspecting the source window in LyX, together with trying to create a MWE, I (probably) discovered the actual cause of my problem(s). Thanks, your suggestion of making a MWE showed me the way. Orry for your time, thanks for your help. Stef ________________________________ Van: Maria Gouskova <gousk...@gmail.com> Verzonden: woensdag 5 juni 2024 14:22 Aan: Stef Pillaert <stef.pilla...@kuleuven.be> CC: lyx-users@lists.lyx.org <lyx-users@lists.lyx.org> Onderwerp: Re: Aspect ratio sometimes set to "off"
Hi Stef, On Wed, Jun 5, 2024 at 7:49 AM Stef Pillaert <stef.pilla...@kuleuven.be<mailto:stef.pilla...@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 [cid:ii_18fe8540969cb971f162] 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.pilla...@kuleuven.be<mailto:stef.pilla...@kuleuven.be>> Verzonden: woensdag 5 juni 2024 9:33 Aan: lyx-users@lists.lyx.org<mailto:lyx-users@lists.lyx.org> <lyx-users@lists.lyx.org<mailto:lyx-users@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 [cid:ii_18fe8540969cb971f161] -- lyx-users mailing list lyx-users@lists.lyx.org<mailto:lyx-users@lists.lyx.org> http://lists.lyx.org/mailman/listinfo/lyx-users
-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users