On 28/03/2011 3:57 PM, Richard Heck wrote:
On 03/28/2011 01:24 PM, Julien Rioux wrote:
At the moment it's working fine. We have three workaround solutions
for the dvi/eqn. numbers/hyperref/preview bug
#1 go pdf route
#2 remove hyperref from preview
#3 remove eqn. numbers from previews
All three have problems, and #3 would affect xhtml image export. At
the moment #1 has been applied and still seems the solution with less
drawbacks.
So let me just ask some more questions. Is the issue that we are
generating equation numbers at all? If so, where could these be disabled
for preview (as opposed to export)? If you look at how the forexport
flag is used in InsetMathHull::preparePreview(), you'll see what I have
in mind.
rh
From what I can tell the issue arises from a bug in either hyperref
package or preview-latex package: when eqn numbers are involved an error
occurs on dvi output and we don't recover a preview image. As mentioned
the solutions proposed are workarounds. venom is working on a better
fix, i.e. proper handling of failed dvi output, and pass those failed
snippets onto pdflatex.
I sort of see what you are hinting at, though. For myself I wouldn't
mind removing eqn. numbers from the preview images since they tend to go
wrong as you insert new equations. But even that could be fixed, too,
using \tag{}.
--
Julien