\documentclass[landscape,17pt,headrule,footrule,dvips]{foils}
\usepackage{graphpap}
\usepackage[dvips]{graphics}
\usepackage{color,pstcol}
\usepackage{lscape}
\usepackage{psboxit}
\usepackage{rotating}
\usepackage{pstricks}
\usepackage{pst-grad}
\usepackage{pst-text}
\usepackage{pst-node}
\usepackage{pst-plot}
\usepackage{custom-foils}
\usepackage{pst-rel-points}
\oddsidemargin 0.5in
\renewcommand{\baselinestretch}{1.2}

%%%%%% Declarations Defined in custom-foils

\speaker{Uday Khedker}
\email{uday@cse.iitb.ac.in}
\abbvspeaker{Uday Khedker}
\monthandyear{Sept. 2003}
\forum{CSEA Workshop on \protect\LaTeX}
\affiliation{Department of Computer Science \& Engg. \\ IIT Bombay}
\subject{Document Preparation with \protect\LaTeX}{\protect\LaTeX}
\markcopyright{2003}

\begin{document}
\large

\titlefoil


\foilhead{Outline}

\begin{itemize} 

\item Basic elements of document preparation
\item The LaTeX approach  to document preparation
\item Basic concepts of LaTeX
\item Bibliography, pictures, and slides
\end{itemize}
\foilhead{Document Preparation}

\begin{itemize} 

\item Typesetting = Text (To Be Typeset) + Typesetting Commands

\item Document Structure : Position, size, shape of entities etc.

\begin{itemize} 

\item Visual Structure : Governed by visual aesthetics

\item Logical Structure : Governed by the meaning 
     
     (List, Table, Chapter, Section, etc.)

\end{itemize}

\end{itemize}

\foilhead{WYSIWYG Preparation}

\begin{itemize}
\item What You See Is What You Get ({\blue E.g. MS Word.})

%\item Execution of formatting commands interleaved with keying in the text.


%\item 
%\begin{tabbing}
%	while (not done)\\
%	\{ \ \ \=Key in the text \\
%		\> Execute the Typesetting Commands\\
%	\}
%	\end{tabbing}

\item Interactive : Interleaved typing and typesetting.

\begin{itemize} 

\item As you type the text, the resulting formatting is shown 
	immediately and automatically.

\item Visual structure is more prominent.

\end{itemize}

\end{itemize}

\foilhead{Non-WYSIWYG Preparation}

\vspace*{-.5in}
\begin{itemize}
\item Execution of formatting commands separate from keying in the text.

{\blue E.g. \LaTeX.}


\item Multi-step batch mode process

\begin{itemize} 

\item Type the text
\item Execute the formatting commands
\item View the resulting document
\end{itemize}

\item Visual structure de-emphasized : 

Can't see immediately and automatically.

\end{itemize}

\foilhead{Document Preparation with LaTeX}

\vspace{-.5cm}

\scalebox{.8}{
\begin{pspicture}(0,-9)(20,5)
\psset{unit=1mm}
\renewcommand{\arraystretch}{.7}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{}{a}{0}{50}
\rput[l](\x{a},\y{a}){\rnode{a}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Keyboard\\ Input\end{tabular}}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{a}{b}{55}{0}
\rput(\x{b},\y{b}){\rnode{b}{\psframebox[linewidth=.6mm]{\begin{tabular}{@{}c@{}}
Text\\ Editor\end{tabular}}}}
\ncline[linewidth=.6mm]{->}{a}{b}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{b}{c}{45}{0}
\rput(\x{c},\y{c}){\rnode{c}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Text and \\ Formatting \\ Commands\end{tabular}}}}
\ncline[linewidth=.6mm]{->}{b}{c}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{pspicture}
}

\foilhead{Document Preparation with LaTeX}
\nonewpagenumber

\vspace{-.5cm}

