Step-7: Insert text
\section{name of the section} - To create new section.
\subsection{name of the subsection} - To create subsection.
\subsubsection{name of the subsubsection} - To create subsubsection.
Step-8: Insert Images
\begin{figure}[!h] %[!h] to place in exact location. To place figure in top use [!t] nd [!b] for bottom.
\centering
\includegraphics[width=2in,height=2in]{figure} %Figure should be in the same folder, where .txt file is stored. You can also use [scale= 1] instead if width and height.
\caption{Figure caption}
\label{fig_name} %Label to the figure. It is optional
\end{figure}
Step-9 Insert Tables
\begin{table}[!h]
\centering
\caption{Students name and age}
\label{table}
\centering
\begin{tabular}{|c|c|c|} %% Number of Columns
\hline %% Horizontal Line
S.no & name & age \\ %% "&" Separates Columns
\hline
\hline
1 & Krishna & 22 \\
\hline
2 & Madhu & 33 \\
\hline
3 & Deepak & 25 \\
\hline
\end{tabular}
\end{table}
Now if you RUN this, you can see
\section{name of the section} - To create new section.
\subsection{name of the subsection} - To create subsection.
\subsubsection{name of the subsubsection} - To create subsubsection.
Step-8: Insert Images
\begin{figure}[!h] %[!h] to place in exact location. To place figure in top use [!t] nd [!b] for bottom.
\centering
\includegraphics[width=2in,height=2in]{figure} %Figure should be in the same folder, where .txt file is stored. You can also use [scale= 1] instead if width and height.
\caption{Figure caption}
\label{fig_name} %Label to the figure. It is optional
\end{figure}
Step-9 Insert Tables
\begin{table}[!h]
\centering
\caption{Students name and age}
\label{table}
\centering
\begin{tabular}{|c|c|c|} %% Number of Columns
\hline %% Horizontal Line
S.no & name & age \\ %% "&" Separates Columns
\hline
\hline
1 & Krishna & 22 \\
\hline
2 & Madhu & 33 \\
\hline
3 & Deepak & 25 \\
\hline
\end{tabular}
\end{table}
Now if you RUN this, you can see
if you don't want the gap between heading and rest of the table. Simply remove one \hline
You can see
If you want Bold text in headings. use {\bf text} as shown below
{\bf S.no} & {\bf Name} &{\bf Age } \\
With this you will complete your paper.
Multi row, multi column figures and tables will be discussed in next part.
No comments:
Post a Comment