ATAR Notes: Forum

Administration => Site Discussion => General Site Discussion => Topic started by: joshuamorgan on December 09, 2007, 04:21:53 pm

Title: LaTeX tutorial
Post by: joshuamorgan on December 09, 2007, 04:21:53 pm
I've come to know LaTeX somewhat intimately over the past year - I've been typesetting some of my Methods assignments and notes using it (my handwriting is terrible!). Here are some of the things I commonly used, feel free to contribute more. A list of LaTeX mathematical symbols is available at http://amath.colorado.edu/documentation/LaTeX/Symbols.pdf.

Fractions

Code: [Select]
\frac{4}{5}


Trigonometric Functions

Code: [Select]
\sin x

Code: [Select]
\cos x

Code: [Select]
\tan x

Logarithms and Indices

Code: [Select]
\log_{2} 6

Code: [Select]
10^{20}

Code: [Select]
\sqrt{36}

Limits

Code: [Select]
\lim_{x\to\infty}

Elementary Arithmetic

Code: [Select]
4 + 5

Code: [Select]
4 - 5

Code: [Select]
4 \times 5

Code: [Select]
4 \div 5
Title: Re: LaTeX tutorial
Post by: AppleXY on December 09, 2007, 05:38:18 pm
another great tutorial site:

http://www.artofproblemsolving.com/LaTeX/AoPS_L_GuideSym.php

:)
Title: Re: LaTeX tutorial
Post by: Daniel15 on December 09, 2007, 07:22:39 pm
Thanks Josh, this is definitely helpful :)

Quote
I've been typesetting some of my Methods assignments and notes using it (my handwriting is terrible!)
My handwriting's bad too :P
I used to use the equation editor in OpenOffice for formatting equations :D
Title: Re: LaTeX tutorial
Post by: humph on December 17, 2007, 04:01:12 pm
anyone here use mathtype? you use it with word, but it's much better than equation editor.
Title: Re: LaTeX tutorial
Post by: Collin Li on December 17, 2007, 05:37:45 pm
anyone here use mathtype? you use it with word, but it's much better than equation editor.

Is it commercial software? :(
Title: Re: LaTeX tutorial
Post by: humph on December 17, 2007, 06:11:39 pm
well yes, but as if you wouldn't bittorrent...
Title: Re: LaTeX tutorial
Post by: /0 on December 19, 2007, 02:57:12 am
Wait, so we have LaTeX on the board? What are the tags for it?
Title: Re: LaTeX tutorial
Post by: Collin Li on December 19, 2007, 08:12:22 am
Wait, so we have LaTeX on the board? What are the tags for it?

Code: [Select]
[tex]<insert LaTeX here>[/tex]
Title: Re: LaTeX tutorial
Post by: AppleXY on December 19, 2007, 03:17:30 pm
anyone here use mathtype? you use it with word, but it's much better than equation editor.

Yeah, I had MathType for a year now, its great :)
Title: Re: LaTeX tutorial
Post by: Daniel15 on December 19, 2007, 05:50:25 pm
Wait, so we have LaTeX on the board? What are the tags for it?
http://freestudynotes.com/VCEforum/index.php/topic,807.0.html

anyone here use mathtype? you use it with word, but it's much better than equation editor.

Yeah, I had MathType for a year now, its great :)
I used to use MathType when I used Microsoft Office, but IMO the equation editor in OpenOffice is better :)
Title: Re: LaTeX tutorial
Post by: excal on December 22, 2007, 07:49:36 pm
If only this board supported LaTeX built in...
Title: Re: LaTeX tutorial
Post by: Collin Li on December 22, 2007, 08:03:06 pm
If only this board supported LaTeX built in...

It is.

Code: [Select]
[tex]\mbox{Hello world}[/tex]
Title: Re: LaTeX tutorial
Post by: phagist_ on December 24, 2007, 01:42:15 pm
Could you possibly make it that so when you click on the generated text it gives you the source code?
i.e see here

Cheers :)
Title: Re: LaTeX tutorial
Post by: Daniel15 on December 24, 2007, 09:23:03 pm
phagist_, I'll see what I can do :)
For now, you can click the "Quote" link next to a post and then look in the quote for the code. Or, right-click the image and view its properties, the LaTeX expression will be present in the URL, after the ?

For example:

http: //stuff.daniel15.com/cgi-bin/mathtex.cgi?%5Cmbox{Hello%20world}
Title: Re: LaTeX tutorial
Post by: mozart on January 13, 2008, 01:12:01 am
how do we apply these latex symbols in posts, do we just paste them in after the number?
Title: Re: LaTeX tutorial
Post by: Collin Li on January 13, 2008, 01:17:13 am
how do we apply these latex symbols in posts, do we just paste them in after the number?

By using the "tex" BBCode:

Code: [Select]
[tex](x+2)^5 = 7[/tex]
Title: Re: LaTeX tutorial
Post by: /0 on January 13, 2008, 05:07:23 pm
Test...test

