@KennyTM: it is a subset anyway, I don't care about the how but about the if and my hopes to achieve something faster by proposing an actual solution didn't help anyway...
–
Tobias KienzlerJul 22 '10 at 15:50

I'd add theoryCS as another site where such support is needed critically.
–
SureshJul 22 '10 at 20:40

7

This question has come up on meta.stats and meta.math, and it's going to come up on the LaTeX site soon too. It'd be really nice to have some info from someone working on SE2.0 about whether this is in the works or not. These sites are all going to be seriously handicapped until this feature is added.
–
Noah SnyderJul 23 '10 at 4:11

4

I have to say I'm a little concerned about the total radio silence on this issue. our Theoretical Computer Science site will be a nonstarter without it
–
SureshJul 24 '10 at 17:26

2

We could use some help on this over at math.stackexchange ASAP.
–
Tom StephensJul 25 '10 at 21:45

2

It's the weekend. Silence is not surprising. Could one of the folks who understands the details of what mathoverflow did write up an answer to this question to make the implementation process somewhat easier/faster for them?
–
Larry WangJul 26 '10 at 0:27

I second the request for site specific script support. I follow two proposals for Biblical Hermeneutics (Interested? Commit here) and Biblical Text Criticism. For both it would be great to have automatic linking of bible references, done for example with this script:

Here's a rough outline of how we set things up at MathOverflow. As I understand it, only SO Inc. employees can perform administrative tasks (including loading javascript in the footer) on SE 2.0 sites, so this won't actually be useful to many people. But it should be pretty easy for SO to make into an option for SE sites. Some of it is crufty javascript workarounds that could be better implemented server side. Some of it is probably simply crufty because I'm not a javascript ninja; improvements are welcome.

We are currently using jsMath, but we'll be switching to jsMath's successor, MathJax, in the near future. The details will change slightly, but the basic idea will be the same.

Now decide if math on the current page should be rendered. Since math gets rendered by javascript, it could be annoying for people to see things jumping around as math is being rendered on the home page. We don't render math on the home page or questions page by default, but we provide a way to set a cookie so that math is always rendered.

If the current page is supposed to be handled by jsMath, then load all the appropriate scripts and walk through the page to render any math.

Note that our approach of loading a bunch of scripts by hand is a bad one, subject to weird timing issues. The right way to load jsMath is to use the easy loader and set a bunch of preferences in a config file that lives wherever the jsMath files live. This way is sensitive to the exact order in which the various files are loaded. For some reason I still don't understand, the easy loader didn't work for us. Hopefully we won't have any such problems with MathJax.

Also note that we have latex.mathoverflow.net point to a server we control. Obviously, if this approach were implemented on SE sites, the same server would host the jsMath files.

If the current page has a WMD editor, overwrite it with a custom version that renders math in the live preview (let me know if you want to know more details). Also append a checkbox which sets a cookie in case the user doesn't want math rendered in the live preview (it gets slow for some people). If they have the live preview disabled, give them a one-shot preview button.

If you're on a page where extra comments might be loaded, overwrite the javascript comments function with one that renders math after fetching additional comments from the server (let me know if you want more details).

@Larry: I don't like image-based solutions very much. One big advantage of MathJax is that it can render using HTML-CSS or MathML depending on browser capabilities and/or on a user preference cookie. You could also negotiate the content with the server, so it would definitely be nice to have some control server side. One way to speed things up with not much control over the server is to have it serve MathML and use MathJax to convert to HTML-CSS if necessary, which is much faster than converting from TeX to HTML-CSS, and if the user prefers MathML, you don't need to do anything.
–
Anton GeraschenkoJul 28 '10 at 6:46