0% found this document useful (0 votes)
42 views20 pages

Latex 1

The document discusses formatting a LaTeX document with sections, citations, figures, tables and references. It includes code snippets showing how to add titles, authors, sections, citations referenced in a bibliography file, embed images and tables. The document is formatted to include an abstract, introduction and ends the formatting code.
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)
42 views20 pages

Latex 1

The document discusses formatting a LaTeX document with sections, citations, figures, tables and references. It includes code snippets showing how to add titles, authors, sections, citations referenced in a bibliography file, embed images and tables. The document is formatted to include an abstract, introduction and ends the formatting code.
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/ 20

\documentclass[a4paper]{article}

\begin{document}
….......
…...........
…..........
\end{document}

http://krishnarajpm.com
\documentclass[a4paper,twocolumn]{article}
\begin{document}
….......
…...........
…..........
\end{document}

http://krishnarajpm.com
\documentclass[a4paper]{article}

\begin{document}

\title{This is the title}

\author{Krishna Raj \\ M S Ramaiah Institute of Technology\\ Bangalore\\


e-mail: [email protected] \\
\and
Krishna Raj P M\\ M S Ramaiah Institute of Technology\\ Bangalore\\
e-mail: [email protected]}

\maketitle
….......
…...........
…..........

\end{document}

http://krishnarajpm.com
\documentclass[a4paper]{article}

\begin{document}

\title{This is the title}

\author{Krishna Raj \\ M S Ramaiah Institute of Technology\\ Bangalore\\


e-mail: [email protected] \\
\and
Krishna Raj P M\\ M S Ramaiah Institute of Technology\\ Bangalore\\
e-mail: [email protected]}
\date{}
\maketitle
….......
…...........
…..........

\end{document}

http://krishnarajpm.com
\documentclass[a4paper]{article}

\setlength{\textheight}{9.45in}
\setlength{\oddsidemargin}{-0.5in}
\setlength{\evensidemargin}{-0.5in}
\setlength{\topmargin}{-0.49in}
\setlength{\footskip}{0.5in}
\def \columnsep{0.2in}
\def \textwidth{7.45in}
\begin{document}
\title{This is the title}
\author{Krishna Raj \\ M S Ramaiah Institute of Technology\\ Bangalore\\
e-mail: [email protected] \\
\and
Krishna Raj P M\\ M S Ramaiah Institute of Technology\\ Bangalore\\
e-mail: [email protected]}

\maketitle
….......
…...........
…..........
\end{document}

http://krishnarajpm.com
\documentclass[a4paper]{article}

\begin{document}
\title{This is the title}
\author{Krishna Raj \\ M S Ramaiah Institute of Technology\\ Bangalore\\
e-mail: [email protected] \\
\and
Krishna Raj P M\\ M S Ramaiah Institute of Technology\\ Bangalore\\
e-mail: [email protected]}

\maketitle

\section{Introduction}
….......
…...........
…..........
\section{main text}
…........
…...........
\section*{check this out}
….....
…............
\end{document} http://krishnarajpm.com
\documentclass[a4paper]{article}

\begin{document}
\title{This is the title}
\author{Krishna Raj \\ M S Ramaiah Institute of Technology\\ Bangalore\\
e-mail: [email protected] \\
\and
Krishna Raj P M\\ M S Ramaiah Institute of Technology\\ Bangalore\\
e-mail: [email protected]}

\maketitle

\section{Introduction}
….......
…...........
…..........

\section{main text}
…........
\subsection{this is subsection}
…................
\section*{check this out}
….....
…............

\end{document}

http://krishnarajpm.com
\documentclass[a4paper]{article}

\begin{document}
\title{This is the title}
\author{Krishna Raj \\ M S Ramaiah Institute of Technology\\ Bangalore\\
e-mail: [email protected] \\
\and
Krishna Raj P M\\ M S Ramaiah Institute of Technology\\ Bangalore\\
e-mail: [email protected]}

\maketitle

\begin{abstract}
….......
….....
\end{abstract}
\section{introduction}
…........
…...........
\section*{check this out}
….....
…............

\end{document}

http://krishnarajpm.com
● Bold - \textbf { }

● Italics - \textit { }

● Sans Serif- \textsf { }

● Tele Type - \texttt { }

http://krishnarajpm.com
\begin{itemize}
\item{one}
\item{two}
\item{three}
\item{four}
\end{itemize}

http://krishnarajpm.com
\begin{enumerate}
\item{one}
\item{two}
\item{three}
\item{four}
\end{enumerate}

http://krishnarajpm.com
\documentclass[a4paper]{article}

\usepackage{color}
…......
…........

\begin{document}

….......
{\color{red}this is a red text}
…...........
…..........
\end{document}

http://krishnarajpm.com
\documentclass[a4paper]{article}

\usepackage{graphicx}
…......
…........

\begin{document}

….......
\begin{figure}
\includegraphics[scale=0.5]{main.eps}
\caption{This is the title of Figure}
\label{Mainfig}
\end{figure}
…...........
…..........
\end{document}

http://krishnarajpm.com
\documentclass[a4paper]{article}
…......
….......
\begin{document}
….......

\begin{table}
\begin{center}
\caption{This is a sample table}
\begin{tabular}{|l|l|l|}\hline
Sl.No & USN & Marks \% \\\hline
1 & 1ms14ss01 & 69.56\% \\\hline
2 & 1ms14ss05 & 40.54\% \\\hline
3 & 1ms14ss09 & 60.01\% \\\hline
4 & 1ms14ss10 & 30.25\% \\\hline
5 & 1ms14ss12 & 81.95\% \\\hline
\end{tabular}
\label{marks}
\end{center}
\end{table} http://krishnarajpm.com
…...........
\end{document}
\documentclass[a4paper]{article}
…......
…........

\begin{document}

….......
The result is shown in Figure\ref{Mainfig} and
the marks can be seen in Table\ref{marks}.
…...........
…..........
\end{document}

http://krishnarajpm.com
adding references from
papers/books – step 1
search for the paper in scholar.google.com and
click on the 'cite' tab

http://krishnarajpm.com
adding references from
papers/books – step 2
click on 'bibtex' tab

http://krishnarajpm.com
adding references from
papers/books – step 3
copy the entire contents to 'ref.bib' file and note its label

http://krishnarajpm.com
\begin{document}

\bibliographystyle{alpha}
//add this line just before maketitle

\maketitle

….with mutual \cite{jackson2008social}


// jackson2008social is the label of paper from bibtex

\bibliography{ref}
\end{document}

http://krishnarajpm.com
compiling the .tex file with
references & citations

if you have .eps images


F2 → F11 (BibTex) → F2 → F2→ F4 → F8

if you have .jpg or .png images


F6 → F11 → F6 → F6

http://krishnarajpm.com

You might also like