Clan x86

Announcements => [x86] Announcements => Topic started by: iago on October 20, 2007, 11:13:19 AM

Title: LaTeX Mod
Post by: iago 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]
Title: Re: LaTeX Mod
Post by: dark_drake on October 20, 2007, 01:00:24 PM
I am [tex]\alpha[/tex] and [tex]\Omega[/tex]

Meh, works for me.
Title: Re: LaTeX Mod
Post by: Ender on October 20, 2007, 04:50:41 PM
[tex]e^{1337}[/tex]
Title: Re: LaTeX Mod
Post by: Joe on October 21, 2007, 12:03:04 AM
[tex]e=mc^2[/tex]
Title: Re: LaTeX Mod
Post by: Sidoh 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.
Title: Re: LaTeX Mod
Post by: iago on October 21, 2007, 12:29:38 AM
There's nothing standard about my install. :)
Title: Re: LaTeX Mod
Post by: Sidoh on October 21, 2007, 12:41:52 AM
Quote from: iago on October 21, 2007, 12:29:38 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.
Title: Re: LaTeX Mod
Post by: Ender on October 21, 2007, 02:44:19 AM
Quote from: Joex86] link=topic=10509.msg133613#msg133613 date=1192939384]
[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.
Title: Re: LaTeX Mod
Post by: Joe 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?
Title: Re: LaTeX Mod
Post by: Sidoh 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://www.ctan.org/tex-archive/info/lshort/english/lshort.pdf)".

http://en.wikipedia.org/wiki/Mass-energy_equivalence#Background
Title: Re: LaTeX Mod
Post by: Chavo on October 21, 2007, 04:19:03 AM
Quote from: Sidoh on October 21, 2007, 12:27:52 AM
Little e is used to denote eccentricity, which is a concept used in astrophysics.

Also, its a constant ;)
Title: Re: LaTeX Mod
Post by: Ender on October 21, 2007, 06:34:49 AM
Quote from: Joex86] link=topic=10509.msg133628#msg133628 date=1192950437]
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.
Title: Re: LaTeX Mod
Post by: Sidoh on October 21, 2007, 12:06:50 PM
Quote from: Chavo on October 21, 2007, 04:19:03 AM
Also, its a constant ;)

Yes, yes, and Euler's number. :P
Title: Re: LaTeX Mod
Post by: Camel 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]
Title: Re: LaTeX Mod
Post by: Rule on October 22, 2007, 02:25:12 AM
Quote from: Ender on October 21, 2007, 06:34:49 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]
Title: Re: LaTeX Mod
Post by: Ender on October 22, 2007, 02:45:17 PM
Quote from: Rule on October 22, 2007, 02:25:12 AM
Quote from: Ender on October 21, 2007, 06:34:49 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]

Oh yeah, my bad.
Title: Re: LaTeX Mod
Post by: Camel 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/>! :)
Title: Re: LaTeX Mod
Post by: iago 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.
Title: Re: LaTeX Mod
Post by: Sidoh on October 23, 2007, 04:51:36 PM
Quote from: Camel 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/>! :)

Line breaks are replaced by <br /> for obvious reasons.  I can easily fix this, though.
Title: Re: LaTeX Mod
Post by: iago on October 23, 2007, 06:06:36 PM
Fixed, thanks to Sidoh. :)
Title: Re: LaTeX Mod
Post by: warz on October 24, 2007, 06:03:53 PM
[tex]hax[/tex]
Title: Re: LaTeX Mod
Post by: Joe on October 24, 2007, 11:57:11 PM
[tex]1337haX[/tex]

How do you make a Greek Chi (X)?
Title: Re: LaTeX Mod
Post by: Sidoh on October 24, 2007, 11:58:53 PM
[tex]\chi[/tex]?
Title: Re: LaTeX Mod
Post by: Joe on October 25, 2007, 01:48:35 AM
Quote from: Sidoh on October 24, 2007, 11:58:53 PM
[tex]\chi[/tex]?

[tex]Ha\chi[/tex] ?
Title: Re: LaTeX Mod
Post by: Camel 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.