From aee52480c7e9baea2222c17eaee67a11c484ce2e Mon Sep 17 00:00:00 2001 From: jkriege2 Date: Sat, 19 Jan 2019 16:24:19 +0100 Subject: [PATCH] improved documentation --- doc/images/jkqtmathparser_comicsans.png | Bin 0 -> 2917 bytes doc/images/jkqtmathparser_couriernew.png | Bin 0 -> 2489 bytes lib/jkqtmathtext/jkqtmathtext.h | 10 +++++++--- 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 doc/images/jkqtmathparser_comicsans.png create mode 100644 doc/images/jkqtmathparser_couriernew.png diff --git a/doc/images/jkqtmathparser_comicsans.png b/doc/images/jkqtmathparser_comicsans.png new file mode 100644 index 0000000000000000000000000000000000000000..146c0dd247cc0537b9d721e34c0a0b5ee5a41536 GIT binary patch literal 2917 zcmbtWS5TAP7X3np81M%bMJ)6t<eChhxVSE&zxX!%_iY9!%B(fZq(QbfhD8ixG&G{on8j z9*@^PW!J`|;oq)*_|6WrH;>aqYJ20h zq?`GcrWporr_yn8-^M_R@t8}6Ng?Q`&d+9sV~*}9Mj9liYIJne7RO>;bSdhK(d7_G z2>Rn^b)EF@QpW8L>7B^OAaWW{hO)-iL-&#)(O!@G>(Z0#D(B^a51^&6I;sm0S~BF! zj2y7ow#vs+X+K?$T-UYmIP;|vbEk{`M2nSMs&QMC^eF@?pq9En{9dHeIL?2vDOtL`D%jzK?OjgUaw`!W0=`I7ph z&P()plHv{b;_s8*>slR5dem8HkT><%v47h%34)l%J`AJ$+o}ofEf{gNN=D5&3D+BS@&u%^m<$51T(}#QD;{F_nf|XcOy_f=4&`Qr;>o6mmwn~= z>jysg;LXbpY?iE!ZDkS8$gnES3X3f{i!vP5H~Sdgoo`>R1T){#S6A$Fg)X>`eLR0- zTJ!OH!u4ZeY9e1klfL4cIdLTP@iiaj;W}%|w{k}QmvOn>CW;|=r9P*e*ScmyWubcA zJDIsNFKN=_=529Mf=Av*%sfoFMXe=|c16dnN~UTvreEGnUIz1RHwB}`qgl6AQ}`h9 zaR*awXvs2`P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-Rors;5ertOI7;RPH!D-e;U7Iq7edHN~4shvV*q9htJKY z@JW_h9)FV;dDqim5ZTO;*hkiWf!hyMAO8&QdUSPVIN_%VE~Z=eP>}d1k?Q?6| zFL%XW$N+c45f-pIZQ5u_>pKoUwVRDrA;$NUzlPBv9ZZoS&Jef6zpV+`& z)cO)%NR3{&T~QM9&VtN}Lx9X4PK5{Fk@7Oq!*W`M=VZ-dw?ee4LEE8a=`$PBP-)$# zzS$O@tWw|N1WPcZ_>`x?L5a$?(oK}ijU!(%?l#PpI2a2y56TJa?p8?U#?ngDnAv+VL;#+NRfnW}~h>zS%uu zgrTHmYd}h-ofacKtLE5U{c40;d0rN!-Qu{GHSnl4XuKvG#%8KCFsyZpcQZRssoAsX zl;GW3mq9Oxb_<+$!{V^#zq1<-iS#+u@5#QJX!?z)$(1T zMuWaGM)Bos{9uj7aVO2Mk@X=)=RFsE_{0ZVhPDqZ zQfYly0eS-=k|b$Y5PBc{UsUILzj3RiPiUmz|MRz`?J(*4bj2MR1(A${{Lcz-cD(FB Iu=7d&2d{F`H2?qr literal 0 HcmV?d00001 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(""));