> I had a look at your code in TexRenderer. I think, we can assume a relatively
> modern system used by the labplot user and we can use pdflatex for creating a
> pdf file in the first step and to convert it to png in the second step. So, we
> save the step with the conversion from dvi to ps.
we can check for pdflatex and use it if available. Otherwise the current
rendering can be used as a fallback.
> convert-tool can also convert to svg and there is a QGraphicsSvgItem-class. If
> the convert realy produces a usable vector information, then we can achieve a
> better display quality on the worksheet. At the moment the quality is quite
> poor. I guess, the resolution of the png-file is too small.
I never used SVG images for rendering but this could be nice. Have you
> Or we can even use direclty the pdf-file created in the first step without
> converting it to other formats. In this case we need a pdf-renderer like
> poppler etc. I'm not sure whether we should implement this at this stage
Maybe skip this now and think about it if SVG doesnt work as expected.
> I also have a question concerning the temporary files created by
> QTemporaryFile during our rendering process. If I see it correctly, the files
> a created in /tmp, which is not mounted in memory via tmpfs by default on all
> distributions. Should we write directly to /dev/shm instead?
Yes. ATM /tmp is used.
Do you know how to use tmpfs or /dev/shm? Maybe some benchmark tests
would be nice.