Extension talk:TrustedMath

From MediaWiki.org
Jump to: navigation, search

Works also under MediaWiki 1.19

For more functions as mathfrak, you can change your file TrustedMath_body.php and add more package like :

	protected static function wrapEquation( $equation ) {
		return implode( "\n", array(
			'\documentclass{article}',
			'\pagestyle{empty}',
			'\usepackage{amsfonts}',
			'\usepackage{amsmath}',
			'\usepackage{amssymb}',
			'\usepackage{amsthm}',
			'\usepackage[usenames]{color}',
			'\usepackage[usenames,dvipsnames]{xcolor}',
			'\usepackage{engrec}',
			'\begin{document}',
			'\begin{equation*}',
			trim( $equation ),
			'\end{equation*}',
			'\end{document}',
		) );
	}

and with that, you will be able to use all the formula of the page : http://meta.wikimedia.org/wiki/Help:Formula


Thanks, worked perfekt. --212.118.223.36 11:39, 28 August 2013 (UTC)

Works with 1.21.1[edit | edit source]

Works under Windows 2008 R2 // IIS 6


Software Version
MediaWiki 1.21.1
PHP 5.3.22 (cgi-fcgi)
MySQL 5.6.10-log


Confirmed --212.118.223.36 11:39, 28 August 2013 (UTC)

Error while using TrustedMath[edit | edit source]

I've installed MikTeX as mentioned in the instructions and have provided path to the latex.exe and dvipng.exe files. However I am seeing a weird problem while using the extension. I am using the unsafe mode right now:

when i try to render the Riemann Zeta example the extension manages to do it flawlessly. This works: 
\zeta(s) = 
\sum_{n=1}^\infty n^{-s} =
\frac{1}{1^s} + \frac{1}{2^s} + \frac{1}{3^s} + \cdots \;\;\;\;\;\;\;\sigma = R(s) > 1.
\!

So does this: 
\zeta, \alpha

So does this: 
F_n = (I_{n-1} + T_{n-1})*SIF_n

However, this does not: 
\zeta, \alpha


F_n = (I_{n-1} + T_{n-1})*SIF_n


And instead gives me the following error:

(d:\installs\MiKTeX\tex\latex\base\article.cls Document Class: article 2007/10/19 v1.4h Standard LaTeX document class 
(d:\installs\MiKTeX\tex\latex\base\size10.clo)) (d:\installs\MiKTeX\tex\latex\amsmath\amsmath.sty For additional information on amsmath, 
use the `?' option. (d:\installs\MiKTeX\tex\latex\amsmath\amstext.sty (d:\installs\MiKTeX\tex\latex\amsmath\amsgen.sty)) 
(d:\installs\MiKTeX\tex\latex\amsmath\amsbsy.sty) (d:\installs\MiKTeX\tex\latex\amsmath\amsopn.sty)) No file 
ef3f8f15cade92b43efc0afcfc297ee66wwn1f.aux. ! Missing $ inserted. <inserted text> $ l.7 No pages of output. Transcript written on 
D:/installs/EasyPHP-DevServer-13.1VC11/data/localweb/wiki /images/math/ef3f8f15cade92b43efc0afcfc297ee66wwn1f.log.

any ideas?