summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarish Badrinath2012-01-17 18:46:30 +0530
committerHarish Badrinath2012-01-17 18:46:30 +0530
commitb7220fd52bc25ae490f28422ec8895a9daa1ac46 (patch)
tree993b761a035c0aae1b527c880dd6dec90401b17f
parent8dc0ff35e6e86ddbaa49d56451b91de50d63a593 (diff)
downloadsdes-stscripts-b7220fd52bc25ae490f28422ec8895a9daa1ac46.tar.gz
sdes-stscripts-b7220fd52bc25ae490f28422ec8895a9daa1ac46.tar.bz2
sdes-stscripts-b7220fd52bc25ae490f28422ec8895a9daa1ac46.zip
Added LaTeX introduction: script and slides, LaTeX Basics: script
-rw-r--r--Latex/Latex2/latex_intro.tex251
-rw-r--r--Latex/Latex2/latex_intro_script.rst272
-rw-r--r--Latex/Latex3/latex_basics_and_structure_script.rst356
3 files changed, 879 insertions, 0 deletions
diff --git a/Latex/Latex2/latex_intro.tex b/Latex/Latex2/latex_intro.tex
new file mode 100644
index 0000000..708467f
--- /dev/null
+++ b/Latex/Latex2/latex_intro.tex
@@ -0,0 +1,251 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Introduction to LaTeX
+%
+% Author: FOSSEE
+% Copyright (c) 2009, FOSSEE, IIT Bombay
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\documentclass[12pt,compress]{beamer}
+
+\mode<presentation>
+{
+ \usetheme{Warsaw}
+ \useoutertheme{infolines}
+ \setbeamercovered{transparent}
+}
+
+\usepackage[english]{babel}
+\usepackage[latin1]{inputenc}
+%\usepackage{times}
+\usepackage[T1]{fontenc}
+
+% Taken from Fernando's slides.
+\usepackage{ae,aecompl}
+\usepackage{mathpazo,courier,euler}
+\usepackage[scaled=.95]{helvet}
+
+\definecolor{darkgreen}{rgb}{0,0.5,0}
+
+\usepackage{listings}
+\lstset{language=sh,
+ basicstyle=\ttfamily\bfseries,
+ commentstyle=\color{red}\itshape,
+ stringstyle=\color{darkgreen},
+ showstringspaces=false,
+ keywordstyle=\color{blue}\bfseries}
+\newcommand{\inctime}[1]{\addtocounter{time}{#1}{\tiny \thetime\ m}}
+
+\newcommand{\typ}[1]{\lstinline{#1}}
+
+\newcommand{\kwrd}[1]{ \texttt{\textbf{\color{blue}{#1}}} }
+\title {Introduction to {\LaTeX}}
+\author {FOSSEE}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% DOCUMENT STARTS
+\begin{document}
+
+\begin{frame}
+
+\begin{center}
+\vspace{12pt}
+\textcolor{blue}{\huge Introduction to {\LaTeX}}
+\end{center}
+\vspace{18pt}
+\begin{center}
+\vspace{10pt}
+\includegraphics[scale=0.95]{../images/fossee-logo.png}\\
+\vspace{5pt}
+\scriptsize Developed by FOSSEE Team, IIT-Bombay. \\
+\scriptsize Funded by National Mission on Education through ICT\\
+\scriptsize MHRD,Govt. of India\\
+\includegraphics[scale=0.30]{../images/iitb-logo.png}\\
+\end{center}
+\end{frame}
+
+\begin{frame}
+\frametitle{Objectives}
+\label{sec-2}
+
+At the end of this tutorial, you will be able to,
+\begin{itemize}
+\item Get acquainted to LaTeX.
+\item Know why we prefer LaTeX ??
+\item Know about the advantages and disadvantages of typesetting documents using the LaTeX approach.
+\item Have a description, of a typical work flow; which uses LaTeX to typeset documents.
+\item Recognize and differentiate between LaTeX commands, LaTeX comments and special characters, spacing and actual document content.
+\item Create and compile a very simple LaTeX document.
+\end{itemize}
+\end{frame}
+
+\begin{frame}[fragile]
+ \begin{block}{{\LaTeX} - Introduction}
+ \begin{itemize}
+ \item Typesetting program
+ \begin{itemize}
+ \item What is typesetting?
+ \end{itemize}
+ \item Excellently Typeset Documents - specially Math
+ \item Anything from one page articles to huge books
+ \item Pronounced \emph{Lah-tech} or \emph{Lay-tech}
+ \end{itemize}
+ \end{block}
+\end{frame}
+
+\begin{frame}[fragile]
+ \frametitle{Why \LaTeX?}
+ \begin{itemize}
+ \item Excellent visual quality!
+ \item Handles the typesetting; Lets you focus on content
+ \item Makes writing math extremely simple
+ \item It is a standard -- widely used in Scientific community
+ \end{itemize}
+ \begin{block}{}
+ \[\tilde{N}_{\mathbf{x}}\times \mathbf{r}(\mathbf{x}) f_{1k}(\mathbf{x},t) - \frac{1}{2} \tilde{N} \tilde{N}:\mathbf{BB}^{T}P(\mathbf{x},t) = -m_{k}f_{1k}(\mathbf{x},t) + 2 \mathop{\mathbf{\aa}}_{j=1}^{K} f_{1j}(\mathbf{x},t)m_{j}P_{k|j} \]
+ \end{block}
+\end{frame}
+
+\begin{frame}[fragile]
+ \frametitle{Why \LaTeX?}
+ \begin{itemize}
+ \item {\LaTeX} is a document based mark-up
+ \item Mark-up $\rightarrow$ a system of annotating text, adding extra
+ information to specify structure and presentation of text
+ \item Document based markup $\rightarrow$ you don't have to worry
+ about each element individually
+ \item Allows you to focus on content, rather than appearance.
+ \end{itemize}
+\end{frame}
+
+\begin{frame}[fragile]
+ \frametitle{Advantages of using \LaTeX }
+ \begin{itemize}
+ \item Easy availablity of professional templates.
+ \item Typesetting complex formulae in a convenient environment.
+ \item Can start typesetting with very little effort.
+ \item Presence of a lot of add-on packages.
+ \item Encourages creation of well structured texts.
+ \end{itemize}
+\end{frame}
+
+\begin{frame}[fragile]
+ \frametitle{Disadvantages of using \LaTeX }
+ \begin{itemize}
+ \item Designing whole new layout is difficult.
+ \end{itemize}
+\end{frame}
+
+\begin{frame}[fragile]
+ \frametitle{\LaTeX \ input file format}
+ \begin{itemize}
+ \item \LaTeX takes ASCII text file as input.
+ \item We can compile \LaTeX files into DVI,Postscript or PDF files.
+ \item \alert{Note:} \typ{latex} vs. \typ{pdflatex}
+ \end{itemize}
+\end{frame}
+
+
+
+\begin{frame}[fragile]
+ \frametitle{Commands, Comments and Special Characters }
+ \begin{itemize}
+ \item {\LaTeX} is case sensetive.
+ \item Commands begin with a \typ{\\}
+ \item Environments have a \typ{\\begin} and \typ{\\end}
+ \item Any content after the \typ{\\end\{document\}} is ignored
+ \end{itemize}
+ \begin{itemize}
+ \item Anything that follows a \typ{\%} symbol till end of the line
+ is a comment
+ \item Special characters (\typ{\~ \# \$ \^ \& \_ \{ \}}) are escaped by a
+ \typ{\\}
+ \item \typ{\\} symbol is inserted using \typ{\\textbackslash}
+ command
+ \end{itemize}
+\end{frame}
+
+\begin{frame}[fragile]
+ \frametitle{Typesetting a minimal document}
+ Write the sample code into the file \typ{temp.tex}
+ \begin{verbatim}
+ \documentclass{article}
+ \title{My First LaTeX Document}
+ \begin{document}
+ Hello world!
+ \end{document}
+ \end{verbatim}
+\end{frame}
+
+\begin{frame}[fragile]
+ \frametitle{Compiling to DVI }
+ \begin{center}
+ \alert{latex temp.tex}
+ \end{center}
+\end{frame}
+
+\begin{frame}[fragile]
+ \frametitle{Compiling to PDF }
+ \begin{center}
+ \alert{pdflatex temp.tex}
+ \end{center}
+\end{frame}
+
+\begin{frame}
+\frametitle{Summary}
+\label{sec-8}
+
+ In this tutorial, we have learnt,
+\begin{itemize}
+\item About LaTeX.
+\item why we prefer LaTeX.
+\item about the advantages and disadvantages of typesetting documents using the LaTeX approach.
+\item A description, of a typical work flow; which uses LaTeX to typeset documents.
+\item The ability to recognize and differentiate between LaTeX commands, LaTeXcomments and special characters, spacing and actual document content.
+\item Created and compiled a very simple LaTeX document.
+\end{itemize}
+\end{frame}
+\begin{frame}[fragile]
+\frametitle{Evaluation}
+\label{sec-9}
+
+
+\begin{enumerate}
+\item Convert the temp.dvi created during the course of this tutorial to temp\_1.ps using the dvips command. Verify that the two files indeed look the same.
+\vspace{8pt}
+\item Convert the temp.dvi created during the course of this tutorial to temp\_1.pdf using the dvipdfm command. Verify that the two files indeed look the
+\end{enumerate}
+\end{frame}
+\begin{frame}
+
+
+\frametitle{Solutions}
+\label{sec-10}
+\begin{enumerate}
+\item We can use the following command to convert temp.dvi to temp\_1.ps\\
+\begin{center}
+dvips -o temp\_1.ps temp.dvi
+\end{center}
+\vspace{15pt}
+\item We can use the following command to convert temp.dvi to temp\_1.pdf\\
+\begin{center}
+dvipdfm \-o temp\_1.pdf temp.dvi
+\end{center}
+\end{enumerate}
+\end{frame}
+\begin{frame}
+
+ \begin{block}{}
+ \begin{center}
+ \textcolor{blue}{\Large THANK YOU!}
+ \end{center}
+ \end{block}
+\begin{block}{}
+ \begin{center}
+ For more Information, visit our website\\
+ \url{http://fossee.in/}
+ \end{center}
+ \end{block}
+\end{frame}
+
+\end{document}
+
+
diff --git a/Latex/Latex2/latex_intro_script.rst b/Latex/Latex2/latex_intro_script.rst
new file mode 100644
index 0000000..64bf176
--- /dev/null
+++ b/Latex/Latex2/latex_intro_script.rst
@@ -0,0 +1,272 @@
+.. Objectives
+.. ----------
+
+.. By the end of this tutorial, you will
+
+.. 1. Get acquainted to LaTeX.
+.. #. Know why we prefer LaTeX ??
+.. #. Know about the advantages and disadvantages of typesetting documents
+.. using the LaTeX approach.
+.. #. Have a description, of a typical work flow; which uses LaTeX to typeset
+.. documents.
+.. #. Recognise and differenciate between LaTeX commands, LaTeX comments and
+.. special characters, spacing and actual document content.
+.. #. Create and compile a very simple LaTeX document.
+
+.. Prerequisites
+.. -------------
+
+.. 1. Should have already installed LaTeX and its supported packages on the host machine.
+.. #. Should be comfortable using a text editor of choice.
+
+
+.. Author : Harish Badrinath < harish [at] fossee [dot] in >
+ Internal Reviewer :
+ External Reviewer :
+ Langauge Reviewer :
+ Checklist OK? : <put date stamp here, if OK>
+
+Script
+------
+
+.. L1
+
+{{{ Show the first slide containing title, name of the production
+team along with the logo of MHRD }}}
+
+.. R1
+
+Hello Friends and welcome to the tutorial on introduction to LaTeX.
+
+.. L2
+
+{{{ Show the objectives slide }}}
+
+.. R2
+
+.. By the end of this tutorial, you will
+
+.. 1. Get acquainted to LaTeX.
+.. #. Know why we prefer LaTeX ??
+.. #. Know about the advantages and disadvantages of typesetting documents
+.. using the LaTeX approach.
+.. #. Have a description, of a typical work flow; which uses LaTeX to typeset
+.. documents.
+.. #. Recognize and differentiate between LaTeX commands, LaTeX comments and
+.. special characters, spacing and actual document content.
+.. #. Create and compile a very simple LaTeX document.
+
+.. L3
+
+{{{ Switch to the pre-requisite slide }}}
+
+.. R3
+
+Before beginning this tutorial,we would suggest having a working installation of
+LaTeX on your computer. You can do this by completing the tutorial titled
+"Installing LaTeX".
+
+.. L4
+
+{{{ switch to the photograph of Donald E. Knuth }}}
+
+.. R4
+
+LaTeX began as TeX, a computer program originally created by
+Donald E. Knuth. Its was designed mainly to aid typesetting
+of text and mathematical formulae.
+
+LaTeX is a document preparation system for high quality type
+setting. It is based on the TeX typesetting language or certain
+extensions.
+
+LaTeX is pronounced Lah-tech or Lay-tec.
+TeX is pronounced Tech. TeX is also the first syllable in the Greek word for
+technology.
+LaTeX allows authors to typeset and print their content at the highest
+typographical quality, using predefined, professional layouts.
+
+.. L5
+
+
+.. R5
+
+Below are some of the reasons we prefer LaTeX
+(a) LaTeX offers excellent visual quality.
+(b) It handles typesetting and lets you focus on content.
+(c) Its makes writing complex math equation extremely simple.
+(d) It is also a standard used widely, especially by the scientific community.
+
+We can define LaTex as a document based markup language. This sentence is
+deceptively simple, as it reveals a lot about LaTex. We now break this sentence
+up as follows
+Mark-up — a system of annotating text, adding extra information to
+specify structure and presentation of text
+Document based markup - you don’t have to worry about each
+element individually.
+This is essentially a fancy way of saying,LaTeX handles typesetting and lets
+you focus on content.
+
+.. L6
+
+{{{ switch to stock photograph of/symbolizing advantages and disadvantages }}}
+
+.. R6
+
+Some of the advantages of using LaTeX approach to typesetting are
+(1) Easy availability of professionally crafted layouts.
+(2) Typesetting of mathematical formulae is supported in a convenient
+environment.
+(3) Typesetting for most cases can be done with very little learning curve
+using easy to use/understand commands, that only specify the logical structure
+of the document.
+(4) Presence of lots of add-on packages.
+(5) It encourages creation of well structured texts.
+
+.. L7
+
+{{{ switch to stock photograph of/symbolizing advantages and disadvantages }}}
+
+.. R7
+
+Some of the disadvantages of using LaTeX approach to typesetting is
+(1) Designing a whole new layout is difficult.
+
+.. L8
+
+{{{ switch to Image saying/symbolizing work flow }}}
+
+.. R8
+
+LaTeX input files are simple ASCII text files that are processed by a TeX
+processing engine.
+Next comes the question compiling LaTeX input files and viewing the output
+typeset document.
+The process is a little different from other markup languages like HTML.
+We compile ASCII text files into typeset files that are normally DVI,Postscript
+or PDF files.
+The latex command converts LaTeX input files into dvi files.
+We can view DVI files on Gnu/Linux using xdvi.
+Further DVI files can be converted either to a post script file, using the
+dvips command or to a PDF file using the dvipdfm command.
+The command pdflatex is used to convert LaTeX input files directly to pdf files.
+The resultant PDF files can be viewed using standard tools on most platforms
+(Eg: evince on Gnu/Linux). PDF file are also widely supported.
+
+.. L9
+
+
+.. R9
+
+LaTeX, like most utilities in Linux is case sensitive. Commands begin with a
+backslash.LaTeX environments have a begin and end marker. Any content after
+\end{document} is ignored.
+
+Anything that follows a percentage sign (%) till the end of that line is a
+comment. Special characters like tilde or hash,etc have to be escaped by a
+backslash. If you have to insert a backslash into a LaTeX output file, you have
+to use the LaTeX command \textbackslash.
+
+Normally LaTeX automatically spaces the given input optimally. But, sometimes we
+have to insert manual line breaks. This is achieved using the \\ command.
+
+We can also start a new paragraph using an empty line.
+
+It must be noted that multiple spaces/empty lines are automatically compressed
+to a single space/line.
+
+.. L10
+
+{{{ Show slide with exercise 1 }}}
+
+.. R10
+
+Now, we try to create a simple LaTeX document. Pause the tutorial and type the
+content shown on the screen in a text editor. Save the file as temp.tex
+
+.. L10
+
+{{{continue from paused state}}}
+latex temp.tex
+
+.. R10
+
+Now we compile the commands in the LaTeX input file that is, temp.tex into a
+typeset file.
+The first alternative is to compile LaTeX input file into a DVI file. We use
+the latex command for this purpose.
+For compiling the LaTeX input file temp.tex into a DVI file, we use the
+following command
+latex temp.tex.
+The output file would be temp.dvi.
+On Gnu/Linux use a program like xdvi to view the output file.
+
+.. L11
+
+pdflatex temp.tex
+
+.. R11
+
+The other alternative is to create PDF files from LaTeX input files.
+We use the pdflatex command for this purpose.
+For compiling the LaTeX input file temp.tex into a PDF file, we use the
+following command
+pdflatex temp.tex
+The output file would be temp.pdf
+On Gnu/Linux use a program like evince to view the output file.
+
+.. L12
+
+{{{ Show summary slide }}}
+
+.. R12
+
+This brings us to the end of this tutorial. In this tutorial, we have learnt
+
+.. 1. About LaTeX.
+.. #. why we prefer LaTeX.
+.. #. About the advantages and disadvantages of typesetting documents
+.. using the LaTeX approach.
+.. #. A description, of a typical work flow; which uses LaTeX to typeset
+.. documents.
+.. #. The ability to recognize and differentiate between LaTeX commands, LaTeX
+.. comments and special characters, spacing and actual document content.
+.. #. Created and compiled a very simple LaTeX document.
+
+.. L13
+
+{{{Show self assessment questions slide}}}
+
+.. R13
+
+Here are some self assessment questions for you to solve
+
+ 1. Convert the temp.dvi created during the course of this tutorial to temp_1.ps
+using the dvips command. Verify that the two files indeed look the same.
+
+ 2. Convert the temp.dvi created during the course of this tutorial to
+temp_1.pdf using the dvipdfm command. Verify that the two files indeed look the
+same.
+
+.. L14
+
+{{{Show self assessment questions slide}}}
+
+.. R14
+
+And the answers,
+
+1. We can use the following command to convert temp.dvi to temp_1.ps
+dvips -o temp_1.ps temp.dvi
+
+2. We can use the following command to convert temp.dvi to temp_1.pdf
+dvipdfm -o temp_1.pdf temp.dvi
+
+.. L15
+
+{{{ Show the thank you slide }}}
+
+.. R15
+
+Hope you have enjoyed this tutorial and found it useful.
+Thank you!
diff --git a/Latex/Latex3/latex_basics_and_structure_script.rst b/Latex/Latex3/latex_basics_and_structure_script.rst
new file mode 100644
index 0000000..99bede8
--- /dev/null
+++ b/Latex/Latex3/latex_basics_and_structure_script.rst
@@ -0,0 +1,356 @@
+.. Objectives
+.. ----------
+
+.. By the end of this tutorial, you will be able to
+
+.. 1. Understand basic structure of a LaTeX document, its various document
+.. classes and loading packages that add new features to the LaTeX system.
+.. #. Create a LaTeX document with a title and an abstract.
+.. #. Create numbered and non-numbered sections and subsections in a LaTeX
+.. document.
+.. #. Create an appendix in a LaTeX document.
+.. #. Create a table of content in a LaTeX document.
+
+.. Prerequisites
+.. -------------
+
+.. 1. latex_intro
+
+
+.. Author : Harish Badrinath < harish [at] fossee [dot] in >
+ Internal Reviewer :
+ External Reviewer :
+ Langauge Reviewer :
+ Checklist OK? : <put date stamp here, if OK>
+
+Script
+------
+
+.. L1
+
+{{{ Show the first slide containing title, name of the production
+team along with the logo of MHRD }}}
+
+.. R1
+
+Hello friends and welcome to the tutorial on Basics of LaTeX and its document
+structure.
+
+.. L2
+
+{{{ Show the objectives slide }}}
+
+.. R2
+
+.. By the end of this tutorial, you will be able to
+
+.. 1. Understand basic structure of a LaTeX document, its various document
+.. classes and loading packages that add new features to the LaTeX system.
+.. #. Create a LaTeX document with a title and an abstract.
+.. #. Create numbered and non-numbered sections and subsections in a LaTeX
+.. document.
+.. #. Create an appendix in a LaTeX document.
+.. #. Create a table of content in a LaTeX document.
+
+.. L3
+
+{{{ Switch to the pre-requisite slide }}}
+
+.. R3
+
+Before beginning this tutorial,we would suggest having a working installation of
+LaTeX and suggest you to complete the tutorial titled "Introduction to LaTeX".
+
+.. L4
+
+{{{ Basic Structure of a LaTeX document }}}
+\documentclass{article}
+\begin{document}
+SAMPLE TEXT
+\end{document}
+
+.. R4
+
+the text "SAMPLE TEXT" is illustrative and can be replaced replaced by a
+single alpha-numeric character, for example. When done so, the resulting
+document could be described as the shortest possible LaTeX input document, that
+creates an output file. It consists of 3 LaTeX commands and one line/character
+of text.
+This is processed by a TeX processor that generates an output file. Now, we
+begin to look into each line in the example in more detail.
+The first line reads
+
+.. L5
+
+\documentclass{article}
+
+.. R5
+
+which more generally can be written as
+
+.. L6
+
+\documentclass [parameters] {DocumentClass}
+
+.. R6
+
+Where \documentclass is a LaTeX command.
+Parameters specify if you want to use a non default font size, for example.
+More specifically the parameters can be used to alter things like font size of
+the document, paper size, two sided or single sided printing, etc.
+
+.. L7
+
+\documentclass[12pt,a4paper,draft]{report}
+
+.. R7
+
+This command instructs LaTeX to
+Create a new document of class report. The available classes are article, proc,
+report, book, slides, letter.
+12 pt: sets the font size of main font. Other are relatively adjusted. 10pt is
+the default.
+a4paper: specifies the paper size
+draft: marks hyphenation and justification problems in typesetting
+with a square in the margin
+
+.. L8
+
+\usepackage[options]{...}
+
+.. R8
+
+This statement can be used optionally and is used to include packages, which are
+used to extend the LaTeX's capabilities. There are a number of packages that are
+included by default with LaTeX2 base distribution. You can use the texdoc
+command for accessing package documentation.
+
+.. L9
+::
+
+\documentclass{article}
+\title{My First LaTeX Document}
+\author{Harish}
+\date
+\begin{document}
+Hello world!
+\end{document}
+
+.. R9
+
+We add the LaTeX commands, that specify the title and the author of the
+document. When we compile the document shown to an output file and view it we
+notice that output is, as seen no different from not adding the fields of title
+and author. We need to add another command to actually show the title author
+and date in the output document. We add the command in the following example.
+
+.. L10
+
+\documentclass{article}
+\title{My First LaTeX Document}
+\author{Harish}
+\begin{document}
+\maketitle
+Hello world!
+\end{document}
+
+.. R10
+
+The command \maketitle adds title, authors name and date to the output file.
+Of these only the date is optional. If date command is specified, then the given
+date is used else today's date is used.
+
+.. L11
+
+\documentclass{article}
+\title{My First LaTeX Document}
+\author{Harish}
+\begin{document}
+\maketitle
+Hello world!
+\begin{abstract}
+An Example Abstract
+\end{abstract}
+\end{document}
+
+.. R11
+
+The abstract command is used to insert abstract of a document, into the output
+file.Place it in the location, where you want your abstract to present in
+the document. It is available for the document classes article and report, but
+not book
+
+.. L12
+
+\documentclass{article}
+\title{My First LaTeX Document}
+\author{Harish}
+\begin{document}
+\maketitle
+Hello world!
+\begin{abstract}
+An Example Abstract
+\end{abstract}
+\section{Numbered Section 1}
+Section1 Text
+\section{Numbered Section 2}
+Section2 Text
+\section*{Unnumbered Section 1}
+Section3 Text
+\section*{Unnumbered Section 2}
+Section4 Text
+\end{document}
+
+
+.. R12
+
+Titles chapters and sections are used to help the user find his or her way
+through your work. The following commands are available in the article class:
+section, subsection, subsubsection, paragraph and sub paragraph. The default
+behavior is to use numbered sections. We can use un-numbered sections appending
+* to section command. If you want to split your document without influencing the
+section or chapter numbering use the part command.
+
+.. L13
+
+\documentclass{book}
+\title{My first Book}
+\author{Harish}
+\date{31-February-2012}
+\begin{document}
+\maketitle
+\chapter{My First Chapter}
+Main
+\section{Section1}
+Section 1 Text
+\subsubsection{My First Subsection}
+Numbered-Section 1's Subsection Text
+\section{Section2}
+Numbered-Section 2 Text
+\section*{Section3}
+First un-numbered Section Text
+\section*{Section4}
+Second un-numbered Section Text
+\chapter{So We say goodbye}
+Thank you for reading dear reader
+\end{document}
+
+.. R13
+
+Longer documents can use report or book class. We can add a new chapter using
+the chapter command, provided by the report or book class. After compiling the
+file shown in the slide we notice that subsections are not numbered.
+
+.. L14
+
+\setcounter{secnumdepth}{3}
+
+.. R14
+We can change this behavior with the command setcounter , calling it as shown
+in the slide.
+
+.. L15
+
+\appendix
+
+.. R15
+
+Appendix can be added to the document using \appendix command. any content after
+\appendix will be added to the appendix. In the report or book class, we have to
+use \chapter to indicate that the chapters are to be numbered as appendices.
+
+similarly for the article class we have to use the section command to indicate
+that sections are to be numbered as appendices.
+
+.. L16
+
+
+.. R16
+
+Lets add a Table of content to the document. The LaTeX command to add a TOC to a
+document is using \tableofcontents command. It is used at the point at which the
+table of content is to be placed. You then have to compile the input file twice
+to produce a text.
+Any numbered section/chapter appear automatically in the table of content.
+
+.. L17
+
+
+.. R17
+
+Un-numbered sections are added to TOC using \addcontentsline command.
+For example we use the command
+\addcontentsline{toc}{section}{Intro}
+where intro is the text that you want to appear in the Table of contents.
+
+.. L18
+
+{{{ Show summary slide }}}
+
+.. R18
+
+This brings us to the end of this tutorial. In this tutorial, we have,
+
+.. 1. Gained an understanding of the basic structure of a LaTeX document, its
+.. various document classes and loading packages that add new features to
+.. the LaTeX system.
+.. #. Created a LaTeX document with a title and an abstract.
+.. #. Created both numbered and non-numbered sections and subsections in a
+.. LaTeX document.
+.. #. Created an appendix in a LaTeX document.
+.. #. Created a table of content in a LaTeX document.
+
+.. L19
+
+{{{Show self assessment questions slide}}}
+
+.. R19
+
+Here are some self assessment questions for you to solve
+
+ 1. Is the LaTeX code given below a valid input file (File compiles successfully
+and produces the intended result, that is to produce a book with two chapters
+and an appendix.
+\begin{verbatim}
+\documentclass{book}
+\title{My first Book}
+\author{Harish}
+\date{31-February-2012}
+\begin{document}
+\maketitle
+\chapter{My First Chapter}
+Main
+\chapter{So We say goodbye}
+Thank you for reading dear reader
+\appendix
+\section{First Appendix}
+\end{document}
+\end{verbatim}
+
+ 2. Does making the subsections placed at any arbitrary level, get numbered by
+default using the appropriate setcounter command with secnumdepth parameter
+make the subsections appear automatically in the table of content ??
+
+.. L20
+
+{{{Show self assessment questions slide}}}
+
+.. R20
+
+And the answers,
+
+1. Although the given file looks syntactically valid, the output file is not what
+we expected. This is mainly because we are trying to use the section command to
+create sections in the appendix, for a document whose type is given as a book.
+
+2. No The \tableofcontents command normally shows only numbered section
+headings, and only down to the level defined by the tocdepth counter.
+
+.. L21
+
+{{{ Show the thankyou slide }}}
+
+.. R21
+
+Hope you have enjoyed this tutorial and found it useful.
+Thank you!