On this second part of the document we will start to see the structure of a LaTeX document.

As our first step we will install the necessary software

apt-get install texlive-latex-base

Then to create the document we first declare the document type and the letter type (at least)

\documentclass[10pt]{article}

The document will 10pt letter, and will be an article, you can also define the size of paper here:

\documentclass[10pt,letterpaper,titlepage]{article}

Or make it two column (like books)

\documentclass[10pt,letterpaper,twocolumn,titlepage]{article}

After that we can go with the author title and date of the document.

\author{Guillermo Garr\'{o}n}

\title{Hello World}

\date{November, 2007}

From here with all that defined we can start writing the document itself.

\begin{document}

This is the control sequence to start the document,

\maketitle{}

To insert the title on the document

\newpage

To start a new page for the document.

We can use sections, subsections, subsubsections, bullets and numbering, here are the control sequences for that.

\section{Part 1}

\subsection{Part 1.1}

\subsubsection{Part 1.1.1}

These are the main sections of a simple document.

To use bullets

\begin{itemize} \item First item \item Second item \end{itemize}

And to use numbering

\begin{enumerate} \item First item \item Second item \end{eenumerate}

This is a sample document and its result in PDF

\documentclass[10pt,letterpaper,titlepage]{article}

\author{Guillermo Garr\'{o}n}

\title{Hello World}

\date{November, 2007}

\begin{document}
\maketitle{}
\newpage

\section{Introduction to LaTeX}
LaTeX is a document markup language and document preparation system for the TeX typesetting program. Within the typesetting system.\\

\begin{enumerate}
\item Standard documentes
\item Can be viewed by others with free PDF applications
\end{enumerate}

\end{document}


To make this file a pdf file create your document as TXT file with .tex extension, then enter these commands.

latex my_first_latex.tex

The output will be my_first_latex.dvi

dvipdf my_first_latex.dvi

The output will my_first_latex.pdf

Go to the index