I went through all the steps of http://meta.wikimedia.org/wiki/Troubleshooting_math_errors to set up mathematical formula rendering on my wiki: = Compiled texvc
I've activated <math> support by 1. adding the following lines to LocalStettins.php $wgUseTeX = true; $wgUploadPath = "{$wgScriptPath}/images"; $wgMathPath = "{$wgUploadPath}/math"; $wgMathDirectory = "{$wgUploadDirectory}/math"; $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
and made the appropriate directories writable to apache user, then tested with the following simple examples:
<math>1</math> <math>\sin(x) + \ln(y)</math> <math>F(x) - \epsilon </math> <math>E = mc^2</math>
and it works by generating html where I can select the result on the page as character string.
However when I tried to use a bit more complex example <math>\frac{x^n-1}{x-1}</math> or <math>\sum_{n=0}^\infty \frac{x^n}{n!}</math> It did not generate what I expected: created something that looks raw result.
I've tried these formulae on Wikipedia as I've got these examples from there and it works there on the way that it creates an image. I can't figure out what can be missing part of my setup.
OS: Mandriva Linux 2007 Installed all the latex related packages (wonder if Mandriva's latex is AMS-Latex or not and this can cause the problem but I don't know how to check) Any idea where to look for the problem and solution?
Thanks, Laszlo
I tried to dig further into the problem and started playing with my preference to change Math to : always render to png. and now everything is in raw. When I right click on any raw output and select View Image (Firefox 2.0.0.1) it says:
Not Found
The requested URL /wikimtest/images/math/d/8/c/d8c9c398f3f4a137eb1aa767d49fde43.png was not found on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
------------------------------------------------------------------------ Apache/2.2.3 (Mandriva Linux/PREFORK-1mdv2007.0) Server at mymachine.homelinux.org Port 80
It seems that the png generation is not working. Any help would be greatly appreciated, Laszlo
Laszlo Gal wrote:
I went through all the steps of http://meta.wikimedia.org/wiki/Troubleshooting_math_errors to set up mathematical formula rendering on my wiki: = Compiled texvc
I've activated <math> support by
- adding the following lines to LocalStettins.php
$wgUseTeX = true; $wgUploadPath = "{$wgScriptPath}/images"; $wgMathPath = "{$wgUploadPath}/math"; $wgMathDirectory = "{$wgUploadDirectory}/math"; $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
and made the appropriate directories writable to apache user, then tested with the following simple examples:
<math>1</math> <math>\sin(x) + \ln(y)</math> <math>F(x) - \epsilon </math> <math>E = mc^2</math>
and it works by generating html where I can select the result on the page as character string.
However when I tried to use a bit more complex example <math>\frac{x^n-1}{x-1}</math> or <math>\sum_{n=0}^\infty \frac{x^n}{n!}</math> It did not generate what I expected: created something that looks raw result.
I've tried these formulae on Wikipedia as I've got these examples from there and it works there on the way that it creates an image. I can't figure out what can be missing part of my setup.
OS: Mandriva Linux 2007 Installed all the latex related packages (wonder if Mandriva's latex is AMS-Latex or not and this can cause the problem but I don't know how to check) Any idea where to look for the problem and solution?
Thanks, Laszlo
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Finally I've resolved the problem by removing the following lines from LocalSettings.php and letting the system use the defaults, plus disabling safe mode image upload.
$wgUploadPath = "{$wgScriptPath}/images"; $wgMathPath = "{$wgUploadPath}/math"; $wgMathDirectory = "{$wgUploadDirectory}/math"; $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
Laszlo Gal wrote:
I tried to dig further into the problem and started playing with my preference to change Math to : always render to png. and now everything is in raw. When I right click on any raw output and select View Image (Firefox 2.0.0.1) it says:
Not Found
The requested URL /wikimtest/images/math/d/8/c/d8c9c398f3f4a137eb1aa767d49fde43.png was not found on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.3 (Mandriva Linux/PREFORK-1mdv2007.0) Server at mymachine.homelinux.org Port 80
It seems that the png generation is not working. Any help would be greatly appreciated, Laszlo
Laszlo Gal wrote:
I went through all the steps of http://meta.wikimedia.org/wiki/Troubleshooting_math_errors to set up mathematical formula rendering on my wiki: = Compiled texvc
I've activated <math> support by
- adding the following lines to LocalStettins.php
$wgUseTeX = true; $wgUploadPath = "{$wgScriptPath}/images"; $wgMathPath = "{$wgUploadPath}/math"; $wgMathDirectory = "{$wgUploadDirectory}/math"; $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
and made the appropriate directories writable to apache user, then tested with the following simple examples:
<math>1</math> <math>\sin(x) + \ln(y)</math> <math>F(x) - \epsilon </math> <math>E = mc^2</math>
and it works by generating html where I can select the result on the page as character string.
However when I tried to use a bit more complex example <math>\frac{x^n-1}{x-1}</math> or <math>\sum_{n=0}^\infty \frac{x^n}{n!}</math> It did not generate what I expected: created something that looks raw result.
I've tried these formulae on Wikipedia as I've got these examples from there and it works there on the way that it creates an image. I can't figure out what can be missing part of my setup.
OS: Mandriva Linux 2007 Installed all the latex related packages (wonder if Mandriva's latex is AMS-Latex or not and this can cause the problem but I don't know how to check) Any idea where to look for the problem and solution?
Thanks, Laszlo
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org