
-----------------------------------
rdrake
Fri Mar 30, 2007 7:21 pm

Math Pastebin
-----------------------------------
Since this board seems to lack support for writing mathematical equations that actually look good, I have decided to create a mathematical pastebin.  All you do is enter in your equation using LaTeX markup, hit Submit, then paste the link to the newly created equation.

I hope to add more features in the future (and a tutorial or quick reference).  If you have any suggestions, please reply here or PM me.  You can find it [url=http://freerange.compsci.ca/texbin/index.php]here.

Hopefully tutorial writers start using it as well, it would make those equations look much better :-).

-----------------------------------
Clayton
Fri Mar 30, 2007 9:01 pm

RE:Math Pastebin
-----------------------------------
just a quick example:

http://freerange.compsci.ca/texbin/pictures/2427ce02cc507cf688c6572669dec5e7.png

-----------------------------------
Brightguy
Fri Mar 30, 2007 9:26 pm

Re: Math Pastebin
-----------------------------------
http://freerange.compsci.ca/texbin/pictures/37f45d7bf10dbb4f6ff928195c2e8f59.png

Cool, there are occasional math questions here and a few times in the past I would have liked to use TeX markup.  The most convenient solution would be to add [tex] tags into the forum... (I thought I heard a rumour this was going to be a new feature.)

-----------------------------------
rdrake
Fri Mar 30, 2007 9:32 pm

Re: Math Pastebin
-----------------------------------
http://freerange.compsci.ca/texbin/pictures/37f45d7bf10dbb4f6ff928195c2e8f59.png

Cool, there are occasional math questions here and a few times in the past I would have liked to use TeX markup.  The most convenient solution would be to add Well Dan apparently tried to install it but ran into some issues.  This is actually based off some code from a phpBB mod that gives [tex][/tex] tags.  It would make a great addition directly into the forum for sure.

-----------------------------------
Brightguy
Fri Mar 30, 2007 10:13 pm

Re: Math Pastebin
-----------------------------------
Hmmm, the images don't preserve the proper baseline.  Knuth must be rolling in his grave.

...erm, the equivalent of that expression for someone who's still alive.  But seriously, take a look through the Computers and Typesetting series to have some idea of the level of detail he went through to make it look so good.  I was surprised at the amount of work that's been put into typography in general.

Also Freakman, weirdly the spacing around that equals sign is off... unless you manually changed the = from a relation character I'm not sure why that happened.

-----------------------------------
Brightguy
Fri Apr 06, 2007 11:41 pm

Re: Math Pastebin
-----------------------------------
Aw, what happened to the nice equations?  They're only temporary?

BTW: Whoever it was who messed up the quadratic equation, the math police would like a word with you.

-----------------------------------
Hikaru79
Sat Apr 07, 2007 1:06 am

Re: Math Pastebin
-----------------------------------
Does such a thing not already exist at http://www.mathbin.net/ ? Or did you have something different in mind?

EDIT: Oops, I hadn't realized you had already completed yours! I sort of skimmed the post and thought this was just an idea you were playing with :) Then I went back and saw your link to the completed product. It looks nice! My apologies.

Here's a suggestion. Make it be in \displaystyle mode by default. That makes the difference between this:
http://freerange.compsci.ca/texbin/pictures/b0220b5eb6ecaa9d06b937902a5444ee.png
and this:
http://freerange.compsci.ca/texbin/pictures/5830b2c654fb905842be1383c8e4b0c4.png

-----------------------------------
rdrake
Sat Apr 07, 2007 1:32 am

Re: Math Pastebin
-----------------------------------
Aw, what happened to the nice equations?  They're only temporary?Sorry, did a lot of testing and cleared some equations out.  They should stay there until eventually deleted.

BTW: Whoever it was who messed up the quadratic equation, the math police would like a word with you.I didn't do it!

Does such a thing not already exist at http://www.mathbin.net/ ? Or did you have something different in mind?

EDIT: Oops, I hadn't realized you had already completed yours! I sort of skimmed the post and thought this was just an idea you were playing with :) Then I went back and saw your link to the completed product. It looks nice! My apologies.

Here's a suggestion. Make it be in \displaystyle mode by default. That makes the difference between this:
http://freerange.compsci.ca/texbin/pictures/b0220b5eb6ecaa9d06b937902a5444ee.png
and this:
http://freerange.compsci.ca/texbin/pictures/5830b2c654fb905842be1383c8e4b0c4.pngExcellent suggestion, fixed.

-----------------------------------
Brightguy
Sun Apr 08, 2007 12:45 am

