===== Editor interattivi online ===== [[http://www.codecogs.com/latex/eqneditor.php|Codehogs editor]], molto carino, non supporta tuttavia le direttive ''\def'' e ''\newcommand'' che possono risultare comode anche se non strettamente necessarie. [[http://arachnoid.com/latex/|Interactive LaTeX Editor]] utilizza lo stesso motore di rendering di questo wiki (MathJax), supporta le direttive ''\def'' e ''\newcommand'', anche se ha un'interfaccia più scarna. [[http://it.numberempire.com/texequationeditor/equationeditor.php|Lattice Equation Editor]] supporta le direttive ''\def'' anche se __non__ ''\newcommand'', ha un'interfaccia carina anche se non aggiorna in tempo reale (click su submit per aggiornare). [[http://www.hostmath.com/|HostMath]] mostra banner pubblicitari. ===== Editor interattivi offline ===== [[http://equalx.sourceforge.net/downloads.html|EqualX]] latex equation editor: installate prima [[https://miktex.org/download|mixtex]] (la distribuzione contenente latex, ~200 Mb versione "Basic Installer"), di cui EqualX è "interfaccia grafica" relativamente alle sole formule. ===== Esempi/Utilizzo ===== //[da documentazione plugin dokuwiki/MathJax, + note mie]// NOTA: la configurazione di default utilizza \$ (simbolo del dollaro US) per delimitare formule matematiche in sintassi TeX (interprete [[http://www.mathjax.org/|MathJax]]). Ciò può causare problemi nel caso si voglia utilizzare il carattere \$ nelle pagine del wiki. La configurazione di default permette di "proteggere" il simbolo forzandone una interpretazione letterale (in gergo //"lets you **escape** the dollar sign"//) utilizzando un backslash prefisso, come in ''\$''. Note sull'utilizzo della sintassi TeX sono reperibili su internet, [[http://en.wikibooks.org/wiki/LaTeX/Mathematics| LaTeX wikibook - Mathematics]] [[http://en.wikibooks.org/wiki/LaTeX/Advanced_Mathematics | LaTeX wikibook - Advanced Mathematics]] [[http://www.suluclac.com/Wiki+MathJax+Syntax | Note di sintassi MathJax]] [[http://www.onemathematicalcat.org/MathJaxDocumentation/TeXSyntax.htm | Lista comandi supportati MathJax]] Once the plugin is installed, you can write TeX formulas in your wiki with the following syntax (by default --- all delimiters are configurable): ====Inline Math==== Use dollar signs: $a^2 + b^2 = c^2$ or escaped parentheses: \(1+2+\dots+n=\frac{n(n+1)}{2}\) ====Display Math==== To display math on its own line, use double dollar signs: $$ \frac{d}{dx}\left( \int_{0}^{x} f(u)\,du\right)=f(x) $$ or escaped square brackets: \[ \sin A \cos B = \frac{1}{2}\left[ \sin(A-B)+\sin(A+B) \right] \] A wide range of math environments((Accepted math environments (specified [[https://github.com/liffiton/dokuwiki-plugin-mathjax/blob/master/syntax/protecttex.php#L27|here]] in the code): align, align*, alignat, alignat*, displaymath, eqnarray, eqnarray*, equation, equation*, flalign, flalign*, gather, gather*, math, multline, multline*)) will work as well: \begin{align*} e^x & = 1 + x + \frac{x^2}{2} + \frac{x^3}{6} + \cdots \\ & = \sum_{n\geq 0} \frac{x^n}{n!} \end{align*} Note that the math environments //should not// be inside the dollar sign delimiters; the environments should stand on their own with just the ''\begin'' and ''\end'' statements in order to be parsed correctly.