You are on page 1of 36

afasaddarsad.mihanblog.

com

LATEX
2

:
:

afasaddarsad.mihanblog.com

Latex
afasaddarsad.mihanblog.com

LATEX
\ :

>----

\tableofcontents

:
\LaTeX, \latex

:
\ .
.
}\emph{first

\ :
^}{\_&~%$#

&\ \\ ,

:
\bfseries
4

afasaddarsad.mihanblog.com


1. \documentclass{article}

\begin{document}
This is my \emph{first} document prepared
in \LaTeX.
\end{document}

2. \LaTeX is fun.
\LaTeX{} is fun.
3.

\LaTeX\ is fun.

\bfseries Thanks to Aunt Mabel for all her help.


\bfseries {} Thanks to Aunt Mabel for all her help.
\bfseries
Thanks to Aunt Mabel for all her help.
afasaddarsad.mihanblog.com

\newcommand

}\newcommand{\Iff}{if and only if

\ documentclass
} \begin{document.

afasaddarsad.mihanblog.com


\newcommand{\Iff}{if and only if}
A function $f:X\to Y$ is continuous \Iff{} $f^{-1}(U)$ is
open in $X$,
for every open set $U\subset Y$.

afasaddarsad.mihanblog.com


:( x1,x2,,xn)
$(x_1,x_2,\ldots,x_n)$
:

\newcommand{\vect}{$(x_1,x_2,\ldots,x_n)$}
\newcommand{\vect}[1]{$(#1_1,#1_2,\ldots,#1_n)$}

afasaddarsad.mihanblog.com


abstract
Array
Center
Description
Displaymath
document
Enumerate
Equation
Figure
Flushleft
Flushright
itemize
Letter

Math
minipage
Quotation
Quote
table
Tabular
Thebibliography
Titlepage
Verbatim
verse

afasaddarsad.mihanblog.com


afasaddarsad.mihanblog.com

10

11

$ .
$
.
$....$
$
.
$$....$$
()Space
|_|\ (|_| ) .

afasaddarsad.mihanblog.com


$$Space\ in \ word$$
$x+2y$ \\
$x+ 2y$ \\
$x+\ 2y$ \\
$x+\ 2y$ \\
$x+\ \ 2y$ \\
$x+\ \ \ \ 3y$\\

afasaddarsad.mihanblog.com

12


() :
() .

\bf
\it

:
\rm
\tt
\em
\sl
\sf
\sc
:
\huge \large
\small

13

afasaddarsad.mihanblog.com


\huge
\it
\bf
GmailID: afa.azad\\
{\Large TEXT IS LARGE}
\rm
text is rm\\
\bf
text is bf\\
\it
text is tt\\
\small
\sc
text is sc\\
\sf
text is sf\\
\em
text is em\\
\large
\sl
\bf
text is hard and bold\\

afasaddarsad.mihanblog.com

14


^

$ . A b
.
$A^b$
_ $
A b .
$A_b$

15

afasaddarsad.mihanblog.com


$$Pow\ and\ Sub\ in \ Latex $$\\
$A^b$ \\
$A_b$\\
$2^{-6^x}$\\
$2^{2^x}$\\
$2^{2^x_y}$\\
$x^2-3$\\
$x-{y^2}$\\
$x-3^2$\\
$x_2$\\
$x^2$\\
$X^{Y^a_b}_{{Z^c_d}}$\\
$a*f-a^{2^{2^{2^{2}}}}$

afasaddarsad.mihanblog.com

16


afasaddarsad.mihanblog.com

17


\ldots
:
\\ $a_1 a_2\ldots a_n$

\ cdots
:
\\ $a_1 +a+\cdots +a_n$
\ddots :
\\ $a_1 a_2\ddots a_n$

18

afasaddarsad.mihanblog.com


sqrt
.... :
} {

( 2 )
root :
\\ $ \of $\root

19

afasaddarsad.mihanblog.com


$\sqrt[n+m]{b}$\\\\
$\sqrt[n]{x^n+y^n}$\\\\
$\root n \of {x^n+y^m}$\\\\
$\sqrt[q^2]{i+x}$\\\\
$\root q^2\of{ i+x}$\\
$\root \of{ x+y}$
$\sqrt[]{x+y}$\\\\

afasaddarsad.mihanblog.com

20


over farc
:
\over

} {} {\farc

21

afasaddarsad.mihanblog.com


$$x=(y^2 \over k+1)$$
$$x={y^2 \over k+1}$$
$$ \frac {1+x}{y^2}$$\\
$$ 1+ \ \frac {1-m}{2^m}$$\\
$$ \frac {m}{ 1+\frac {1-x}{y^2}}$$\\
$$ a_0+ \ \frac {1}{a_1+ \ \frac {1}{a_2+ \ \frac
{1}{a_3+...}}}$$\\

afasaddarsad.mihanblog.com

22


\overline
\underline .
.

23

afasaddarsad.mihanblog.com


$\overline{x+y}$\\
$\underline{x+y}$\\
$\overline{\overline{x}+\underline{y}}$\\
The \underline{value} of $x$

afasaddarsad.mihanblog.com

24


:
} {} {\stackrel
X_Or times
otimes .
prime .

25

afasaddarsad.mihanblog.com


$$A\stackrel{\rm def}{=}\{x \| x>0 \}$$
$x+y\times z $\\
$x+y\otimes z $
$y_1 \prime $\\
$y_2 \prime \prime \prime $\\
$y_3 \prime \prime \prime $

afasaddarsad.mihanblog.com

26

27

\over \atop

.
\over
\atop
\choose
\sum .
\not \in \not \subset
.

afasaddarsad.mihanblog.com


$$x={c\choose k}$$
$${n\choose k} \over 2$$
$${s\choose{ k\over 2}} $$
$\sum_{i=1}^{k}a_i$\\
$ 0 \not \in A, B \not \subset X ,j, a \not \equiv b $
$$\int_{0}^{1} f(x) dx$$

afasaddarsad.mihanblog.com

28


}\setcounter{equation} {Start
.
\lim \int
.

29

afasaddarsad.mihanblog.com


\setcounter{equation} {6}
\begin{equation}
a=b
\end{equation}\\
\begin{equation}
a+c=b+d\qquad*c=b*d
\end{equation}\\
\begin{equation}
c=d
\end{equation}\\
$\lim_{n\rightarrow \infty}$
$\int_{0}^{+\infty}f(x) dx $\\
${\sin^2} x+{\cos^2}x=1$

afasaddarsad.mihanblog.com

30

afasaddarsad.mihanblog.com

31


:
} {}$\begin{array

\end{array}$

32

afasaddarsad.mihanblog.com

C
L
R


$\begin{array}{c c c}
a & b& c\\
d & e& f\\
\end{array}$
\\
$\left(\begin{array}{c c}
a&b+c\\
d+e&f\\
\end{array}\right)$
\\
$x=\left|\begin{array}{r l}
a &b\\
c &d\\
\end{array}\right|$
\\
$x=\left|\begin{array}{rr}
baba &b\\
c &d\\
\end{array}\right|$

afasaddarsad.mihanblog.com

33

:
}$ \cr {$\pmatrix
\cr
& .
\hline .
:
} \hline {}\begin{tabular

name&family&exm\\ \hline
}{|c|}{$a\quad k$}& 9 \\ \hline{\multicolumn
}\end {tabular
34

afasaddarsad.mihanblog.com


$\pmatrix{a&b\cr c&d}$
\begin{tabular}{||| c c||c ||}\hline
name family & exm10 \\
&10\\\hline
ali akbari & 9\\ \cline{1-2}
\end {tabular}\\\\\\\\
\begin{tabular}{||| c||c||||c ||}\hline\hline
abc&b&c\\ \cline{2-3}
&$s^2$&y\\ \cline{1-2}
$y_1$&25&Zx\\ \hline
\end {tabular}\\\\\\\\
\begin{tabular}{|c|c|c|} \hline
name&family&exm\\ \hline
\multicolumn{2}{|c|}{$a\quad k$}& 9 \\ \hline
\end {tabular}

afasaddarsad.mihanblog.com

35


36 Latex

Latex .
.
Latex
.

.

.
3 - 1391

36

afa.azad@gmail.com
afasaddarsad.mihanblog.com
afasaddarsad.mihanblog.com