Practice Tex
Practice Tex
MUZAFAR
Contents
1 INTRODUCTION 2
2 SUPERSCRIPTS 2
3 SUBSCRIPTS 2
4 GREEK LETTERS 3
5 TRIG FUNCTIONS 3
6 LOG FUNCTIONS 3
7 ROOTS 3
8 FRACTIONS 4
9 Limits 4
10 BRACKETING 4
11 LONG BRACKETS 4
12 MULTIPLE PARENTHESES 5
13 TABLES 6
14 ARRAYS 6
15 LISTS 6
16 ITEMIZES 7
1
19 PAPER SIZE 9
21 Macros 10
22 Graphics 11
24 International Accents 11
25 Calculus Notation 12
26 Conclusion 12
1 INTRODUCTION
Hello! This is my first LATEX document.
f (x) = ax2 + bx + c
is a quadratic equation.
2 SUPERSCRIPTS
a2
34
a2
3 SUBSCRIPTS
b126+t − 67
a1 , a2 , a3 , . . . , an
2
4 GREEK LETTERS
π
Π
α
∆
∇
∇P
∇ · V⃗
∇ × V⃗
A = πr2
5 TRIG FUNCTIONS
y = sin x
y = cos θ
y = cot δ
y = csc Γ
y = sin−1 ∆
y = arctan τ
6 LOG FUNCTIONS
y = ln x
y = log x
y = log6 x
7 ROOTS
√
2
√
7
9
√
q
1+ 1+x
3
8 FRACTIONS
2
3
2+x
3+y
√
3
5
q
4
1 + x1
3
Cup contains of water.
4
Cup contains 34 of water.
2
Cup contains of water.
4
Distributive Property states that a(b + c) = ab + ac, for all a, b, c ∈ R Dollar sign: This
costs us $40.50.
A Set: A = {a, b, c}
9 Limits
The limits are written as lim f (x) = L and lim f (x) → ∞.
x→∞ x→a
10 BRACKETING
Parenthesis:
(a)
Square brackets:
[a]
Curly brackets:
{a}
11 LONG BRACKETS
1+x
1+y
1+x
( )
1+y
1+x
1+y
4
1+x
1+y
1+x
1+y
1+x
1+y
dy
dx x=2
12 MULTIPLE PARENTHESES
!
1
2 2
1− 1+x
5
13 TABLES
x Variable 2 3
14 ARRAYS
t + 3x + 2 = 8 (1)
3x = 5 Hello there! (2)
5
x= (3)
3
t + 3x + 2 = 8
3x = 5 Hello there!
5
x=
3
15 LISTS
1. Apple
2. Boy
3. Cat
(a) Cat1
(b) Cat2
i. Cat2.1
ii. Cat2.2
A. Cat2.2.1
B. Cat2.2.2
4. Dog
6
i). Apple
ii). Boy
iii). Cat
7. Apple
8. Boy
9. Cat
16 ITEMIZES
Apple
Boy
Cat
– Cat1
– Cat2
* Cat2.1
* Cat2.2
· Cat2.2.1
· Cat2.2.2
Dog
v) Apple
w) Boy
x) Cat
7
17 TEXT AND DOCUMENT FORMATTING
17.1 Text Formatting
There once was a man named Ali bin Abi Talib (R.A).He was known for his bravery.He
was also known for his sword. He used to cut the enemies like a grass or any soft
material.
8
17.2 Text Size
This text is very large.
This text is very large .
This text is very large .
This text is very large .
This text is very large .
This text is very large .
This text is very large .
This text is very large .
This text is very large .
17.3 Text-justification
19 PAPER SIZE
Use the following packages for this;
9
20 Special Math Font
Uses amsfonts package.
21 Macros
It is used to define a new command that is saved globally to be used now and later
frequently. It has a handle that is used to call that command whenever needed.
Example1:
Let‘s use the handle, as a command for a rational function has been defined globally in
1+x
the preamble, y = 2 .
x + 3x + 7
\def\eqn1{y=\dfrac{1+x}{x^2+3x+7}}
Example2:
To create a new command for increasing the width of table cells just by using |C{5cm}|
handle bedside the begintable function. The globafunction looks like this:
newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
and to use it open begintable environment and in place of |c|, use |C{cm}|
Example3:
To increase separation between items in a list.
\newcommand{\set}[1]{\setlength\itemsep{#1em}}
vspace1cm
Example4:
This inserts a calculator symbol in a text line or anywhere we want.
\newcommand{\calculator}{%
\tikz{%
\node (c) [inner sep=0pt, draw, fill=black, anchor=south west] {\phantom{N}};
\begin{scope}[x=(c.south east),y=(c.north west)]
\fill[white] (.1,.7) rectangle (.9,.9);
10
\foreach \x in {.1, .33, .55, .79}{
\foreach \y in {.1, .24, .38, .53}{
\fill[white] (\x,\y) rectangle +(.11,.07);
}
}
\end{scope}
}
}
\def\calcicon#1{\noindent#1 \calculator\ }
22 Graphics
Use graphicx package for inserting any graphics in the document.
24 International Accents
The author of Thermodynamics: An engineering Approach is Y. A. Çengel. It is found
under international accents in the LATEX option above.
11
25 Calculus Notation
The function f (x) = (x−3)2 − 12 has a domain of Df : (−∞, ∞) and a range of Rf :
1
2
,∞
lim f (x)
x→a−
f (x − a) − f (a)
lim = f ′ (a)
x→a x−a
Z
sin x dx = − cos x + C
Rb
a
Z b
a
Zb b
x3
1 3
2
b − (2a)3
x dx = =
3 2a 3
2a
Zb n
X
f (x) dx = lim f (xk ) · ∆x
x→∞
a k=1
Vectors:
26 Conclusion
Thank You
12