Extension talk:TrustedMath

Latest comment: 11 years ago by 212.118.223.36 in topic Works with 1.21.1

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)Reply

Works with 1.21.1

edit

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)Reply

Error while using TrustedMath

edit

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: ζ(s)=n=1ns=11s+12s+13s+σ=R(s)>1.

So does this: ζ,α

So does this: Fn=(In1+Tn1)*SIFn

However, this does not: ζ,αFn=(In1+Tn1)*SIFn


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?

Return to "TrustedMath" page.