Professional Documents
Culture Documents
Introduction To L TEX: Suraj Patil Dhananjay Takalkar
Introduction To L TEX: Suraj Patil Dhananjay Takalkar
Introduction To L TEX: Suraj Patil Dhananjay Takalkar
Suraj Patil
Dhananjay Takalkar
\documentclass[a4paper]{report}
\begin{document}
This is my first document
\end{document}
Formatting document in LATEX
Author 1
March 7 2015
Spacing
Between blocks:
\vspace{-ve}
Block A
\vspace{+ve}
Figure environment
5. Type the syntax for figure in text file with the same image
name that you have saved in folder.
Syntax for Adding Figure
I \begin{figure}
I \{centering}
I \includegraphics[option]{file.eps}
I \end {figure}
I Options are:
width:-width of the graphics (image)
height:-height of the graphics.
scale:-scale factor for the graphics. If scale=2,
size of graphics twice as of natural size.
angle:-angle of rotation (anticlockwise for
positive angle).
Code for including figure
\documentclass{report}
\usepackage{xcolor}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\begin{center}..or Right/left
\includegraphics[scale=0.2]{sin.eps}
\caption{Original figure}
\end{center}
\end{figure}
\end{document}
Output is:
0.8
0.6
0.4
0.2
−0.2
−0.4
−0.6
−0.8
−1
0 2 4 6 8 10
0.8
0.6
0.4
0.2
−0.2
−0.4
−0.6
−0.8
−1
0 2 4 6 8 10
0.8
0.6
0.4
0.2
−0.2
−0.4
−0.6
−0.8
−1
0 2 4 6 8 10
\begin{figure}
\subfigure[\label{fig:Img1}]
{
\includegraphics[scale=0.16]{sin.eps}
}
\subfigure[\label{fig:Img2}]
{
\includegraphics[scale=0.16]{sin.eps}
}
\caption{Images (a)Original (b) modified image}
\end{figure}
Output Is:
1 1
0.8 0.8
0.6 0.6
0.4 0.4
0.2 0.2
0 0
−0.2 −0.2
−0.4 −0.4
−0.6 −0.6
−0.8 −0.8
−1 −1
0 2 4 6 8 10 0 2 4 6 8 10
(a) (b)
\begin{figure}
\subfigure[\label{fig:Img1}]
{ \includegraphics[scale=0.16]{Lena.eps} }
\subfigure[\label{fig:Img2}]
{ \includegraphics[scale=0.16]{Lena.eps} }
\subfigure[\label {fig:Img3}]
{ \includegraphics[scale=0.16]{Lena.eps} }
\subfigure[\label{fig:Img4}] {
\includegraphics[scale=0.16]{Lena.eps} }
\caption{Images (a)Original (b) modified image (c) Image3
(d)Image4}
\end{figure}
Two steps to use reference figure in LATEXdocument
2. If you just want to refer to the page no. , you can get it to
appear by writing LaTex text like this :
I Please see figure on page no. \pageref {fig : Img 1} for further
information
your pdf file will show above command like this :
Please see figure on page no. 20 for further information.
Table Environment
Symbols Description
l Left-justified column.
r Right-justified column
c Center-justified column
p{width cm } paragraph column with text vertically
aligned at the top,width will be any
integer number (2, 3, · · · cm or mm
or in)
m{width cm} paragraph column with text vertically
aligned in the middle.
b{width cm} paragraph column with vertically
aligned at the bottom.
| vertical line.
|| double-vertical line.
Symbols used to describe the table column
Symbols Description
& Column Separator
\\ Start new row or additional space can add
after this \\ symbol by square bracket e.g.
\\[6pt]
\hline Horizontal line.
\newline Start a new line within a cell only.
\cline{i-j} partial horizontal line beginning from col-
umn i and ending at column j.
Examples
\begin{tabular}{ l c r }
1 & 2 & 3 \\
4 & 5 & 6 \\
1 2 3
7 & 8 & 9 \\
Output is: 4 5 6
\end{tabular}
7 8 9
1 2 3
\begin{tabular}{l|c||r}
4 5 6
1 & 2 & 3 \\
7 8 9
4 & 5 & 6 \\
7 & 8 & 9 \\
\end{tabular}
Examples
\begin{tabular}{l c r } \hline
1 & 2 & 3 \\ \hline
4 & 5 & 6 \\ \hline 1 2 3
7 & 8 & 9 \\ \hline
Output is: 4 5 6
\end{tabular}
7 8 9
1 2 3
\begin{tabular}{|l|c|r|} \hline
4 5 6
1 & 2 & 3 \\ \hline
4 & 5 & 6 \\ \hline 7 8 9
7 & 8 & 9 \\ \hline
\end{tabular}
List of symbols
Symbol code
α \alpha
β \ beta
γ \gamma
δ \delta
\epsilon
ε \varepsilon
θ \theta
φ \phi
ω \omega
µ \mu
η \eta
Equation Environment
\begin{equation}
a^2 + b^2 = c^2
\end{equation}
a2 + b 2 = c 2 (1)
Einstein says
\begin{equation} Einstein says
E = mc^2 \label{clever}
\end{equation} E = mc 2 (2)
He didnt say
He didnt say
\begin{equation} 1+1=3 (dumb)
1 + 1 = 3 \tag{dumb}
\end{equation} This is a reference to (2).
This is a reference to
\eqref{clever}.
Equation Environment
If you dont want LATEXto number the equations, use the starred
version of equation using an asterisk, equation*, or even easier,
enclose the equation
\begin{equation*}
a^2 + b^2 = c^2 a2 + b 2 = c 2
\end{equation*}
a2 + b 2 = c 2
or you can type less for the
same effect: sin x
lim =1
\[ a^2 + b^2 = c^2 \] x→0 x
\begin{equation*}
\lim_{x \rightarrow 0}
\frac{\sin x}{x}=1
\end{equation*}
Equation Environment
H = p1 x 2 + p2 x 4 + p 6 (4)
Y (ω)
K (ω) =
X (ω)
eqnarray
\begin{eqnarray}
H &=& p_1x^2+p_2x^4+p^6\\
\end{eqnarray}
gather
H = p1 x 2 + p2 x 4 + p 6 (5)
Y (ω)
K (ω) =
X (ω)
gather
\begin{gather}
H = p_1x^2+p_2x^4+p^6\\
\end{gather}
List of Mathematical symbols
Symbol code
−→
AB \overrightarrow{AB}
AB \underleftarrow{AB}
R←−
\int
P
\sum
± \pm
≡ \equiv
∀ \forall
∞ \infty
∠ \angle
∅ \emptyset
⇐⇒ \iff
REPORT STRUCTURE
\tableofcontents
\addcontentsline{toc}{chapter}{Table Of Contents}
\listoffigures
\addcontentsline{toc}{chapter}{List of Figures}
\listoftables
\addcontentsline{toc}{chapter}{List of Tables}
BIBLIOGRAPHY
\begin{thebibliography}{10}
\bibitem{label1}
F. Gross, {\it Smart Antennas For Wireless Communication},
September 14, 2005.
\bibitem{label2}
L. Godara.{\enquote{Application of antenna arrays to
mobile communications, part II: Beamforming and direction
of arrival considerations.}} {\it Proceedings of the IEEE,
85(8): 1195-1245, August 1997.
\end{thebibliography}
Thank You