My Latex
My Latex
LaTex
A high quality document preparation system
by
Kiran
Assistant professor
Dept. of ECE
GMIT, Mandya
I am not an expert
I am still a beginner
I am not an expert
I am still a beginner
Many people know much more about this
than me!
I am not an expert
I am still a beginner
Many people know much more about this
than me!
Everyone has their way of doing this
What is LaTeX?
Example.tex
% This is an example.tex
\documentclass {article}
\begin {document}
This is a test
\end {document}
Writing a document in Latex
Title, author
Example.tex
% This is an example.tex
\documentclass [12pt]{article}
\begin {document}
\end {document}
Writing a document in Latex
Font size \tiny to \Huge
Example.tex
% This is an example.tex
\documentclass [12pt]{article}
\begin {document}
This is a test \\
\small {This is a test}\\
\Large {This is a test}\\
\Huge {This is a test}\\
\end {document}
Writing a document in Latex
Section and Subsection
Example.tex
% This is an example.tex
\documentclass [12pt]{article}
\begin {document}
\title {This is an example}
\author {James Bond}
\maketitle
\section {Introduction}
\subsection {Experiment}
\end {document}
Mathematical Equations
\documentclass [12pt]{article}
\usepackage { graphicx}
\begin {document}
\begin {figure}
\includegraphics[width=3.5in]{bird.png}
\caption {Sample Figure.}
\label {fig1}
\end {figure}
\end {document}
Writing a document in Latex
Example.tex
Table
% This is an example.tex
\documentclass [12pt]{article}
\usepackage { graphicx}
\begin {documen}
\begin {table}
\centering
\begin {tabular}{|c|c|c|c|c|} \hline
Method &Groups & Normal & Abnormal & Total \\ \hline
\begin {document}
\section {Introduction}
\label {intro}
\subsection {experiment}
\label {exp}
\end {document}
\subsection {experiment}
\label {exp}
\bibliography {bibfile}
\end {document}
How to insert Header and Footer for the report
Report document style
(main.tex)
\documentclass{report}
\title{Assignment 2 for SIMG726}
\author{Rolando V. Raque\~no}
\begin{document}
\maketitle
\tableofcontents
\end{document}
Create the following chapters
chapter_sum.tex
chapter_mean.tex
chapter_sd.tex
chapter_mean.tex
\chapter{Mean} \label{C:Mean}
\begin{equation}
\label{E:mean}
\bar{x} =
\frac{\sum_{i=1}^{n}x_{i}}
{n}
\end{equation}
chapter_sum.tex
\chapter{Sum} \label{C:Sum}
\begin{equation}
\label{E:sum}
s = \sum_{i=1}^{n}x_{i}
\end{equation}
chapter_sd.tex
\chapter{Standard
Deviation} \label{C:SD}
\begin{equation}
\label{E:sd}
\sigma =
\sqrt{\frac{\sum\limits
_{i=1}^{n}
\left(x_{i} -
\bar{x}\right)^{2}}
{n-1}}
\end{equation}
Modify main.tex to include chapters
\documentclass{report}
\title{Assignment 2 for SIMG726}
\author{Rolando V. Raque\~no}
\begin{document}
\maketitle
\tableofcontents
\include{chapter_sum}
\include{chapter_mean}
\include{chapter_sd}
\end{document}
Writing a document in Latex
Let us put
everything together
- \title
-\author
-\section
-\subsection
- \section
- \subsection
- figure
-Table
- \ref
- \cite
- \documentclass
-\begin
- \end
- \maketitle
Class, Style files in Latex
\usepackage{conf.sty} & \documentclass{journ.cls}
Double column
and IEEE trans.
standard
Happy (Latex) ing !
Questions !
Thank you !