[go: up one dir, main page]

0% found this document useful (0 votes)
10 views12 pages

Practice Tex

Uploaded by

gishfaq007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views12 pages

Practice Tex

Uploaded by

gishfaq007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

ISHFAQ

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

17 TEXT AND DOCUMENT FORMATTING 8


17.1 Text Formatting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
17.2 Text Size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
17.3 Text-justification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

18 Sections, Subsections and Table of Contents 9


18.1 Linear Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
18.1.1 Slope-intercept form . . . . . . . . . . . . . . . . . . . . . . . . . 9
18.1.2 Point-slope form . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
18.1.3 Two points form . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
18.2 Quadratic Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

1
19 PAPER SIZE 9

20 Special Math Font 10

21 Macros 10

22 Graphics 11

23 Errors and Debugging 11

24 International Accents 11

25 Calculus Notation 12

26 Conclusion 12

1 INTRODUCTION
Hello! This is my first LATEX document.

There are so many things (x + 1) and (y = 1) to learn in the world .

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

Table 1: Function f and variable x

x Variable 2 3

f (x) Its first value is 4 6


a fraction as in-
tegers do not fit
all the time. 32

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.

To order a sword like that please visit the website swordsworld.

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

This line is centered

This line is left-justified

This line is right-justified

18 Sections, Subsections and Table of Contents


18.1 Linear Functions
18.1.1 Slope-intercept form
18.1.2 Point-slope form
18.1.3 Two points form

18.2 Quadratic Functions

19 PAPER SIZE
Use the following packages for this;

ˆ Fullpage: Keeps 1in gap on all the sides.

ˆ Geometry{margin=1in}: Same effect as above.

ˆ Geometry: Code usepackage[top=, bottom=, left=, right=]{geometry}

9
20 Special Math Font
Uses amsfonts package.

1. Set of all real numbers: R

2. Set of all Rational numbers: Q

3. Set of all integers numbers: Z

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.

Figure 1: The Heart Theorem

23 Errors and Debugging


ctrl(t)
Use this command to comment out all the selected lines to check the errors and bugs one
by one.
ctrl(u)
This command undoes the commenting selected lines.
Take the help of messages that pop out when errors occur. e.g., undefined control sequence
implies that either a package is missing or the command has been misspelled.

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

The summation notation:



X
arn = ar + ar2 + · · · + ar∞
n=1

Example: The Riemann Sum

Zb n
X
f (x) dx = lim f (xk ) · ∆x
x→∞
a k=1

Vectors:

V⃗ = vx⃗i + vy⃗j + vz⃗k

26 Conclusion

Thank You

12

You might also like