Preview sizes.
Andrew Parsloe
ajparsloe at gmail.com
Fri Nov 29 22:53:24 UTC 2024
On 29/11/2024 10:26 pm, Scott Kostyshak wrote:
>> I've been able to simplify the document to fairly minimal (attached) and can
>> now provide a recipe:
>>
>> 1. Open LyX and the LyX temporary directory (with the list of lyx_tmpbuf0,
>> ...)
>>
>> 2. Load test.lyx in LyX
>>
>> 3. A new lyx_tmpbuf<n> is formed; open it asap.
>>
>> 4. If you are quick enough you should see shrunken previews, rather than at
>> normal screen font size.
>>
>> Opening the temp buffer seems to force or accelerate the generation of the
>> previews before they have learnt of the screen font size. The numbering of
>> the equations in test.lyx (or some other delaying process) seems to be
>> necessary. I use a Default zoom (and slider) of 168% (old eyes) and preview
>> size of 1.0.
>>
>> Andrew
> Thanks, Andrew. Your diagnosis does make sense. I do not notice anything from the user perspective, but indeed I haven't checked the temp directory. I will try to experiment more. From your description, I see two potential bugs:
>
> 1. When the problem occurs, the previews are not updated to the correct size until you edit it, right? Or is it like the bad previews show for one second and then they are correctly updated?
>
> 2. Inocrrect previews are generated before they are corrected.
>
> In my opinion, (1) is worse and potentially easier to fix than (2).
>
> Scott
My recipe is somewhat ambiguous at step 4. What I mean is that if you
open the temporary buffer soon enough, the previews that (eventually)
form in LyX will be diminished. The shrunken previews persist
throughout the session unless a preview update of the whole document is
forced, most conveniently by Ctrl+0 (buffer-zoom). For an inidividual
shrunken preview, editing it and then moving the cursor outside should
restore it to full size, although you might get caught by the #13116,
#13123 bug where the preview does not initially show the changed
content. (It seems to depend on the size of the document whether this
happens or not.)
Andrew
More information about the lyx-devel
mailing list