Project

General

Profile

Actions

Bug #628

closed

LaTeX support for MediaWiki

Added by Matt Gold over 13 years ago. Updated over 13 years ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
Wiki
Target version:
Start date:
2011-03-01
Due date:
% Done:

100%

Estimated time:
Deployment actions:

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?

Actions #1

Updated by scott voth over 13 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

Actions #2

Updated by Boone Gorges over 13 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

Actions #3

Updated by local admin over 13 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

Actions #4

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".

Actions #5

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?

Actions #6

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

Actions #7

Updated by Boone Gorges over 13 years ago

  • Status changed from Assigned to Resolved
Actions #8

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,

Actions #9

Updated by Boone Gorges over 13 years ago

There is a "Disable rich editor" link above the editor. It just is not persistent.

Actions #10

Updated by Matt Gold over 13 years ago

Once it's disabled, though, it can't be re-enabled.

Actions #11

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.

Actions #12

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.

Actions #13

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.

Actions

Also available in: Atom PDF