## Math markup

Need the mods or admins to do something for you? Post here. Read the "About" post first.

Moderators: Magistrates, Prelates, Moderators General

### Re: Math markup

b.i.o wrote:It's TeX LaTeX, so that's what to look around for if anyone else was wondering.

Thanks very much... all is worked out and prettified now...
Last edited by Lenary on Thu Apr 24, 2008 1:41 pm UTC, edited 1 time in total.
My Tumblog

you = me (awesome + clothes)
solve for awesome if you're a hot girl
Spoiler:
awesome = \frac{you}{me} - clothes

Lenary

Posts: 151
Joined: Fri Apr 18, 2008 9:00 am UTC
Location: Edinburgh, SCOTLAND

### Re: Math markup

I wouldn't worry about TeX, I'd head straight to LaTeX if I were you.
ameretrifle wrote:Magic space feudalism is therefore a viable idea.

jestingrabbit

Posts: 5719
Joined: Tue Nov 28, 2006 9:50 pm UTC
Location: Sydney

### Re: Math markup

Right. Not sure what I was thinking (or maybe I just wasn't thinking). Fixed my original post so I don't confuse anyone...

b.i.o
Green is the loneliest number

Posts: 2520
Joined: Fri Jul 27, 2007 4:38 pm UTC
Location: Hong Kong

### Re: Math markup

So, rather large problem with jsMath. I disabled/enabled it globally testing out options to help the person in this thread.

Now though, whenever I load a thread with jsMath stuff in it, I get what looks like a forum error page that says 'Information: The requested topic cannot be found,' (this thread is only loading for me to post this because noscript is on). Anyone have any ideas?

It flashes the actual thread page for half a second or so, then goes to this url, which is where it gives me the error.

b.i.o
Green is the loneliest number

Posts: 2520
Joined: Fri Jul 27, 2007 4:38 pm UTC
Location: Hong Kong

### Re: Math markup

Indeed. Having clicked on "Go Global", I am now forced to navigate through jsMath/jsMath-global.html?http%3A//forums.xkcd.com/jsMath/test/ instead of through normal url's, when I want to avoid the error b.i.o. just described.

And clicking on "Go Local" doesn't seem to have any effect at all, so I don't see an easy way to undo what I've done. (I'm sure I could fiddle around a bit and change the settings back, but it seems rather bad for there to be one button users can click on which suddenly makes any thread with math markup no longer show up...)

Edit: Okay, if you make the terrible mistake of clicking on "go global", you have to go to the above url and then change "use global" to "never" in the jsMath control panel. Then by going back to the normal forum url you should be back in local mode, which at least doesn't automatically take you to a page that doesn't exist.
If this post has math that doesn't work for you, use TeX the World for Firefox or Chrome

(cis male/he/him/his)

gmalivuk
A debonaire peeing style

Posts: 22749
Joined: Wed Feb 28, 2007 6:02 pm UTC
Location: Here and There

### Re: Math markup

There we go, fixed now, thanks gmalivuk .

b.i.o
Green is the loneliest number

Posts: 2520
Joined: Fri Jul 27, 2007 4:38 pm UTC
Location: Hong Kong

### Re: Math markup

\hat H \psi\left(\mathbf{r}, t\right) = i \hbar \frac{\partial \psi}{\partial t} \left(\mathbf{r}, t\right)

Great Scott, it works!
LaTeX \ \heartsuit
...suffer from the computer disease that anybody who works with computers now knows about. It's a very serious disease and it interferes completely with the work. The trouble with computers is you play with them. They are so wonderful. - Richard Feynman

Minerva

Posts: 927
Joined: Sat Nov 11, 2006 2:58 pm UTC
Location: Australia

### Re: Math markup

mathmagic wrote:Is it going to be compatible with subsilver? I really, *really* don't like prosilver.

Seconded. Prosilver is ugly! And wastes so much space in the cell with the username/avatar/etc. Do not want.
poxic wrote:You suck. And simultaneously rock. I think you've invented a new state of being.

'; DROP DATABASE;--

Posts: 3284
Joined: Thu Nov 22, 2007 9:38 am UTC
Location: Midwest Alberta, where it's STILL snowy

### Re: Math markup

Well, jsMath is compatible with subsilver2 in the sense that it doesn't give a crap about skins. It only cares about the math tags, which work fine with both styles. I've made a little greasemonkey script to load it. It's here in case someone wants to have it.
Disclaimer: This is my first greasemonkey script, so there might be some WTFs, but it works, so whatever.

jyripyy

Posts: 15
Joined: Sun Sep 16, 2007 11:47 am UTC
Location: Finland

