Author Topic: LaTeX Mod  (Read 8586 times)

0 Members and 1 Guest are viewing this topic.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
LaTeX Mod
« on: October 20, 2007, 11:13:19 am »
We added a mod that parses LaTeX formulas directly on the board. Basically, use [tex]yourlatexstuff[/tex]. You can thank Sidoh for the mod!

[tex]This is a test[/tex]

Offline dark_drake

  • Mufasa was 10x the lion Simba was.
  • x86
  • Hero Member
  • *****
  • Posts: 2440
  • Dun dun dun
    • View Profile
Re: LaTeX Mod
« Reply #1 on: October 20, 2007, 01:00:24 pm »
I am [tex]\alpha[/tex] and [tex]\Omega[/tex]

Meh, works for me.
errr... something like that...

Offline Ender

  • x86
  • Hero Member
  • *****
  • Posts: 2390
    • View Profile
Re: LaTeX Mod
« Reply #2 on: October 20, 2007, 04:50:41 pm »
[tex]e^{1337}[/tex]

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: LaTeX Mod
« Reply #3 on: October 21, 2007, 12:03:04 am »
[tex]e=mc^2[/tex]
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: LaTeX Mod
« Reply #4 on: October 21, 2007, 12:27:52 am »
It seems my ISP is flaking right now.  I'm not sure what's up; I just noticed that it's down.  Hopefully they're just doing maintenance tonight and it'll be back up in the morning...

For the record, Joe, you should use "E", not "e".  Little e is used to denote eccentricity, which is a concept used in astrophysics.  :)

I suppose, if iago is up for it, I can change the mod to work locally.  It wouldn't require a whole lot of extra work, but iago would need to have the standard LaTeX tools, which, as far as I know, come standard with Slackware.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: LaTeX Mod
« Reply #5 on: October 21, 2007, 12:29:38 am »
There's nothing standard about my install. :)

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: LaTeX Mod
« Reply #6 on: October 21, 2007, 12:41:52 am »
There's nothing standard about my install. :)

Figures!

Well, my server seems to be back up anyway.  I'm pretty sure it was my ISP, though, because their website was down.

Offline Ender

  • x86
  • Hero Member
  • *****
  • Posts: 2390
    • View Profile
Re: LaTeX Mod
« Reply #7 on: October 21, 2007, 02:44:19 am »
[tex]e=mc^2[/tex]

That's only for an object at rest, too. In general it is

[tex]E = \sqrt{m^2 + p^2} = \gamma m[/tex]

where m is the rest mass and c is defined as 1 as usual.

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: LaTeX Mod
« Reply #8 on: October 21, 2007, 03:07:17 am »
First, I don't know how to use LaTeX. I'm guessing that you can type in any standard math equation? Is there a quick-start or "For Dummies" type paper on how to use it?

Ender, I suck at math (or more likely, physics). What does gamma mean?
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: LaTeX Mod
« Reply #9 on: October 21, 2007, 03:56:06 am »
LaTeX is a pretty extensive type-setting language.  It's used to write books, documents, etc.  There's a "Not-So-Short Introduction".

http://en.wikipedia.org/wiki/Mass-energy_equivalence#Background

Offline Chavo

  • x86
  • Hero Member
  • *****
  • Posts: 2219
  • no u
    • View Profile
    • Chavoland
Re: LaTeX Mod
« Reply #10 on: October 21, 2007, 04:19:03 am »
Little e is used to denote eccentricity, which is a concept used in astrophysics.

Also, its a constant ;)

Offline Ender

  • x86
  • Hero Member
  • *****
  • Posts: 2390
    • View Profile
Re: LaTeX Mod
« Reply #11 on: October 21, 2007, 06:34:49 am »
First, I don't know how to use LaTeX. I'm guessing that you can type in any standard math equation? Is there a quick-start or "For Dummies" type paper on how to use it?

Ender, I suck at math (or more likely, physics). What does gamma mean?

That's absurd. That doesn't mean you suck at math or physics. It just means you don't know something yet. Certainly, Gauss never knew Special Relativity. Does that mean he sucked at math and physics?

So [tex]\displaystyle \gamma = \frac{1}{1-\frac{v^2}{c^2}}[/tex] The RHS of the equation is annoying to write out, so physicists gave it a name.

Basically, if you're moving at speeds near the speed of light, then according to others: (1) your length contracts, (2) you become more "massive", and (3) time slows down for you. In other words: short, fat, and slow. This is just one example, which is others observing you. More generally, if a frame of reference is moving near the speed of light, its observations/measurements of objects differ from other frames of reference in terms of the time, length, and other things once thought immutable.

