diff --git a/doc/images/jkqtmathparser_comicsans.png b/doc/images/jkqtmathparser_comicsans.png new file mode 100644 index 0000000000..146c0dd247 Binary files /dev/null and b/doc/images/jkqtmathparser_comicsans.png differ diff --git a/doc/images/jkqtmathparser_couriernew.png b/doc/images/jkqtmathparser_couriernew.png new file mode 100644 index 0000000000..90674774fc Binary files /dev/null and b/doc/images/jkqtmathparser_couriernew.png differ diff --git a/lib/jkqtmathtext/jkqtmathtext.h b/lib/jkqtmathtext/jkqtmathtext.h index 11aaf0e7fd..57e35f2cc2 100644 --- a/lib/jkqtmathtext/jkqtmathtext.h +++ b/lib/jkqtmathtext/jkqtmathtext.h @@ -173,12 +173,14 @@ LIB_EXPORT void initJKQtMathTextResources(); - useASANA() use the ASANA fonts from https://ctan.org/tex-archive/fonts/Asana-Math/ in math-mode
\image html jkqtmathparser_asana.png - useAnyUnicode() use generic Unicode fonts, e.g. "Arial" and "Times New Roman" in math-mode. You should use fonts that contain as many of the mathematical symbols as possible to ensure good rendering results.
using "Times New Roman": \image html jkqtmathparser_timesnewroman.png
using "Arial": \image html jkqtmathparser_arial.png - . +
using "Courier New": \image html \image html jkqtmathparser_couriernew.png +
using "Comic Sans MS": \image html \image html jkqtmathparser_comicsans.png + . Math-mode is activated by enclosing your equation in \c $...$ or \c \\[...\\] . This mode is optimized for mathematical equations. Here is an example of the difference: - - math-mode (XITS is used) "$\\left[-\\frac{\\hbar^2}{2m}\\frac{\\partial^2}{\\partial x^2}+V(x)\\right]\\Psi(x)=\\mathrm{i}\\hbar\\frac{\\partial}{\\partial t}\\Psi(x)$":
\image html jkqtmathparser_schreq_mathmode.png - - normal mode (Times new Roman is used) "\\left[-\\frac{\\hbar^2}{2m}\\frac{\\partial^2}{\\partial x^2}+V(x)\\right]\\Psi(x)=\\mathrm{i}\\hbar\\frac{\\partial}{\\partial t}\\Psi(x)":
\image html jkqtmathparser_schreq_normalmode.png + - math-mode (XITS is used) \c $...$:
\image html jkqtmathparser_schreq_mathmode.png + - normal mode (Times new Roman is used):
\image html jkqtmathparser_schreq_normalmode.png . @@ -250,6 +252,8 @@ class LIB_EXPORT JKQTmathText : public QObject { * * setAnyUnicode("Times New Roman", "Times New Roman"):
\image html jkqtmathparser_timesnewroman.png * setAnyUnicode("Arial", "Arial"):
\image html jkqtmathparser_arial.png + * setAnyUnicode("Courier New", "Courier New"):
\image html jkqtmathparser_couriernew.png + * setAnyUnicode("Comic Sans MS", "Comic Sans MS"):
\image html jkqtmathparser_comicsans.png */ void useAnyUnicode(QString timesFont=QString(""), QString sansFont=QString(""));