\scalebox{.8}{
\begin{pspicture}(0,-9)(20,5)
\psset{unit=1mm}
\renewcommand{\arraystretch}{.7}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{origin}{a}{0}{50}
\rput[l](\x{a},\y{a}){\rnode{a}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Keyboard\\ Input\end{tabular}}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{a}{b}{55}{0}
\rput(\x{b},\y{b}){\rnode{b}{\psframebox[linewidth=.6mm]{\begin{tabular}{@{}c@{}}
Text\\ Editor\end{tabular}}}}
\ncline[linewidth=.6mm]{->}{a}{b}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{b}{c}{45}{0}
\rput(\x{c},\y{c}){\rnode{c}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Text and \\ Formatting \\ Commands\end{tabular}}}}
\ncline[linewidth=.6mm]{->}{b}{c}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{c}{d}{0}{-30}
\rput(\x{d},\y{d}){\rnode{d}{\psframebox[framesep=.5cm,linewidth=.6mm]{\begin{tabular}{@{}c@{}} \LaTeX\end{tabular}}}}
\ncline[linewidth=.6mm]{->}{c}{d}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{d}{e}{0}{-30}
\rput(\x{e},\y{e}){\rnode{e}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Device \\ Independent \\ Representation \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{d}{e}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{pspicture}
}

\foilhead{Document Preparation with LaTeX}
\nonewpagenumber

\vspace{-.5cm}

