On Thursday 27 June 2002 9:25 am, Andre Poenitz wrote: > On Thu, Jun 27, 2002 at 08:57:41AM +0100, Angus Leeming wrote: > > It sounds great. Note, however, that for asynchronous conversion you > > should use grfx::GConverter to be found in graphics/GraphicsConverter.C. > > I thought I could just do a > > > // The real work starts. > std::ofstream of(file.c_str()); > of << "\\batchmode" > << "\\documentclass{article}" > << "\\usepackage{amssymb}" > << "\\thispagestyle{empty}" > << "\\pdfoutput=0" > << "\\begin{document}" > << data > << "\\end{document}\n"; > of.close(); > > // now we are done, start actual loading > loader_.reset(file); > > and it would work automatically.
I think you're right. The above is the "image" file in lyxpreview format and your script is the converter from lyxpreview to EPS (your pdflatex stuff). > Right now there are two obstacles: > 1. the conversion script is not found (which I circumvent locally > by a symlink into /usr/local/bin) > 2. the converter says he finds no path from .lyxpreview to .xpm. What do you get from lyx -dbg graphics? Angus