Bug #628
closedLaTeX support for MediaWiki
100%
Description
With our new group of Math Faculty coming on board the CAC, we should see if we can enable LaTeX support for MediaWiki. Scott, can you investigate the possibilities so that Boone can test them out?
Updated by scott voth almost 14 years ago
One extension that looks promising is Wiki2LaTeX - http://www.mediawiki.org/wiki/Extension:Wiki2LaTeX/Documentation
It seems that you may simply enclose mathematical formulas within math tags (<math> </math>)
The following article describes how a math teacher uses the LatexDoc extension (http://openwetware.org/wiki/User:Austin_J._Che/Extensions/LatexDoc) for student collaboration on a mediawiki installation: http://evergreen.loyola.edu/educkworth/www/latex_wiki.pdf
Updated by Boone Gorges almost 14 years ago
- Target version changed from 1.2 to 1.3
Thanks for looking into this, Scott. Wiki2LaTeX seems cool, but it looks like it is primarily for translating existing wiki pages into TeX, not allowing LaTeX input.
The WP plugin we are using to do LaTeX markup uses a parser hosted by wordpress.com. To make this MW extension work, we'll need to have a parser on the server. André, can I ask you to look into installing mathTeX? http://www.mediawiki.org/wiki/Mediawiki_and_LaTeX_on_a_host_with_shell_access
Updated by local admin almost 14 years ago
Boone Gorges wrote:
The WP plugin we are using to do LaTeX markup uses a parser hosted by wordpress.com. To make this MW extension work, we'll need to have a parser on the server. André, can I ask you to look into installing mathTeX? http://www.mediawiki.org/wiki/Mediawiki_and_LaTeX_on_a_host_with_shell_access
Boone, I believe we can use the hosted parser here too. http://www.mediawiki.org/wiki/LaTeX_on_a_shared_host
Updated by Boone Gorges over 13 years ago
- Status changed from Assigned to Resolved
- % Done changed from 0 to 100
Applied in changeset commit:"d69cc3f103cda59f5ea878e260fcd1ad636ad45f".
Updated by scott voth over 13 years ago
Hi guys - I have a question about LaTex on the Wiki. Is it working now? I tried enclosing formulas within <math> </math> tags but it didn't seem to work. I also saw in LocalSettings.php:
"If you have the appropriate support software installed, you can enable inline LaTeX equations:"
$wgUseTeX = false;
Does it just need to be turned on?
Updated by Boone Gorges over 13 years ago
- Status changed from Resolved to Assigned
- Target version changed from 1.3 to 1.2.1
You're right, Scott - I mistyped in that commit message. I didn't mean to close the ticket.
I just spent some time with it and managed to get inline TeX working with one of the public servers that André mentioned above. I'm going to reopen this ticket and commit a fix. (When you test it on your own installation, be sure that you disable the rich editor before entering the <math> tags.)
Updated by Boone Gorges over 13 years ago
- Status changed from Assigned to Resolved
Updated by Matt Gold over 13 years ago
Just FYI, and as noted in this ticket , there is currently no way for users to toggle editing preferences on the wiki,
Updated by Boone Gorges over 13 years ago
There is a "Disable rich editor" link above the editor. It just is not persistent.
Updated by Matt Gold over 13 years ago
Once it's disabled, though, it can't be re-enabled.
Updated by Boone Gorges over 13 years ago
It can if you refresh the page. If this is an issue, please open a separate bug ticket.
Updated by Matt Gold over 13 years ago
Thanks, Boone, but refreshing the page doesn't bring up an editing toggle box, at least for me (I disabled the rich-text editor long ago and have never been able to see a way to re-enable it).
The ticket linked above that I submitted for this bug is still open. Let's move further discussion of this issue there.
Updated by scott voth over 13 years ago
Yeah - what I notice is that you can disable the rich editor, then enter the LaTex code, save - and it works fine. But if you go back and save when you are in the Rich Editor - the LaTex code gets stripped away. I know that we have similar things happen with image captions that work initially, but get stripped by the Rich Editor.