Sunday 12 April 2009

LaTEX Introduction 3: Section and subsection

It is relatively easy to handle structure of document in LaTEX especially on section and sub section management. Try the following template and do make self experiment.

\documentclass[11pt]{article}

\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{latexsym}

\setlength{\textwidth}{16cm}
\setlength{\hoffset}{-2cm}
\setlength{\textheight}{24.5cm}
\setlength{\voffset}{-2cm}

\setlength{\parindent}{0cm}
\addtolength{\parskip}{2mm}

\begin{document}
\leftline{\textbf{Demo LaTEX 3}\hfill \textbf{2008 -- 2009}} % print the left and right text

\begin{center}
\Large\textbf{Demonstration 3: Sections and Sub Sections}
\end{center}

\bigskip

% \section*{Introduction}

\section{Basic definitions and examples}
One more advantage of LaTEX is in section and subsection handling. This is section 1. You do not need to print number of chapter and LaTEX will set it automatically.


\section{First results}
This is section 2.

\subsection{The situation in the 20th century}
This subsection 2.1

\subsection{Recent developments}
This is subsection 2.2

\section{More results}

This is section 3

\section{Concluding Remarks}
This is section 4
% \tableofcontents


\end{document}

No comments:

Post a Comment