Gamma is a factor used in determining how much quantities like time, mass, energy, momentum, etc., change according to you and others.

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: LaTeX Mod
« Reply #12 on: October 21, 2007, 12:06:50 pm »
Also, its a constant ;)

Yes, yes, and Euler's number. :P

Offline Camel

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
    • BNU Bot
Re: LaTeX Mod
« Reply #13 on: October 22, 2007, 01:35:15 am »
Funny - I was just thinking it would be useful to set up a tex tag.

[tex]\frac{d}{dx}[f(x)]=\lim_{dx\to0}\frac{f(x+dx)-f(x)}{dx}[/tex]

<Camel> i said what what
<Blaze> in the butt
<Camel> you want to do it in my butt?
<Blaze> in my butt
<Camel> let's do it in the butt
<Blaze> Okay!

Offline Rule

  • x86
  • Hero Member
  • *****
  • Posts: 1588
    • View Profile
Re: LaTeX Mod
« Reply #14 on: October 22, 2007, 02:25:12 am »
So [tex]\displaystyle \gamma = \frac{1}{1-\frac{v^2}{c^2}}[/tex]

Missing a square root.

[tex]\displaystyle \gamma = \sqrt{\frac{1}{1-\frac{v^2}{c^2}}}[/tex]

Offline Ender

  • x86
  • Hero Member
  • *****
  • Posts: 2390
    • View Profile
Re: LaTeX Mod
« Reply #15 on: October 22, 2007, 02:45:17 pm »
So [tex]\displaystyle \gamma = \frac{1}{1-\frac{v^2}{c^2}}[/tex]

Missing a square root.

[tex]\displaystyle \gamma = \sqrt{\frac{1}{1-\frac{v^2}{c^2}}}[/tex]

Oh yeah, my bad.

Offline Camel

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
    • BNU Bot
Re: LaTeX Mod
« Reply #16 on: October 23, 2007, 03:26:10 pm »
[tex]girls := time \times money \newline
time := money \newline
girls = (money)^2 \newline
money = \sqrt{evil} \newline
girls = \sqrt{evil}^2 \newline
\therefore girls = evil[/tex]

iago: \n -> \\newline, or leave as \n, but definitely not <br/>! :)

<Camel> i said what what
<Blaze> in the butt
<Camel> you want to do it in my butt?
<Blaze> in my butt
<Camel> let's do it in the butt
<Blaze> Okay!

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: LaTeX Mod
« Reply #17 on: October 23, 2007, 03:44:44 pm »
Blame Sidoh, I only applied the patch.

I'm guessing that happens because it's SMF's default behaviour.

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: LaTeX Mod
« Reply #18 on: October 23, 2007, 04:51:36 pm »
[tex]girls := time \times money \newline
time := money \newline
girls = (money)^2 \newline
money = \sqrt{evil} \newline
girls = \sqrt{evil}^2 \newline
\therefore girls = evil[/tex]

iago: \n -> \\newline, or leave as \n, but definitely not <br/>! :)

Line breaks are replaced by <br /> for obvious reasons.  I can easily fix this, though.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: LaTeX Mod
« Reply #19 on: October 23, 2007, 06:06:36 pm »
Fixed, thanks to Sidoh. :)

Offline warz

  • Hero Member
  • *****
  • Posts: 1134
    • View Profile
    • chyea.org
Re: LaTeX Mod
« Reply #20 on: October 24, 2007, 06:03:53 pm »
[tex]hax[/tex]
http://www.chyea.org/ - web based markup debugger

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: LaTeX Mod
« Reply #21 on: October 24, 2007, 11:57:11 pm »
[tex]1337haX[/tex]

How do you make a Greek Chi (X)?
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: LaTeX Mod
« Reply #22 on: October 24, 2007, 11:58:53 pm »
[tex]\chi[/tex]?

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: LaTeX Mod
« Reply #23 on: October 25, 2007, 01:48:35 am »
[tex]\chi[/tex]?

[tex]Ha\chi[/tex] ?
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline Camel

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
    • BNU Bot
Re: LaTeX Mod
« Reply #24 on: October 25, 2007, 05:30:51 pm »
[tex]\alpha \beta \gamma \delta \epsilon \zeta \eta \theta \iota \kappa \lambda \mu \nu \xi \omicron \pi \rho \sigma \tau \upsilon \phi \chi \psi \omega[/tex]
[tex]A B \Gamma \Delta E Z H \Theta I K \Lambda M N \Xi O \Pi P \Sigma T \Upsilon \Phi X \Psi \Omega[/tex]

It would be easier to read, especially the lower case greek letters, if the fonts were larger.

<Camel> i said what what
<Blaze> in the butt
<Camel> you want to do it in my butt?
<Blaze> in my butt
<Camel> let's do it in the butt
<Blaze> Okay!