Code: [Select]
\begin{vmatrix} a & b & c \\
d & e & f \\
g & h & i \end{vmatrix}



Code: [Select]
\begin{pmatrix} \Alpha & \Beta & \Gamma & \Delta \\
\Epsilon & \Zeta & \Eta & \Theta \end{pmatrix}



Code: [Select]
\overbrace{Hello\ World}^{Heaven} \equiv \underbrace{Hello\ World}_{Heck}


Hey how come my second one doesn't work??
Title: Re: LaTeX tutorial
Post by: Collin Li on January 13, 2008, 05:34:52 pm
Your second one works if you replace it with the lower-case versions. I'm not sure why some of the upper-case ones are missing.

Title: Re: LaTeX tutorial
Post by: Mao on January 13, 2008, 05:42:15 pm
Title: Re: LaTeX tutorial
Post by: Collin Li on January 13, 2008, 05:46:11 pm


Title: Re: LaTeX tutorial
Post by: /0 on January 13, 2008, 08:02:43 pm


Title: Re: LaTeX tutorial
Post by: mozart on January 13, 2008, 08:06:15 pm
my first time using latex, let me experiment.

"tex"3   \alpha   \beta\nleq
Title: Re: LaTeX tutorial
Post by: mozart on January 13, 2008, 08:06:40 pm
wtf it didn't work, how the hell do you make it work!
Title: Re: LaTeX tutorial
Post by: Collin Li on January 13, 2008, 08:07:50 pm
Use modify instead of double posting please.

You have to write them in BBCode tags.

Code: [Select]
[tex]Insert code here[/tex]
Just like how
Code: [Select]
[b]Bold text[/b] gives you: Bold text
Title: Re: LaTeX tutorial
Post by: mozart on January 13, 2008, 08:13:32 pm
oh yer sorry about that,.

is there a code button somewhere?
Title: Re: LaTeX tutorial
Post by: Collin Li on January 13, 2008, 08:16:26 pm
Huh?

No, I don't think there is a button for it, you just have to type out manually:

Code: [Select]
[tex]\mbox{Some sample code here: }\alpha \beta \leq \frac{x}{y}[/tex]
Produces this:


If you're really confused, quote my post and have a look at how it's written out, and you should be able to work it out.
Title: Re: LaTeX tutorial
Post by: mozart on January 13, 2008, 08:19:42 pm
wow that's complicated!
Title: Re: LaTeX tutorial
Post by: Daniel15 on January 14, 2008, 04:21:38 pm
I'll add a button for it, just need an appropriate button image :)
Title: Re: LaTeX tutorial
Post by: Mao on January 14, 2008, 04:22:53 pm
(http://upload.wikimedia.org/math/f/4/0/f40956d65a776bf240c72ab157813b67.png)
Title: Re: LaTeX tutorial
Post by: Daniel15 on January 14, 2008, 04:37:54 pm
(http://upload.wikimedia.org/math/f/4/0/f40956d65a776bf240c72ab157813b67.png)
That's a bit big, it needs to be 23x22 (like all the normal buttons)
Don't worry, I'll try to find something  to use :D
Title: Re: LaTeX tutorial
Post by: Mao on January 14, 2008, 04:46:40 pm
(http://obsolete-chaos.wikispaces.com/space/showimage/tex.gif)

23x22 :D

and if you want the png version
Title: Re: LaTeX tutorial
Post by: Daniel15 on January 14, 2008, 05:36:52 pm
I tried making that GIF so it has a transparent background (which is what's needed for the BBCode buttons), but it didn't turn out so well. Oh well, at least there's a working button now :D

Edit: fixed it, looks a lot nicer now :)
Title: Re: LaTeX tutorial
Post by: Mao on January 14, 2008, 07:28:15 pm
lol i made the png so it was fully transparent! xD

oh well, that's cool

looks good daniel :D
Title: Re: LaTeX tutorial
Post by: Daniel15 on January 14, 2008, 07:45:58 pm
SMF requires transparent gifs, though ;)
Title: Re: LaTeX tutorial
Post by: Mao on January 14, 2008, 07:52:12 pm
export the png as a gif! xD

sorry i was lazy :P
Title: Re: LaTeX tutorial
Post by: Ahmad on January 17, 2008, 10:20:18 am
This might work as a button
Title: Re: LaTeX tutorial
Post by: joshuamorgan on January 17, 2008, 10:25:15 am
It's already been implemented, Ahmad ;)
Title: Re: LaTeX tutorial
Post by: hard on July 22, 2008, 05:18:49 pm
\alpha
Title: Re: LaTeX tutorial
Post by: hard on July 22, 2008, 05:19:13 pm
doesn't work :S how do we type it in?
Title: Re: LaTeX tutorial
Post by: Mao on July 22, 2008, 05:22:41 pm
you might want to read from http://vcenotes.com/forum/index.php/topic,864.msg22374.html#msg22374 (and a few posts on)