Manual talk:Math

Where can I download the extension?
Searching for "texvc" in the english wikipedia shows me that:

"Like the rest of MediaWiki, it is available under the terms of the GNU GPL from the MediaWiki site."

When I click the link to the MediaWiki site, I can't find anything about a texvc download. If I type "texvc" into the search field, I come to this site. But I can't find a hint how and where I can download the software. 84.134.179.36 21:23, 18 June 2007 (UTC)

texvc is included with the MediaWiki download. See the "math" directory under your installation. There's a README for how to make texvc. Kaolin 00:59, 17 February 2008 (UTC)

How to set permissions on newly rendered png's?
For some security reasons we drive php as cgi-script using suphp. So all the mediawiki stuff is executed under a userid different from wwwrun. Since texvc is started via php, the resulting files are owned by this userid, too. This is nice, but the file permissions of the png-graphics is read/write only for the owner. As the pngs are loaded without php, wwwrun must have read access. I tried to fix this using acls on all the directories containing the math-graphics but with no effect. The resulting files are read/writeable only by the files owner. Any idea how to avoid this?

I think the easiest place would be to add a system/exec chmod command in includes/Math.php Kaolin 01:03, 17 February 2008 (UTC)

The 'math temp directory'
Failed to parse (Can't write to or create math temp directory)

It seems that the above stated is a common error message people get after compiling texvc and enabling $wgUseTeX in LocalSettings.php.

Unfortunately I couldn't find a solution to the problem on the web (but several error messages in wikis around the world...) and the README file in the math subdirectory of the wiki installation only states

Ensure that the temporary and math directories exist and can be written to by the user account the web server runs under

But it doesn't say what temporary directory is meant. Creating tmp, temp, temporary as well as math/tmp, math/temp, math/temporary, all with 777, does not help. Could anyone please say which directory is meant and how the permissions should be set to make it work?

I installed the last stable MediaWiki (1.11.0) locally, running MacOS X 10.4.10. --Ileo 11:27, 1 November 2007 (UTC)

After looking through includes/Math.php I found that the directory Mediwiki wants is "images/tmp". I chown'd the images directory to apache, and it was then happy to create the directory for me. Kaolin 01:02, 17 February 2008 (UTC)


 * My images folder contains both a /math folder and a /tmp folder. My /math folder was set to 777 but not /tmp. On changing the permissions of /tmp from 755 to 777, the error message cleared. Now I have a new error message to solve:

Failed to parse (PNG conversion failed; check for correct installation of latex, dvips, gs, and convert)
 * It looks like some help can be found on the page "Troubleshooting math display errors" --93.97.21.214 18:11, 2 March 2009 (UTC)


 * I think that the solution to this issue is addressed in Manual:Troubleshooting math display errors. Jdpipe 07:37, 13 May 2009 (UTC)

Wiki at host
Is there any way to get this up and running if your wiki is located at a host? Thanks, Guido den Broeder 20:56, 9 March 2009 (UTC)

This manual page could be more helpful
I came here directly from the FAQ page, because I wanted my wiki to show mathematical formulae.

Here it says that "To use TeX formulas in MediaWiki, you have to build and configure the texvc program". This is actually not true. Texvc is one way of having LaTeX formulae in MediaWiki, and arguably not the easiest, especially if your wiki is on a host and/or you have limited experience with or access to the shell.

Sure, it is what Wikipedia is using, but many private wikis do not have the same requirements.

The other problem I have with this manual page is that it (correctly) links to for help on math syntax, and then spends 90% of the page showing a few syntax examples.

The real instructions are supposed to be found in the linked Manual:Enable TeX. Alas, even that page fails to deliver&mdash;see my other comment here.

I propose we merge/replace this page with the much more useful Mediawiki and LaTeX on a host with shell access plus this other fine but slightly disorganized page.

I shall wait for a couple of weeks and will do that if there are no objections. Thanks. Hopefully acceptable username 01:20, 8 November 2009 (UTC)


 * I object. This page is referenced from the FAQ as the place to read about the extension. The FAQ states: MediaWiki allows embedded math formulas via [...] texvc [...]. See Manual:Math for setup instructions. In my view, this page is supposed to explain the usage of the  tag; it's not full detail on the installation of texvc, nor is it a complete reference for the math syntax. But I think it probably still has a place. I note also that this page is the top ranking for a google search for "mediawiki math syntax". Jdpipe 23:48, 8 November 2009 (UTC)

Thank you.

You say, "This page is referenced from the FAQ as the place to read about the extension". I must disagree with your interpretation. The FAQ is aimed at MediaWiki installers/administrators, not end-users. The question reads, "How do I enable embedded math formulas?", as opposed to "How do I embed mathematical formulae in wikitext once they have been enabled?", and it definitely does not read, "What's the syntax for LaTeX formulae?". The answer in the FAQ, as you quoted, reads (bold mine) "See Manual:Math for setup instructions", and not "end-user instructions".

The official page for "meadiawiki math syntax" is here:. I don't propose we remove the link to that page from this page, but this should not become a poor-man's duplicate of that page. (And indeed the examples in this page are pretty bad already.)

What I propose is to either point the FAQ to another page, or to change the contents of this page to actually answer the question. Thanks. Hopefully acceptable username 11:34, 14 November 2009 (UTC)