\scalebox{.8}{
\begin{pspicture}(0,-9)(20,5)
\psset{unit=1mm}
\renewcommand{\arraystretch}{.7}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{origin}{a}{0}{50}
\rput[l](\x{a},\y{a}){\rnode{a}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Keyboard\\ Input\end{tabular}}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{a}{b}{55}{0}
\rput(\x{b},\y{b}){\rnode{b}{\psframebox[linewidth=.6mm]{\begin{tabular}{@{}c@{}}
Text\\ Editor\end{tabular}}}}
\ncline[linewidth=.6mm]{->}{a}{b}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{b}{c}{45}{0}
\rput(\x{c},\y{c}){\rnode{c}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Text and \\ Formatting \\ Commands\end{tabular}}}}
\ncline[linewidth=.6mm]{->}{b}{c}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{c}{d}{0}{-30}
\rput(\x{d},\y{d}){\rnode{d}{\psframebox[framesep=.5cm,linewidth=.6mm]{\begin{tabular}{@{}c@{}} \LaTeX\end{tabular}}}}
\ncline[linewidth=.6mm]{->}{c}{d}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{d}{e}{0}{-30}
\rput(\x{e},\y{e}){\rnode{e}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Device \\ Independent \\ Representation \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{d}{e}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{e}{f}{50}{0}
\rput(\x{f},\y{f}){\rnode{f}{\psframebox[framesep=.5cm,linewidth=.6mm]{\begin{tabular}{@{}c@{}}
xdvi \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{e}{f}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{f}{g}{40}{0}
\rput(\x{g},\y{g}){\rnode{g}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Screen \\ Rendering \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{f}{g}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{pspicture}
}

\foilhead{Document Preparation with LaTeX}
\nonewpagenumber

\vspace{-.5cm}

\scalebox{.8}{
\begin{pspicture}(0,-9)(20,5)
\psset{unit=1mm}
\renewcommand{\arraystretch}{.7}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{origin}{a}{0}{50}
\rput[l](\x{a},\y{a}){\rnode{a}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Keyboard\\ Input\end{tabular}}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{a}{b}{55}{0}
\rput(\x{b},\y{b}){\rnode{b}{\psframebox[linewidth=.6mm]{\begin{tabular}{@{}c@{}}
Text\\ Editor\end{tabular}}}}
\ncline[linewidth=.6mm]{->}{a}{b}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{b}{c}{45}{0}
\rput(\x{c},\y{c}){\rnode{c}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Text and \\ Formatting \\ Commands\end{tabular}}}}
\ncline[linewidth=.6mm]{->}{b}{c}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{c}{d}{0}{-30}
\rput(\x{d},\y{d}){\rnode{d}{\psframebox[framesep=.5cm,linewidth=.6mm]{\begin{tabular}{@{}c@{}} \LaTeX\end{tabular}}}}
\ncline[linewidth=.6mm]{->}{c}{d}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{d}{e}{0}{-30}
\rput(\x{e},\y{e}){\rnode{e}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Device \\ Independent \\ Representation \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{d}{e}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{e}{f}{50}{0}
\rput(\x{f},\y{f}){\rnode{f}{\psframebox[framesep=.5cm,linewidth=.6mm]{\begin{tabular}{@{}c@{}}
xdvi \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{e}{f}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{f}{g}{40}{0}
\rput(\x{g},\y{g}){\rnode{g}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Screen \\ Rendering \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{f}{g}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{e}{h}{0}{-30}
\rput(\x{h},\y{h}){\rnode{h}{\psframebox[framesep=.5cm,linewidth=.6mm]{\begin{tabular}{@{}c@{}}
dvips \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{e}{h}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{h}{i}{0}{-25}
\rput(\x{i},\y{i}){\rnode{i}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Postscript \\ Representation \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{h}{i}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{pspicture}
}

\foilhead{Document Preparation with LaTeX}
\nonewpagenumber

\vspace{-.5cm}

\scalebox{.8}{
\begin{pspicture}(0,-9)(20,5)
\psset{unit=1mm}
\renewcommand{\arraystretch}{.7}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{origin}{a}{0}{50}
\rput[l](\x{a},\y{a}){\rnode{a}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Keyboard\\ Input\end{tabular}}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{a}{b}{55}{0}
\rput(\x{b},\y{b}){\rnode{b}{\psframebox[linewidth=.6mm]{\begin{tabular}{@{}c@{}}
Text\\ Editor\end{tabular}}}}
\ncline[linewidth=.6mm]{->}{a}{b}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{b}{c}{45}{0}
\rput(\x{c},\y{c}){\rnode{c}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Text and \\ Formatting \\ Commands\end{tabular}}}}
\ncline[linewidth=.6mm]{->}{b}{c}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{c}{d}{0}{-30}
\rput(\x{d},\y{d}){\rnode{d}{\psframebox[framesep=.5cm,linewidth=.6mm]{\begin{tabular}{@{}c@{}} \LaTeX\end{tabular}}}}
\ncline[linewidth=.6mm]{->}{c}{d}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{d}{e}{0}{-30}
\rput(\x{e},\y{e}){\rnode{e}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Device \\ Independent \\ Representation \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{d}{e}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{e}{f}{50}{0}
\rput(\x{f},\y{f}){\rnode{f}{\psframebox[framesep=.5cm,linewidth=.6mm]{\begin{tabular}{@{}c@{}}
xdvi \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{e}{f}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{f}{g}{40}{0}
\rput(\x{g},\y{g}){\rnode{g}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Screen \\ Rendering \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{f}{g}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{e}{h}{0}{-30}
\rput(\x{h},\y{h}){\rnode{h}{\psframebox[framesep=.5cm,linewidth=.6mm]{\begin{tabular}{@{}c@{}}
dvips \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{e}{h}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{h}{i}{0}{-25}
\rput(\x{i},\y{i}){\rnode{i}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Postscript \\ Representation \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{h}{i}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{i}{j}{50}{25}
\rput(\x{j},\y{j}){\rnode{j}{\psframebox[framesep=.5cm,linewidth=.6mm]{\begin{tabular}{@{}c@{}}
gv \end{tabular}}}}
\ncline[linewidth=.6mm,offsetB=.5]{->}{i}{j}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{j}{k}{40}{0}
\rput(\x{k},\y{k}){\rnode{k}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Screen \\ Rendering \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{j}{k}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{pspicture}
}

\foilhead{Document Preparation with LaTeX}
\nonewpagenumber

\vspace{-.5cm}

\scalebox{.8}{
\begin{pspicture}(0,-9)(20,5)
\psset{unit=1mm}
\renewcommand{\arraystretch}{.7}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{origin}{a}{0}{50}
\rput[l](\x{a},\y{a}){\rnode{a}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Keyboard\\ Input\end{tabular}}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{a}{b}{55}{0}
\rput(\x{b},\y{b}){\rnode{b}{\psframebox[linewidth=.6mm]{\begin{tabular}{@{}c@{}}
Text\\ Editor\end{tabular}}}}
\ncline[linewidth=.6mm]{->}{a}{b}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{b}{c}{45}{0}
\rput(\x{c},\y{c}){\rnode{c}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Text and \\ Formatting \\ Commands\end{tabular}}}}
\ncline[linewidth=.6mm]{->}{b}{c}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{c}{d}{0}{-30}
\rput(\x{d},\y{d}){\rnode{d}{\psframebox[framesep=.5cm,linewidth=.6mm]{\begin{tabular}{@{}c@{}} \LaTeX\end{tabular}}}}
\ncline[linewidth=.6mm]{->}{c}{d}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{d}{e}{0}{-30}
\rput(\x{e},\y{e}){\rnode{e}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Device \\ Independent \\ Representation \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{d}{e}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{e}{f}{50}{0}
\rput(\x{f},\y{f}){\rnode{f}{\psframebox[framesep=.5cm,linewidth=.6mm]{\begin{tabular}{@{}c@{}}
xdvi \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{e}{f}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{f}{g}{40}{0}
\rput(\x{g},\y{g}){\rnode{g}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Screen \\ Rendering \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{f}{g}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{e}{h}{0}{-30}
\rput(\x{h},\y{h}){\rnode{h}{\psframebox[framesep=.5cm,linewidth=.6mm]{\begin{tabular}{@{}c@{}}
dvips \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{e}{h}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{h}{i}{0}{-25}
\rput(\x{i},\y{i}){\rnode{i}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Postscript \\ Representation \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{h}{i}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{i}{j}{50}{25}
\rput(\x{j},\y{j}){\rnode{j}{\psframebox[framesep=.5cm,linewidth=.6mm]{\begin{tabular}{@{}c@{}}
gv \end{tabular}}}}
\ncline[linewidth=.6mm,offsetB=.5]{->}{i}{j}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{j}{k}{40}{0}
\rput(\x{k},\y{k}){\rnode{k}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Screen \\ Rendering \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{j}{k}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{i}{l}{50}{0}
\rput(\x{l},\y{l}){\rnode{l}{\psframebox[framesep=.5cm,linewidth=.6mm]{\begin{tabular}{@{}c@{}}
lpr \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{i}{l}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{l}{m}{40}{0}
\rput(\x{m},\y{m}){\rnode{m}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Printed \\ Document \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{l}{m}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{pspicture}
}

\foilhead{Document Preparation with LaTeX}
\nonewpagenumber

\vspace{-.5cm}

\scalebox{.8}{
\begin{pspicture}(0,-9)(20,5)
\psset{unit=1mm}
\renewcommand{\arraystretch}{.7}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{origin}{a}{0}{50}
\rput[l](\x{a},\y{a}){\rnode{a}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Keyboard\\ Input\end{tabular}}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{a}{b}{55}{0}
\rput(\x{b},\y{b}){\rnode{b}{\psframebox[linewidth=.6mm]{\begin{tabular}{@{}c@{}}
Text\\ Editor\end{tabular}}}}
\ncline[linewidth=.6mm]{->}{a}{b}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{b}{c}{45}{0}
\rput(\x{c},\y{c}){\rnode{c}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Text and \\ Formatting \\ Commands\end{tabular}}}}
\ncline[linewidth=.6mm]{->}{b}{c}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{c}{d}{0}{-30}
\rput(\x{d},\y{d}){\rnode{d}{\psframebox[framesep=.5cm,linewidth=.6mm]{\begin{tabular}{@{}c@{}} \LaTeX\end{tabular}}}}
\ncline[linewidth=.6mm]{->}{c}{d}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{d}{e}{0}{-30}
\rput(\x{e},\y{e}){\rnode{e}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Device \\ Independent \\ Representation \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{d}{e}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{e}{f}{50}{0}
\rput(\x{f},\y{f}){\rnode{f}{\psframebox[framesep=.5cm,linewidth=.6mm]{\begin{tabular}{@{}c@{}}
xdvi \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{e}{f}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{f}{g}{40}{0}
\rput(\x{g},\y{g}){\rnode{g}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Screen \\ Rendering \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{f}{g}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{e}{h}{0}{-30}
\rput(\x{h},\y{h}){\rnode{h}{\psframebox[framesep=.5cm,linewidth=.6mm]{\begin{tabular}{@{}c@{}}
dvips \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{e}{h}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{h}{i}{0}{-25}
\rput(\x{i},\y{i}){\rnode{i}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Postscript \\ Representation \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{h}{i}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{i}{j}{50}{25}
\rput(\x{j},\y{j}){\rnode{j}{\psframebox[framesep=.5cm,linewidth=.6mm]{\begin{tabular}{@{}c@{}}
gv \end{tabular}}}}
\ncline[linewidth=.6mm,offsetB=.5]{->}{i}{j}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{j}{k}{40}{0}
\rput(\x{k},\y{k}){\rnode{k}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Screen \\ Rendering \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{j}{k}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{i}{l}{50}{0}
\rput(\x{l},\y{l}){\rnode{l}{\psframebox[framesep=.5cm,linewidth=.6mm]{\begin{tabular}{@{}c@{}}
lpr \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{i}{l}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{l}{m}{40}{0}
\rput(\x{m},\y{m}){\rnode{m}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
Printed \\ Document \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{l}{m}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{i}{n}{50}{-25}
\rput(\x{n},\y{n}){\rnode{n}{\psframebox[framesep=.3cm,linewidth=.6mm]{\begin{tabular}{@{}c@{}}
ps2pdf \end{tabular}}}}
\ncline[linewidth=.6mm,offsetB=-.6,nodesepB=-.1]{->}{i}{n}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psrelpoint{n}{o}{40}{0}
\rput(\x{o},\y{o}){\rnode{o}{\psframebox[linestyle=none]{\begin{tabular}{@{}c@{}}
PDF \\ Document \end{tabular}}}}
\ncline[linewidth=.6mm]{->}{n}{o}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{pspicture}
}


\foilhead{Using LaTeX}

\begin{itemize} 

\item Create {\tt\bfseries file.tex}
\item ``{\tt\bfseries latex file.tex}'' produces {\tt\bfseries file.dvi}
\item ``{\tt\bfseries dvips -o file.ps file}'' produces {\tt\bfseries file.ps}
\item Can be viewed using ``{\tt\bfseries gv file.ps}'' 
\item Practical tips for Linux users
\begin{itemize} 

\item Use of makefile, simultaneous editing and background viewing.
\item Almost interactive
\end{itemize}
\end{itemize}

\foilhead{Types of Formatting Commands}

\begin{itemize} 

\item Environment : Contains text to be typeset with a specific logical
                    structure.

      Figures, tables, lists, equations, etc.

\item Command : Produces some text in a specific way

      Section headings, footnotes etc.

\item Declaration : Customizes the formatting of the text in the scope
\end{itemize}

\foilhead{Environments}

\begin{itemize}

\item Environments explicate a logical structure

      Figures, tables, lists, equations, etc.

	
\begin{itemize} 

\item Names : {\tt\bfseries document, itemize, tabular, table, figure,} \ldots
\item Scope : {\tt \bfseries $\backslash$begin\{}env
	      {\tt \bfseries \}} ... 
	      {\tt \bfseries $\backslash$end\{}env
	      {\tt \bfseries \}} 
\end{itemize}

Example {\tt \bfseries 
$\backslash$begin\{document\} ... $\backslash$end\{document\}
}
\end{itemize}

\foilhead{Commands}

\begin{itemize}

\item Commands carry out a certain formatting

(May have side effects)

\begin{itemize} 

\item {\tt\bfseries $\backslash$chapter\{Introduction\} }

    	Begins a new page.
	
	Changes the numbering of sections, figures, equations etc. 

\item {\tt\bfseries $\backslash$foilhead\{Commands\} }

\item {\tt\bfseries $\backslash$textbf\{Text to be typeset in bold face\} }
\item {\tt\bfseries $\backslash$texttt\{Text to be typeset in typewrite font\} }
\item {\tt\bfseries $\backslash$footnote\{Text to be typeset as a footnote\} }
\end{itemize}

\end{itemize}

\foilhead{Types of Formatting Commands}

\begin{itemize}
\item Declarations
\begin{itemize} 

\item Customization of fonts, shape, thickness, numbering, etc.

	\begin{itemize}
      \item[] {\tt\bfseries $\backslash$tt} indicates {\tt\bfseries typewriter} font
      	
      {\tt\bfseries $\backslash$bf} indicates {\bfseries boldface} letter

      {\tt\bfseries$\backslash$em} indicates {\em emphasized} letters
	\end{itemize}

\item Scope 

      Delimited by ``{\tt\bfseries \{}'' and ``{\tt\bfseries \}}'', 
      ``{\tt\bfseries$\backslash$begin}'' and ``{\tt\bfseries$\backslash$end}'' pairs, or \ldots

	\end{itemize}

	\end{itemize}

\foilhead{\LaTeX: Basic Concepts}

\begin{itemize}
\item Document Classes ({\tt\bfseries article, report, book} etc)
\item Use of packages
\item Fonts and Colors
\item Sectioning: Chapters, sections, appendix etc
\item Lists and enumerations
\end{itemize}

\foilhead{\LaTeX: Basic Concepts}
\begin{itemize}
\item Paragraphs
\item Formatting of Math formulae
\item Tables and Figures
\item Page formatting
\item Footnotes 
\end{itemize}

\foilhead{\LaTeX: Basic Concepts}
\begin{itemize}
\item Multiple input files
\item Defining new commands
\item Importing files
\item Citations and references
\end{itemize}

\foilhead{\LaTeX : Advanced Concepts}
\begin{itemize}
\item Formatting programs/algorithms
\item Bibtex
\item Pictures 
\item Slides 
\end{itemize}

\foilhead{Formatting Programs}

\vspace*{-.5in}
\begin{itemize}
\item Default option : environment {\tt\bfseries tabbing}.
	Very crude.

\item Package {\tt\bfseries program} from CTAN.

       Optimised for Pascal kind of programs.
       No control over indentation.

\item My recommendation : {\tt\bfseries flexiprogram} package from

\mbox{\tt\bfseries http://www.cse.iitb.ac.in/uday/latex}.

\begin{initemize}
\item Allows indentation to be specified.
\item Designed for delimeters ``\{'' and ``\}''.
      Can be customised for other delimeters.
\item Allows line numbers from any (positive) integer.
\end{initemize}

\end{itemize}


\foilhead{Using Bibtex}

\begin{itemize} 

\item Separate bibliography database
\item Selecive inclusion of entries
\item Various types of entries 
\begin{itemize} 

\item books, papers in journals, papers in proceedings, theses, etc.
\item attributes like author, title, publisher, volume, issue, year etc.
\end{itemize}
\end{itemize}

\foilhead{Using Bibtex}
\begin{itemize} 
\item ``{\tt\bfseries latex file.tex}'' produces 
	{\tt\bfseries file.dvi}
	and {\tt\bfseries file.aux}
\item ``{\tt\bfseries bibtex file}'' reads {\tt\bfseries file.aux} and
	{\tt\bfseries references.bib}

	Produces {\tt\bfseries file.bbl}
\item ``{\tt\bfseries latex file.tex}'' includes
	{\tt\bfseries file.bbl} and assigns numbers/names to references and
	writes them into {\tt\bfseries file.aux}
\item ``{\tt\bfseries latex file.tex}'' reads 
	numbers/names from {\tt\bfseries file.aux} and inserts them
	in the place of $\backslash$cite commands and produces
	{\tt\bfseries file.dvi}
       
\end{itemize}

\foilhead{Preparing Pictures}

\begin{itemize} 

\item LaTeX environment {\tt\bfseries picture}
\item Use of {\bfseries xfig}

      The resulting picture can be included using 
     {\tt\bfseries epsfig}

\item Personal recommendation : Package {\tt\bfseries pstricks}
\end{itemize}

\foilhead{Preparing Pictures using {\tt\bfseries pstricks}}

\begin{itemize} 
\item Environment {\tt\bfseries pspicture}
\item Line and curve drawings
\item Frames, circles, ovals,
\item Nodes and Node connectors

	Relative to the placement of nodes
\item Labeling node connectors
\end{itemize}

\foilhead{The Power of {\tt\bfseries pstricks}}

\begin{itemize}
\item      Logical components of pictures and relationships bewtween them.

%$\Rightarrow$ Easy refinements/updates/corrections
\begin{itemize}

\item {\tt\bfseries xfig} does not recognise node-connectors.

{\normalsize
$\Rightarrow$ If you move a node, a node connector does not move with it.
}

\item {\tt\bfseries dia} recognises node-connectors but not the relationship between nodes.

{\normalsize
$\Rightarrow$ \parbox[t]{8in}{A node connector moves with a node but positioning of two nodes remains
 independent.}
}
\end{itemize}


\item  Very good quality of pictures.

\end{itemize}

\foilhead{Adding to the Power of {\tt\bfseries pstricks}}

\begin{itemize}
\item A limitation of {\tt\bfseries pstricks} 

      Absolute coordinates have to be calculated by the user.

\item Solution : package {\tt\bfseries pst-rel-points} available at

\mbox{\tt\bfseries http://www.cse.iitb.ac.in/uday/latex}.

\begin{itemize}
\item Defines declaration

{\tt\bfseries$\backslash$psrelpoint\{}Point 1 name
{\tt\bfseries\}\{}Point 2 name
{\tt\bfseries\}\{}$\boldmath \Delta X$
{\tt\bfseries\}\{}$\boldmath \Delta Y$
{\tt\bfseries\}}
\item Defines commands

{\tt\bfseries$\backslash$x\{}name of a point {\tt\bfseries\}} and
{\tt\bfseries$\backslash$y\{}name of a point {\tt\bfseries\}}
\end{itemize}
	
\end{itemize}


\foilhead{Preparing Slides}

\begin{itemize} 

\item Slitex : Didn't like the effect

\item Document class seminar : Not experimented with

\item {\tt\bfseries pdflatex} : Accepts (specific) kind of latex specification
       and produces {\tt\bfseries pdf} files.

       What about pictures ?

\item Personal recommendation : Document class 
	{\tt\bfseries foils}

	Need a better proof?
\end{itemize}

\foilhead{Preparing Slides Using {\tt\bfseries foils}}
\begin{itemize}
\item A customised version (used for these slides) available at
package \mbox{\tt\bfseries custom-foils}

\mbox{\tt\bfseries http://www.cse.iitb.ac.in/uday/latex}.

\item Basic Command in class 
	{\tt\bfseries foils}

        {\tt\bfseries$\backslash$foilhead\{}
	Heading of the slide
        {\tt\bfseries\}}
	
\end{itemize}

\foilhead{Package {\tt\bfseries custom-foils}}

\vspace*{-.75in}
\begin{itemize}
\item Customises the command {\tt\bfseries$\backslash$foilhead} and defines
	{\tt\bfseries$\backslash$titlefoil} 
\item Provides the following declarations
\begin{itemize}
\item {\tt\bfseries$\backslash$speaker\{\ldots \}}
\item {\tt\bfseries$\backslash$email\{\ldots \}}
\item {\tt\bfseries$\backslash$abbvspeaker\{\ldots \}}
\item {\tt\bfseries$\backslash$monthandyear\{\ldots \}}
\item {\tt\bfseries$\backslash$forum\{\ldots \}}
\item {\tt\bfseries$\backslash$affiliation\{\ldots \}}
\item {\tt\bfseries$\backslash$subject\{\ldots \}\{\ldots \}}
\item {\tt\bfseries$\backslash$markcopyright\{\ldots \}}

\end{itemize}
\end{itemize}

\foilhead{Resources}
\vspace*{-.5in}
\begin{itemize}
\item \LaTeX \ User's Guide and Reference Manual : Leslie Lamport
\item The \LaTeX \ Companion : Goosens, Mittelbach, and Samarin
\item The \LaTeX \ Graphics Companion : Goosens, Rahtz, and Mittelbach
\item The Comprehensive \TeX \ Archive Network (CTAN) : Internet 
\item Almost all packages available in common Linux distributions
\item Example files, slides, additional packages used in today's lecture :\\
\mbox{\tt\bfseries http://www.cse.iitb.ac.in/uday/latex}
\end{itemize}

%\foilhead{Acknowledgements}
%
%\begin{itemize} 
%\item Bageshri Sathe prepared the intial version of the transperancies
%%\item Pravina, Govind, and Shobhit tested the demos on LT machine

%\end{itemize}

\end{document}