Re: Math Pastebin
-----------------------------------
Sorry, did a lot of testing and cleared some equations out.  They should stay there until eventually deleted.
The problem is, if they are deleted then any posts which use them will become basically unreadable.  I think if this is going to be used often we really need TeX support while posting.  What was the issue with it?  [url=http://www.forkosh.com/mimetex.html]mimeTeX is especially easy to install, though it doesn't look as good.

Also displaystyle is meant for equations on a line by their own, so that shouldn't be the default for in-line equations (which tend to be used more).

-----------------------------------
rdrake
Sun Apr 08, 2007 10:32 am

Re: Math Pastebin
-----------------------------------
Also displaystyle is meant for equations on a line by their own, so that shouldn't be the default for in-line equations (which tend to be used more).How does a checkbox for choosing between inline and not sound?

Keep the suggestions coming :-).

Edit:  I was working on a script that allowed external sites to display equations.  That is, the script would be passed the tex to render, it would render it, and the script would send out "application/png" or whatever it is now as its content header type, so a browser can display it.  Unfortunately time is scarce around exam time, and GD wouldn't create the image properly...

-----------------------------------
timmytheturtle
Tue Apr 10, 2007 1:33 am

RE:Math Pastebin
-----------------------------------
[tex]X &=& \frac{X^2}{\sqrt{Y}}[/tex]

-----------------------------------
Dan
Tue Apr 10, 2007 1:34 am

Re: Math Pastebin
-----------------------------------
rdrake, i bounded your tex2png script to a bbcode put your tex mombo jumbo here[/tex]

the bbcode is not listed in the "more tags" thing yet, but once it is fully tested i will add it to the list (this dose not effect peoleop using it tho).

-----------------------------------
rdrake
Tue Apr 10, 2007 7:34 am

RE:Math Pastebin
-----------------------------------
[tex]\int^{5}_{2} x^{2} 2x[/tex]Yay!

-----------------------------------
Brightguy
Tue Apr 10, 2007 10:10 am

Re: Math Pastebin
-----------------------------------
[tex]\displaystyle\sum_{n=1}^\infty \frac{1}{n^2} = \frac{\pi^2}{6}[/tex]

So, should the equations now stay indefinitely?

-----------------------------------
Hikaru79
Tue Apr 10, 2007 10:53 am

Re: Math Pastebin
-----------------------------------
[tex]\displaystyle e=\sum_{n=1}^\infty{\frac{1}{n!}}[/tex]

Dan, rdrake, you are both my heroes. I remember a thread from a few years back where a few of us were demanding LaTeX support; now we've finally got it! [tex]\displaystyle w00t[/tex]

-----------------------------------
Clayton
Tue Apr 10, 2007 11:14 am

Re: Math Pastebin
-----------------------------------
Hmm, the images aren't transparent in IE (although that's not really an issue, I'm just at school).

[tex]\frac{1}{2^{n}}[/tex]

:D

-----------------------------------
Dan
Tue Apr 10, 2007 1:12 pm

Re: Math Pastebin
-----------------------------------


In theroy, even if the image is deleted, it should be regenerated the next time some one trys to view the post.

-----------------------------------
rdrake
Tue Apr 10, 2007 1:20 pm

Re: Math Pastebin
-----------------------------------
Hmm, the images aren't transparent in IE (although that's not really an issue, I'm just at school).IE 6 can't handle transparent PNG images.  Too bad for it.

Brightguy, the only reason the images were deleted before was from me playing with a tex2gif script, where I changed output files to GIF.  Sadly all this testing really cluttered the pictures directory with garbage, so I had to remove it.  Like Dan said, even if deleted the pictures should be regenerated once they are called upon again.

Oh, and I want to test something (yes, this is what I intended).

[tex]\frac{1}{2[/tex]

Hm... I'll have to work on error handling sometime in the near future.

Oh (once again), empty tags will produce a generic result.

[tex][/tex]

-----------------------------------
rizzix
Tue Apr 10, 2007 11:39 pm

RE:Math Pastebin
-----------------------------------
Integrate this: 
[tex]\int dx[/tex]

-----------------------------------
Andy
Wed Apr 11, 2007 4:20 pm

Re: Math Pastebin
-----------------------------------
err x+c?

-----------------------------------
rdrake
Wed Apr 11, 2007 4:22 pm

RE:Math Pastebin
-----------------------------------
That would be the reasonable answer.

-----------------------------------
Brightguy
Mon Apr 16, 2007 1:55 am

Re: Math Pastebin
-----------------------------------
I'm not sure what's happening, but I was trying to post ax+by+cz+d=0 and the first term was left off: [tex]ax+by+cz+d=0[/tex]

Edit: [tex]{}ax+by+cz+d=0[/tex]
It looks like you're adding a control word without appending a space afterwards. :naughty:

Edit2: It's the \displaystyle you were supposed to remove. :wink:
