% To produce Postscript and PDF:
%    latex template; latex template; 
%    dvips -o template.ps template; ps2pdf template.ps


\documentclass[a4paper,11pt]{article}
\usepackage{times}          % Use the Times font.
\usepackage[T1]{fontenc}    % Check that ÖÄÅöäå come out ok!
\usepackage{epsfig}         % If you embed EPS pictures.

\setlength{\parindent}{0mm} % Do not indent the 1st line of a paragraph.
\setlength{\parskip}{3mm}   % Add space between paragraphs.

% Save some paper by stuffing more text on each page:
% A4: 210mm x 297mm, approximately 35 mm margins on every side.
\addtolength{\topmargin}{-11mm}    
\addtolength{\textheight}{22mm}    
\addtolength{\oddsidemargin}{-6mm} 
\addtolength{\textwidth}{12mm}     

% This creates the header.
\makeatletter\renewcommand{\@oddhead}%
{\fontsize{9}{12}\selectfont HUT TML 2002 \hfill T-110.551 Seminar on Internetworking}
\makeatother


\begin{document}


%============================================================


\title{A Latex Template for the Internetworking Seminar}
\author{Tom Tutor \\
        Helsinki University of Technology \\
        Laboratory for All Things Cool and Weird \\
        \texttt{Tom.Tutor@hut.fi}}
\date{}         % Do not print the date on the final paper!
\maketitle


\begin{abstract}
  This Latex template can be used for typesetting
  the seminar papers for the Internetworking Seminar.
\end{abstract}


%============================================================


\section{Introduction}


%============================================================


\section{Simple things first}

In this section, we give some simple examples of Latex mark-up.
Sec.~\ref{sec:emphasis} emphasizes important points and
Sec.~\ref{sec:math} gives examples of math formulas.
Finally, \ref{sec:list} demonstrates lists.


%------------------------------------------------------------


\subsection{Emphasizing text}\label{sec:emphasis}

\textit{Italics} is a good way to emphasize printed text. However,
\textbf{boldface} looks better when converted to HTML.

Paragraphs are separated by an empty line in the Latex source code.
Latex puts extra space between sentences, which you must suppress
after a period that does not end a sentence, e.g.\ after this acronym.

Cross-references to figures (Fig.~\ref{fig:mypicture1}), tables
(Table~\ref{tab:mytable1}), other sections (Sec.~\ref{sec:emphasis})
are easy to create. 


%------------------------------------------------------------


\subsection{Mathematics}\label{sec:math}

In the mathematics mode, you can have subscripts such as $K_{master}$
and superscripts like $2^x$. Longer formulas may be put on a separate
line:
\[ \emptyset \in \emptyset \; \Rightarrow \; E \neq mc^2. \]

You may also want to number the formulas like Eqn.~\ref{eqn:myequation1}
below.
\begin{equation}\label{eqn:myequation1}
C = E_{K_{public}}(P) = P^e. \hspace{10mm}   P = D_{K_{private}}(C) = C^d.
\end{equation}



%------------------------------------------------------------


\subsection{Make a list}\label{sec:list}

Lists can have either bullets or numbers on them. 

\begin{itemize}
\item one item
\item another item, which is an exceptionally long one for an item
  and consequently continues on the next line.
\end{itemize}

Lists can have several levels. Item~\ref{kukkuu} below contains
another list.
\begin{enumerate}
\item the fist item \label{kukkuu}
  \begin{enumerate}
  \item the first subitem 
  \item the second subitem
  \end{enumerate}
\item the second item
\end{enumerate}


%============================================================


\section{More complex stuff}

This section provides examples of more complex things.


%------------------------------------------------------------


\subsection{Data served on a table}


Table~\ref{tab:mytable1} presents some data in tabular form. 

\begin{table}[t]
  \begin{center}
    \begin{tabular}{|l|lr|}
    \hline
    Protocol & Year &  RFC \\
    \hline
    TCP      & 1981 &  793 \\
    ISAKMP   & 1998 & 2408 \\
    Photuris & 1999 & 2522 \\
    \hline
    \end{tabular}
    \caption{A table with some protocols}
    \label{tab:mytable1}
  \end{center}
\end{table}


%------------------------------------------------------------


\subsection{Adding references}\label{sec:references}

Do not forget to give pointers to the literature
\cite{DifHel76,HarCar98,AbaNee94}.  One more reference
\cite{Amoroso94}.

If you plan to write with Latex regularly, create your own Bibtex
database and use Bibtex to typeset the bibliographies automatically.
In the long run, it will save you a lot of time and effort compared to
compiling reference lists by hand.


%------------------------------------------------------------


\subsection{Embedded pictures}\label{sec:pictures}

Fig.~\ref{fig:mypicture1} is an embedded EPS picture. Other types of
pictures must be converted to EPS (embedded Postscript).

\begin{figure}[t]
  \begin{center}
    \epsfig{file=mypicture1.eps}
    \caption{An embedded EPS picture}
    \label{fig:mypicture1}
  \end{center}
\end{figure}



%============================================================


\section{Yet another section title}


%============================================================


\section{Conclusion}


%============================================================



\begin{thebibliography}{1}

\bibitem{AbaNee94}
Mart\'in Abadi and Roger Needham.
\newblock Prudent engineering practice for cryptographic protocols.
\newblock In \textit{Proc. 1994 IEEE Computer Society Symposium on Research 
  in Security and Privacy}, Oakland, CA USA, May 1994. IEEE Computer Society
  Press.

\bibitem{Amoroso94}
Edward Amoroso.
\newblock \textit{Fundamentals of Computer Security Technology}.
\newblock Prentice Hall, 1994.

\bibitem{DifHel76}
Whitfield Diffie and Martin~E. Hellman.
\newblock New directions in cryptography.
\newblock \textit{IEEE Transactions on Information Theory}, IT-22(6):644--654,
  November 1976.

\bibitem{HarCar98}
Dan Harkins and Dave Carrel.
\newblock The Internet key exchange (IKE).
\newblock RFC 2409, IETF Network Working Group, November 1998.

\end{thebibliography}


% Of course, all advanced Latex users create their references 
% list automatically with Bibtex:
%
%\bibliographystyle{plain} 
%\bibliography{my-bib-database}
%
% In that case, remember to run bibtex:
% latex template; bibtex template; latex template; latex template; 

\end{document}