### Re: Math markup

Hurrah! It works! You are now my hero.

Master Gunner

Posts: 546
Joined: Thu Jul 19, 2007 1:40 am UTC

### Re: Math markup

++\$_
Mo' Money

Posts: 2370
Joined: Thu Nov 01, 2007 4:06 am UTC

### Re: Math markup

oh em gee.

That's incredible and awesome and amazing and...
Spoiler:
Code: Select all
_=0,w=-1,(*t)(int,int);a()??<char*p="[gd\~/d~/\\b\x7F\177l*~/~djal{x}h!\005h";(++w<033)?(putchar((*t)(w??(p:>,w?_:0XD)),a()):0;%>O(x,l)??<_='['/7;{return!(x%(_-11))?x??'l:x^(1+ ++l);}??>main(){t=&O;w=a();}

Qoppa

Posts: 694
Joined: Sat Nov 24, 2007 9:32 pm UTC
Location: Yes.

### Re: Math markup

jyripyy wrote:Well, jsMath is compatible with subsilver2 in the sense that it doesn't give a crap about skins. It only cares about the math tags, which work fine with both styles. I've made a little greasemonkey script to load it. It's here in case someone wants to have it.
Disclaimer: This is my first greasemonkey script, so there might be some WTFs, but it works, so whatever.

It works for me!

Yay, subsilver and jsMath....
masher

Posts: 822
Joined: Tue Oct 23, 2007 11:07 pm UTC
Location: Melbourne, Australia

### Re: Math markup

jyripyy wrote:Well, jsMath is compatible with subsilver2 in the sense that it doesn't give a crap about skins. It only cares about the math tags, which work fine with both styles. I've made a little greasemonkey script to load it. It's here in case someone wants to have it.
Disclaimer: This is my first greasemonkey script, so there might be some WTFs, but it works, so whatever.

Thank you so much!
zenten

Posts: 3798
Joined: Fri Jun 22, 2007 7:42 am UTC

### Re: Math markup

Too cool.
I'm looking forward to the day when the SNES emulator on my computer works by emulating the elementary particles in an actual, physical box with Nintendo stamped on the side.

"With math, all things are possible." —Rebecca Watson

skeptical scientist
closed-minded spiritualist

Posts: 6152
Joined: Tue Nov 28, 2006 6:09 am UTC
Location: San Francisco

### Re: Math markup

While it is great that it can be made compatible with subsilver, the default for a lot of people is subsilver without the greasemonkey script. For those people the pretty math markup is virtually unreadable.

Is there any chance that subsilver will be edited to include math markup by default?

Edit: I was wrong about what the default is.
Some of us exist to find out what can and can't be done.

Others exist to hold the beer.
btilly

Posts: 1877
Joined: Tue Nov 06, 2007 7:08 pm UTC

### Re: Math markup

Thanks jyripyy!
One of the painful things about our time is that those who feel certainty are stupid, and those with any imagination and understanding are filled with doubt and indecision - BR

Last edited by JHVH on Fri Oct 23, 4004 BCE 6:17 pm, edited 6 times in total.

Yakk
Poster with most posts but no title.

Posts: 10509
Joined: Sat Jan 27, 2007 7:27 pm UTC
Location: E pur si muove

### Re: Math markup

btilly wrote:While it is great that it can be made compatible with subsilver, the default for a lot of people is subsilver without the greasemonkey script. For those people the pretty math markup is virtually unreadable.

Is there any chance that subsilver will be edited to include math markup by default?

Edit: I was wrong about what the default is.

No, subsilver2 is too broken to be maintainable.

davean
Site Ninja

Posts: 2446
Joined: Sat Apr 08, 2006 7:50 am UTC

### Re: Math markup

jsmath broke for me. The font size dropped back to 100%. Not a big deal I thought, but I can't change it back. I open up the jsmath box in the bottom corner and go options, but nothing happens when I change anything there because what I change doesn't save. All the boxes are unchecked, and I seem to remember there being at least a few checked. Again, if I check any of the boxes, nothing happens and if I go back into the options they've all reverted back to being not checked and 100% math scaling.

Any ideas?

EDIT: The problem seems to be coming from the subsilver greasemonkey script, even when running prosilver. I switched back to prosilver, and that didn't work until I disabled the greasemonkey script. What I find confusing is that it worked fine for a few days before breaking....
Code: Select all
_=0,w=-1,(*t)(int,int);a()??<char*p="[gd\~/d~/\\b\x7F\177l*~/~djal{x}h!\005h";(++w<033)?(putchar((*t)(w??(p:>,w?_:0XD)),a()):0;%>O(x,l)??<_='['/7;{return!(x%(_-11))?x??'l:x^(1+ ++l);}??>main(){t=&O;w=a();}

Qoppa

Posts: 694
Joined: Sat Nov 24, 2007 9:32 pm UTC
Location: Yes.

### Re: Math markup

Nice catch, Qoppa. I've uploaded a fixed version (same link as the old one). Should work now.
The control panel broke down because the greasemonkey script injected a new instance of jsMath into the control panel's script (loaded in a hidden iframe) causing it to lose the reference to the parent window's jsMath, which isn't a good thing.
Luckily it had a simple solution: Added a new exclude rule for http://forums.xkcd.tld/jsMath/*

jyripyy

Posts: 15
Joined: Sun Sep 16, 2007 11:47 am UTC
Location: Finland

### Re: Math markup

Excellent, thank you! Let's see if it stays this time.
Code: Select all
_=0,w=-1,(*t)(int,int);a()??<char*p="[gd\~/d~/\\b\x7F\177l*~/~djal{x}h!\005h";(++w<033)?(putchar((*t)(w??(p:>,w?_:0XD)),a()):0;%>O(x,l)??<_='['/7;{return!(x%(_-11))?x??'l:x^(1+ ++l);}??>main(){t=&O;w=a();}

Qoppa

Posts: 694
Joined: Sat Nov 24, 2007 9:32 pm UTC
Location: Yes.

### Re: Math markup

A lot of the stuff at Wikipedia's Help:Math works, since WP also uses LATEX for displaying math.
Random832

Posts: 2525
Joined: Wed Oct 10, 2007 4:38 pm UTC

### Re: Math markup

I noticed that my Firefox updated the Greasemonkey script that jyripyy wrote for this. What was the update exactly?
Axman: That, and have you played DX 10 games? It's like having your corneas swabbed with clits made out of morphine.
Pathway: cocks cocks cocks

Mathmagic
It's not as cool as that Criss Angel stuff.

Posts: 2926
Joined: Thu Nov 30, 2006 12:48 am UTC
Location: In ur fora posting in teh threads

### Re: Math markup

No, that was greasemonkey getting the update, not the script getting the update.
One of the painful things about our time is that those who feel certainty are stupid, and those with any imagination and understanding are filled with doubt and indecision - BR

Last edited by JHVH on Fri Oct 23, 4004 BCE 6:17 pm, edited 6 times in total.

Yakk
Poster with most posts but no title.

Posts: 10509
Joined: Sat Jan 27, 2007 7:27 pm UTC
Location: E pur si muove

### Re: Math markup

I'm going to go crazy. I have the jsmath stuff, I downloaded the prosilver style files. I got the typeset to render in Opera ok for a little while then it mysteriously stopped. Everything renders fine in Safari, but I hate Safari. After much googling I'm at wits end: how the junk do I get the LaTex script to render in Opera?

On another note, stuff like bold and italics doesn't show up when I browse the forum. Blargh!
hitokiriilh

Posts: 244
Joined: Fri Aug 10, 2007 9:15 pm UTC
Location: UVa

### Re: Math markup

hitokiriilh wrote:I'm going to go crazy. I have the jsmath stuff, I downloaded the prosilver style files. I got the typeset to render in Opera ok for a little while then it mysteriously stopped. Everything renders fine in Safari, but I hate Safari. After much googling I'm at wits end: how the junk do I get the LaTex script to render in Opera?

On another note, stuff like bold and italics doesn't show up when I browse the forum. Blargh!

Works fine in Opera 9.5 for me ... download the prosilver style files? What do you mean?

davean
Site Ninja

Posts: 2446
Joined: Sat Apr 08, 2006 7:50 am UTC

### Re: Math markup

Nvm...I'm just an idiot.
hitokiriilh

Posts: 244
Joined: Fri Aug 10, 2007 9:15 pm UTC
Location: UVa

### Re: Math markup

So this Echochamber thing has borked the math fonts so that I can't scale them to be bigger, and it makes them somewhat difficult to read. Did/does anybody else have this problem, and can it be fixed?
Axman: That, and have you played DX 10 games? It's like having your corneas swabbed with clits made out of morphine.
Pathway: cocks cocks cocks

Mathmagic
It's not as cool as that Criss Angel stuff.

Posts: 2926
Joined: Thu Nov 30, 2006 12:48 am UTC
Location: In ur fora posting in teh threads

### Re: Math markup

Mathmagic wrote:So this Echochamber thing has borked the math fonts so that I can't scale them to be bigger, and it makes them somewhat difficult to read. Did/does anybody else have this problem, and can it be fixed?

Have you tried going to options and then picking a scaling factor like 150%? I just did that and it worked fine. For sure, your old settings, which were stored on a cookie I believe, aren't going to be in operation, but just reseting your options seems to work fine.
ameretrifle wrote:Magic space feudalism is therefore a viable idea.

jestingrabbit

Posts: 5719
Joined: Tue Nov 28, 2006 9:50 pm UTC
Location: Sydney

### Re: Math markup

jestingrabbit wrote:
Mathmagic wrote:So this Echochamber thing has borked the math fonts so that I can't scale them to be bigger, and it makes them somewhat difficult to read. Did/does anybody else have this problem, and can it be fixed?

Have you tried going to options and then picking a scaling factor like 150%? I just did that and it worked fine. For sure, your old settings, which were stored on a cookie I believe, aren't going to be in operation, but just reseting your options seems to work fine.

I tried rescaling them like before, but the settings don't get saved and nothing changes.
Axman: That, and have you played DX 10 games? It's like having your corneas swabbed with clits made out of morphine.
Pathway: cocks cocks cocks

Mathmagic
It's not as cool as that Criss Angel stuff.

Posts: 2926
Joined: Thu Nov 30, 2006 12:48 am UTC
Location: In ur fora posting in teh threads

### Re: Math markup

Well that's weird, because I change my options and make them last for longer than a session and they're right there when I come back and the fonts are resized and everything. Do you have cookie settings that might be interfering with jsmath saving your settings?
ameretrifle wrote:Magic space feudalism is therefore a viable idea.

jestingrabbit

Posts: 5719
Joined: Tue Nov 28, 2006 9:50 pm UTC
Location: Sydney

### Re: Math markup

I fixed what the problem was. I had to go into the Greasemonkey options and add some inclusions/exclusions to the webpages. I just copied the same inclusions/exclusions as the forums.xkcd.tld/* entries, but used the echochamber domain instead of the forums.xkcd domain.

All the scaling works properly and saves it in the options. Thanks for your help!
Axman: That, and have you played DX 10 games? It's like having your corneas swabbed with clits made out of morphine.
Pathway: cocks cocks cocks

Mathmagic
It's not as cool as that Criss Angel stuff.

Posts: 2926
Joined: Thu Nov 30, 2006 12:48 am UTC
Location: In ur fora posting in teh threads

### Re: Math markup

I installed the jsmath fonts, but I am still getting small boxes with As inside them for a lot of things. I went back and double checked that I had all of the fonts installed, and I do. Anyone have an idea as to what the problem could be? I'm on a Mac using Safari 4.

AwesomeJosh

Posts: 50
Joined: Mon Nov 30, 2009 2:16 pm UTC
Location: Washington DC

### Re: Math markup

They could be smilies. We're having some problems.
ameretrifle wrote:Magic space feudalism is therefore a viable idea.

jestingrabbit

Posts: 5719
Joined: Tue Nov 28, 2006 9:50 pm UTC
Location: Sydney

### Re: Math markup

Could you provide a link to some of the posts that are giving you this problem?
If this post has math that doesn't work for you, use TeX the World for Firefox or Chrome

(cis male/he/him/his)

gmalivuk
A debonaire peeing style

Posts: 22749
Joined: Wed Feb 28, 2007 6:02 pm UTC
Location: Here and There

### Re: Math markup

Well, I was going to link a post but suddenly, after doing absolutely nothing to my browser or fonts, they started working correctly. I'm perplexed, but the problem appears to have resolved itself, so I'm happy!

AwesomeJosh

Posts: 50
Joined: Mon Nov 30, 2009 2:16 pm UTC
Location: Washington DC

### Maths Tags not working

I was wondering how to fix maths tags showing only the source text. They have been shown all fancily before but no longer.
Any ideas?
GrantSolar

Posts: 48
Joined: Mon Nov 16, 2009 7:19 pm UTC

### Re: Maths Tags not working

GrantSolar wrote:I was wondering how to fix maths tags showing only the source text. They have been shown all fancily before but no longer.
Any ideas?

Are you by any chance using subsilver? Try switching to one of the prosilver styles (or just log out, its the default) and look at it again. It works for me when I switch to prosilver.
The internet removes the two biggest aids in detecting sarcasm:
1)The tone of voice
2)the assumption that the other person is sane
Elvish Pillager wrote:See? All the problems in our society are caused by violent video games, like FarmVille.

Cynical Idealist

Posts: 1124
Joined: Mon Sep 15, 2008 10:48 pm UTC

Previous