mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-11-15 18:15:52 +08:00
b0df7a1fd7
NEW/BREAKING: refactor CMake-Code, so static/dynamic switch is done via <code>BUILD_SHARED_LIBS</code>, which retires <code>JKQtPlotter_BUILD_STATIC_LIBS</code>, <code>JKQtPlotter_BUILD_SHARED_LIBS</code> and removes the capability to build static and shared libraries in one location (fixes issue #104) NEW: prepareed library for CMake's <a href="https://cmake.org/cmake/help/latest/module/FetchContent.html">FetchContent</a>-API NEW: the different sub-libraries JKQTPlotter, JKQTFastPlotter (DEPRECATED), JKQTMath, JKQTMathText can be activated/deactivated with CMake options JKQtPlotter_BUILD_LIB_JKQTPLOTTER, JKQtPlotter_BUILD_LIB_JKQTFASTPLOTTER, JKQtPlotter_BUILD_LIB_JKQTMATHTEXT, JKQtPlotter_BUILD_LIB_JKQTMATH |
||
---|---|---|
.. | ||
asana | ||
asana.pri | ||
asana.qrc | ||
CMakeLists.txt | ||
jkqtmathtext_test_and_lib.pro | ||
jkqtmathtext_test.cpp | ||
jkqtmathtext_test.pro | ||
mathtest.pdf | ||
mathtest.tcp | ||
mathtest.tex | ||
mathtest.txss2 | ||
README.md | ||
testform.cpp | ||
testform.h | ||
testform.ui |
Example (JKQTMathText): A test application
JKQTMathText is a hand-written LaTeX-renderer for Qt (implemented in native C++, using Qt). It supports a large set of standard LaTeX markup and can render it to a QPainter.
This test program demonstrates its capabilites. There are several pre-formulated LaTeX expressions that can be drawn, or you can enter a user-defined expression. You can also set several properties of the rendering (fonts, font sizes, anti-aliasing, ...). You can also draw boxes around each part of the expression (this is mostly meant for development/debugging). In the lower-right you will see the LaTeX expression as a tree after parsing and you will get timing-values for the parsing and rendering and error output.
The application looks like this: