\documentclass[12pt,english]{article} % important to have "article" if you only want to use \section{} \usepackage[latin1]{inputenc} % allow to type accented characters \usepackage{babel} % allow to use other languages \usepackage{graphicx} % for graphics support \usepackage{float} \usepackage{geometry} % give some flexibility to format \geometry{verbose,tmargin=0.75in,bmargin=0.75in,lmargin=1in,rmargin=1in} % needs the package geometry to work \usepackage{amsmath} % some more option for math \usepackage{fancyhdr} % give a nice heading for the document \title{Latex tutorial} \author{Damien} \date{Today} \pagestyle{fancy} % Works with the package fancyhdr \newcommand{\be}{\begin{equation}} % I can give simplified version of the latex commands \newcommand{\ee}{\end{equation}} % I can give simplified version of the latex commands \begin{document} % the document starts here \maketitle % put the title, the author and the date \tableofcontents % make the table of contents (may need to compile 2 or 3 times) \section{first section} \subsection{second} \subsubsection{third} \paragraph{fourth} \subparagraph{fith} Here a reference from the bibliography \cite{ono}. If I want to include some math $x=\int_r^zdx$. \begin{equation} x=\int_r^zdx \end{equation} \be x=\int_r^zdx \ee $$ x=\int_r^zdx $$ \begin{eqnarray} x=\int_r^zdx \nonumber \\ y=\int_r^zdy \end{eqnarray} \begin{figure}[h] % you can try H, h, t, b, p \begin{center} \includegraphics[width=8cm]{tutorial.jpg} % include your own graph here \includegraphics[width=8cm]{tutorial.jpg} \caption{the first figure}\label{fig} \end{center} \end{figure} \begin{equation}\label{one} x=\int_r^zdx \mbox{\hspace{3cm}} y=\int_r^zdy \end{equation} I can write in my text the equation \eqref{one} or talk about \ref{fig}. % \ref \cite \eqref may need more than 1 compilation \begin{equation} \Lambda \end{equation} \begin{table} \caption{The caption are inside the table} \begin{center} \begin{tabular}{||| r |||| c ||| l |} \hline 7C0 & hexadecimal \\ 3700 & octal \\ \cline{2-2} 11111000000 & binary \\ \hline \hline\hline\hline\hline 1984 & decimal \\ \hline \end{tabular} \end{center} \end{table} \begin{thebibliography}{1} \bibitem{ono} T. Ono, H. Tanaka, H. Aruga Katori, F. Ishikawa, H. Mitamura, and T. Goto {\em Phys. Rev. B 67, 104431.} 2003. \end{thebibliography} \appendix \section{the first appendix} \end{document} % Close my document