> I would try a different approach. Currently, all previews are 
> generated
> from a single dvi file. However, each preview snippet is 
> contained in a
> separate page, so I would use dviselect to extract all pages 
> and process
> them one by one in the python scripts. In this way, latex is 
> called only
> once and only the failing preview snippet would be skipped.

I can't find the dviselect tool in my MiKTeK or LyX installation? Has it ever
been built for win32?
I've tested it under linux and seems a good solution, we can do as following:

1)  latex mega-tex-with-all-snippets.tex
2)  with dviselect create a .dvi for each page
3)  check each .dvi if it needs legacy method (PSTricks or pgf/TikZ)
4a) call dvipng on each .dvi not using ps
4b) call the legacy method for the others (which needs another latex call
because we need to insert colors in the .tex file)
5) be happy

Do we need other forms of error-detection?

venom00

Reply via email to