On Fri, 7 Feb 2003, Angus Leeming wrote: > >> > - How can I turn on the instant-preview feature? I can't seem to find > >> > a toggle for it in any dialog. > >> > >> Edit->Preferences dialog. > >> Look and Feel->Graphics pane > >> Instant preview checkbox > > > > Silly me. I actually had this on but thought there was a different option > > for > > it b/c it didn't work. I hadn't realized I needed the files from the > > sourceforge page first for this to work. It might not hurt (just to avoid > > stupid questions like mine) to put a little note on that checkbox > > indicating that the preview-latex package from Sourceforge is needed for > > the feature to work. > > Or deactivate the checkbox. Maybe.
If you do so, make sure a little info is given as to why it's inactive, so users who want the feature know what they need to add to turn it back on. Once you know what the necessary package is, fixing the problem is trivial. It would be a shame to have users lose this because of not knowing what they need to add to make it work. > > The funny thing is, now that the 'normal' (blue math) lyx math rendering > > uses anti-aliased fonts, I think I almost prefer to use that to the > > instant-preview mode. While it's nice to see the latex rendering > > there, it just looks a bit clunky next to the smooth fonts of the rest. > > Any chance of activating anti-aliasing for those code snippets (gv > > does it, so I anti-aliasing for those code snippets (gv does it, so > > I figure it must be doable). I know, us users are never satisfied :) > > We have to accommodate the lowest common denominator. Old versions of gs > tend to die a nasty death if anti-aliasing is too high. Fortunately for you, > we use a script to control the creation of the preview bitmaps, so you can > tune to your heart's content. > > You'll find the script in LYSSHARE/scripts/lyxpreview2bitmap.sh, where > LYSSHARE is usually /usr/local/share/lyx/. > > Look for > ALPHA=4 > if [ ${INT_RESOLUTION} -gt 150 ]; then > ALPHA=2 > fi > > gs -q -dNOPAUSE -dBATCH -dSAFER \ > -sDEVICE=${GSDEVICE} -sOutputFile=${BASE}%d.${GSSUFFIX} \ > -dGraphicsAlphaBit=${ALPHA} -dTextAlphaBits=${ALPHA} \ Great!!! Thanks. It seems like RedHat 8.0's gs is perfectly happy with ALPHA=4 (but no higher, 5 or above crashes it) so I just commented out the if clause entirely. BTW, in the RH8.0 binary rpm, LYXSHARE is /usr/share/lyx (no local needed). Best regards, and thanks again. The beauty of open-source software where developers answer questions. You guys rock. Fernando.