On Apr 16, 2007, at 5:38 AM, Bennett Helm wrote:

On Apr 15, 2007, at 11:11 PM, Brian Kidd wrote:

preview.sty is in my latex path. the help latex configuration excerpt appears below. also, there is a path to preview.sty in Tools > TeX Information and my ~/Library/Application Support/ LyX-1.4/configure.log file says:

+checking for package preview [preview]... yes

7.10 preview
MM Found: yes
MM CTAN: macros/latex/contrib/preview
MM Notes: The package preview is needed by LyX to preview LaTeX constructs; especially for math formulas when you use the option ``Instant Preview'' in Tools->Preferences->Look and feel->Graphics.

i'm not sure what you mean by whether my preferences are set correctly? i have instant preview on and this setting is saved so that every time i open up a new document, i can go into LyX > Preferences... > Look and Feel > Graphics and see Instant Preview: On. still, there is no change in the math font when i enter a formula so instant preview isn't working.

oddly, however, nothing related to instant preview appears in the ~/Library/Application Support/LyX-1.4/preferences file. but i'm not sure this matters.

any other suggestions?

Try looking at the output in Console.app just after you create a new equation (and move the cursor out of it so that LyX tries to generate the preview). Does that tell you anything?

Bennett

The Console.app information was helpful.

dyld: Library not loaded: /usr/local/lib/libfreetype.6.dylib
  Referenced from: /sw/bin/dvipng
Reason: Incompatible library version: dvipng requires version 10.0.0 or later, but libfreetype.6.dylib provides version 6.3.0
dvipng failed to generate images from 0lyxpreview.dvi

My current version of FreeType is 2.2.1. I installed version 2.3.4, which is the latest stable release. Now the error message in the console has gone away when I use instant preview and instant preview tries to render the math fonts. However, the rendering for some characters is wrong. For example, if I type, x = 1, then instant preview displays x / 1. If I type, a + b, then instant preview displays a -/ b. The console shows:

dvipng warning: at (0,-1) ignored header \special{!/[EMAIL PROTECTED] (11.81)def}. dvipng warning: at (0,-1) ignored header \special{!userdict begin/ preview-bop-level 0 def/bop-hook{/preview-bop-level dup load dup 0 le {/isls false def/vsize 792 def/hsize 612 def}if 1 add store}bind def/ eop-hook{/preview-bop-level dup load dup 0 gt{1 sub}if store}bind def end}.

but I'm not sure how to interpret these warnings. Any other suggestions?
-Brian

Reply via email to