- allow the user to select between different latex engines (latex, pdftex, tetex, luatex) to allow unicode fonts etc.
- disable latex typesetting and output in the worksheet if no latex installation is available (s.a. https://bugs.kde.org/show_bug.cgi?id=342649)
- allow to input a complete latex document (with \begin{document}, etc.) in "latex entries"
Consider using LabPlot's TexRender.h/cpp and the logic implemented in the Settings-Dialog that can do all of this. Consider also using 'convert' from ImageMagic to convert from ps or pdf to png. convert is also available on Windows and Mac OS which is not the case for libspectre.