Improve TeX-typesetting
Open, HighPublic

Description

  1. allow the user to select between different latex engines (latex, pdftex, tetex, luatex) to allow unicode fonts etc.
  2. 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)
  3. 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.

asemke created this task.Dec 2 2016, 8:48 PM
filipesaraiva moved this task from Backlog to To-Do on the Cantor board.Jan 7 2017, 1:40 PM
filipesaraiva added a subscriber: filipesaraiva.

I will give a look in this task. @asemke suggests us to get the code from TexRender source files at LabPlot.

@asemke, the code you cited is present in KF5 or Qt4 version of labplot? Could you suggest the path to open the window with the configurations in 1 (select latex engine)?

@filipesaraiva the code is present in both versions. Our master is already on kf5. The settings page is located ins src/kdefrontend/SettingsWorksheetPage. Calling to latex is done in src/tools/TeXRenderer.cpp - here we still miss the setting for the background color at the moment. I'll add this tomorrow.

filipesaraiva moved this task from To-Do to Work in Progress on the Cantor board.Apr 29 2017, 2:39 PM