You are on page 1of 8

Amudheesans first document

Amudheesan
21-August-2015

Contents
1 Section
1.1 Subsection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1
1

2 Equations
2.1 With equation number . . . . . . . . . . . . . . . . . . . . . . . .
2.2 Without equation number . . . . . . . . . . . . . . . . . . . . . .
2.3 With equation number again . . . . . . . . . . . . . . . . . . . .

1
1
1
1

3 Typesetting Math in LATEX

4 Using graphics in LATEX

5 Tables in LATEX

List of Figures
1

The Dark Knight . . . . . . . . . . . . . . . . . . . . . . . . . . .

ii

List of Tables
1
2

Sample Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sample Landscape Table . . . . . . . . . . . . . . . . . . . . . . .

iii

3
4

Section

Hello World!

1.1

Subsection

Structuring a document is easy !


Paragraph

First paragraph

Subparagraph

First subparagraph

First subparagraph without title


First paragraph without title

Equations

It is pretty easy to include equations here, and they are automatically numbered.
For an equation to not be numbered, the package amsmath has to be used.

2.1

With equation number


f (x) = x4 + 3x2 + 52

2.2

(1)

Without equation number


f (x) = x3

2.3

With equation number again


f (y) = 3xy + 4y 3

(2)

Typesetting Math in LATEX

The formula f (y) = 5y 2 is an example.


Not aligned:
1+2=3

(3)

1=32

(4)

Aligned:
1+2=3
1=32

(5)
(6)

f (x) = x2
1
g(x) =
x
Z b
1

F (x) =
3x3
a
"

 

x3

Using graphics in LATEX

In order to include images, like in figure 1, in the pdf we need to use the graphicx
package.

Figure 1: The Dark Knight


At some point, you will notice that the figure doesnt necessarily show up in
the exact place as you put your code in the .tex file. If your document contains
a lot of text, its possible that LATEXwill put the picture on the next page, or
any other page where it finds sufficient space. To prevent this behavior, its
2

necessary to set the float value for the figure environment. The float package (
usepackagefloat) allows to set the option to [H], which is even stricter than [h!].

Tables in LATEX

Tables are easy too!

Column 1
234
456
Beethoven

Table 1: Sample Table


Column 2
Combined Column
45
H A H A SepCol
1234
H A H A SepCol
1 1 1 1
1
Murdoch
2 2 2 2
2

Table 2: Sample Landscape Table


Column 1 Column 2
Combined Column
234
45
H A H A SepCol
456
1234
H A H A SepCol
1 1 1 1
1
Beethoven Murdoch
2 2 2 2
2

You might also like