LaTeX
for the Newbie

Sajjad Anwar
Technology Consultant

@geohacker

LaTeX, the language of documents.

LaTeX is a Document Preparation System.

Document Markup Language.

Based on TeX by Donald E Knuth.

Highest typographical quality.

Pre-designed, Professional templates.

Introduced by Leslie Lamport.

Language?

Yes.

But you don't have to be a programmer.

LaTeX can save about two months formatting time of the average 3–4 year writing cycle.
Peter Flynn


WYMIWYG

What You Mean Is What You Get.

Header, Footer

Margins

Paragraphs

Pages







Welcome!

Producing LaTeX documents.
The basics.

\documentclass{article}

\begin{document}

Hello world!

\end{document}




\documentclass{article}

\begin{document}


Hello world!

\end{document}




Document Class

Report.

Article.

Letter.

Book.

Slides.

\documentclass{article}

\title{My First \LaTeX\ Article}

\author{Sajjad Anwar}

\date{\today}

\begin{document}

\maketitle

Place the body of your article here.

\end{document}





Document Structure.

\abstract{...}

\part{...}

\chapter{...}

\section{...}

\subsection{...}

\subsubsection{...}

\paragraph{...}

\subparagraph{...}

Table of Contents

Not painful, anymore.

\tableofcontents

Bibliography

List and Cite. Anywhere.







\begin{thebibliography}{Dennis}

\bibitem[Dennis Ritchie, 1973]{dennis}

C Programming Language, \emph{Bell Labs}

\end{thebibliography}

Lists

Enumerated. Bulleted




\begin{enumerate}

\item Automated traffic surveillance.

\item Automated high-way/parking.

\item Automation of petrol stations.

\item Journey time monitoring.

\end{enumerate}




\begin{itemize}

\item Automated traffic surveillance.

\item Automated high-way/parking.

\item Automation of petrol stations.

\item Journey time monitoring.

\end{itemize}

Graphics

Insert. Scale.








\includegraphics{logo.png}


File Types


.tex
LaTeX or TeX input file.

.sty
LaTeX macro package. Loaded using the "\usepackage" command.

.cls
Class files define what your document looks like. Selected with the "\documentclass" command.

Setting up LaTeX





Windows
MiKTeX | miktex.org

GNU/Linux
Kile | TeX Live | Text Editor | pdflatex

Code

github.com/geohacker/latex-workshop

\o/
You Win


Thank you!

You are what you do.
If you do boring, stupid, monotonous work, chances are you'll end up boring, stupid, and monotonous.
Bob Black


Learn


CodeAcademy.com


RubyMonk.com


Hacker News


Network


Challenge


Bleeding Edge


Build Stuff


Rewards






No Dress Code :)











Events

Droidcon is happening in India!
November 18-19, Bangalore | droidcon.in


Clients from HELL

me@sajjad.in | sajjad.in

@geohacker
github.com/geohacker