Http://courses.coreservlets.com. HTML Hello World! My HTML Page Hello World!
Hello World
-
Upload
sarthak-chowdhuri -
Category
Documents
-
view
216 -
download
0
description
Transcript of Hello World
-
The First Use of Latex While Learning It
-
List of Contents
1 Text Part 21.1 Font . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.1.1 Font Size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21.2 Maths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2 Graphics Part 6
3 Defining 73.1 newcommand . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73.2 renewcommand . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
4 Tables and Matrices 8
5 Boxes 95.1 Normal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95.2 Advanced . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
6 color 10
1
-
Hello World in LATEX Document
Sary
May 28, 2014
1 Text Part
1.1 Font
1.1.1 Font Size
We experiment with style
Turns out its fun actually.
I have this in boldfaceI have this in italic
I have this emphasized
Its flushed right.
This is used to give gap
Fontsize
Fontsize
Fontsize
Fontsize
FontsizeThis is the set of natural numbers NFrom preamble we have y = mx+ 3
(x+ 1)[x+ 1]{x+ 1}
$50.50 was spent last day
2
-
(x2 + x+ 3
x+ 2
)x2 + x+ 3x+ 2
dy
dx
x=0
d2y
dx2
x=0
I have
1. speed
2. stamina
3. talent
I also have
power high
low
energydoggy huge
meow tiny
Not indentingIndenting
Spacing
a ba ba ba ba ba b
a b
3
-
> x=rnorm(20, 1.1, 2.4)
> epsilon=rnorm(20, 0, 1.8)
> a=2.5
> b=3
> y=a+(b*x)+epsilon
> data data
x y
[1,] 3.3019975 10.5501417
[2,] -0.3212579 1.8841905
[3,] 2.8453046 9.8698746
[4,] -0.3486842 -0.8780308
[5,] -2.3812394 -1.7281941
4x2 = 12
x2 = 3
x 1.732
WOW
(x) =
{x : 0 x
-
x =9+
81 12010
=9+
39i
10
x3 + y3 = 0
Recall from previous day
x2 + y2 = 0 (1)
x3 + y3 = 0 (2)
The solution tox = 5 is x = 25
Now suppose we want to evaluate the sumni=0
i3. We also have
2pi0
sin tdt = 0
2pi0
2pi0
sin p sin qdpdq = 0
+ + + 0
x + y z = 3x
nx
2
1 +2
1 +2
1 +2
1
cos 90 = 0(n 1r 1
)5
-
a+ bi
9 3 mod 69 3 (mod 6)9 3 mod 69 3 (6)
Now to deal with matrices
2 Graphics Part
We can introduce .jpg/.pdf/.png/.gif images in our document after saving it in the samedirectory.
6
-
3 Defining
3.1 newcommand
This is writing text
a2 + b2 = c2
cat dog rat2
3+
3
2
3.2 renewcommand
Has to be used before the use of the command.
7
-
4 Tables and Matrices
x 1 2 3 4f(x) 1 4 9 16
Name Lap1 Lap2 Result Money
Sary 12s 13.5s Won on a very narrow mar-gin as we can see
100
Gary 11s 15.5s Lost 0
Table 4.1 1: Race Results
1 2 30 1 20 0 10 0 1
A =
1 2 30 1 20 0 10 0 1
A =
1 2 30 1 20 0 10 0 1
|A| =1 2 30 1 20 0 1
formula
= 1.1.1
8
-
= 1
1 2 30 1 20 0 10 0 1
1 2 30 1 20 0 10 0 1
5 Boxes
5.1 Normal
I can create basic boxes for text like this . Notice that theres a 2in widespace with like this in the middle of it.
If I want to put a box around the text, I can use a frame box. The result lookslike this .
I can also justify the text to the right within a box like so or like so .We can also use quick versions of these. We can just do this or
this to create a quick box thats exactly the size of what we put in it.
5.2 Advanced
&&
I like using parbox to createfunny little boxes of text allover my page.Aligned withbottom CURRENT LINE. Aligned with top.
Centered. CURRENT LINE
You probably got a few Overfull orUnderfull warnings when you type-set this. Sometimes narrow boxeswill do that; if youre happy withthe output, dont sweat it.
9
-
6 color
i am getting a hang of it
This is colourful :P
10
-
Wow its really blue
11