Jan Peters wrote:

>>>> so, finally the instant preview puts out equations --- but they
>>>> are HUGE they
>>>> hardly fit on my screen!
>>>>
>>>> Does anybody know how to fix that?
>>>
>>> I've never seen that. They shoul have the size of the surronding
>>> text.
>>
>> Indeed.
>>
>> The size is tunable. Play with this in your preferences file:
>> \preview_scale_factor 0.9
>>
>> Nonetheless, nobody has ever had a problem with this before...
> 
> Dear Angus,
> 
> the default MAGNIFACTION has to be set to roughly 5550 instead
> of 1000 and it works. Can it be that it is a problem with the
> pnmcrop on my Mac? Since the bitmaps generated are huge --- and even
> scale bad when the MAGNIFICATION is being used!
> 
> Best,
> -Jan

Shrug. Now you see why we try and make things configurable.
The conversion process is entirely external to the LyX executable, 
governed solely by these entries in lyxrc.defaults:

\Format lyxpreview      lyxpreview      "LyX Preview"           ""
\converter lyxpreview ppm "lyxpreview2bitmap.sh" ""

You can change the converter and put the modified one in 
.lyx/scripts/lyxpreview2bitmap.sh. You can even change its name ;-)

Returning to the particulars of your question. The magnification is 
ascertained by parsing the latex log file.

# "Preview: Magnification 2074"
# If no such line found, default to MAGNIFICATION=1000.

Do you have such a line? Assuming that you do, you can tune its value 
by modifying the preferences variable \preview_scale_factor. No need 
to hack the script at all.

-- 
Angus

Reply via email to