\documentclass[a4paper,twoside,titlepage,openright]{report}

\usepackage{fancyhdr}
\usepackage{epsfig}
\usepackage{t1enc}
\usepackage{captcont}
\usepackage[norules,nolineno]{lgrind}
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{float}
\usepackage[chapter]{algorithm}
\usepackage[noend]{algorithmic}
\usepackage{wasysym}
\usepackage{psfrag}
\input{newcommands.tex}

\DeclareGraphicsRule{.fig}{eps}{.eps.bb}{`fig2dev -Leps #1}

\floatstyle{ruled}
\restylefloat{figure}
\restylefloat{table}
\newfloat{nottobeused}{tbp}{lotfa}

\title{Dynamic memory allocation\\ 
    in small embedded systems\\
    \vspace{1cm}
    Master thesis\\
    Departement of Computer Science\\
    Lund Institute of Technology}
\author{Ola Nilsson D94 \\
ola@itinerary.com
\vspace{1cm}\\
	Computer Science supervisor: Roger Henriksson\\
    roger.henriksson@cs.lth.se\\
	Itinerary Systems supervisor: Jesper Nilsson\\
    jesper@itinerary.com}
\date{30 November 2001}

\parskip=2ex
\parindent=0em
\setcounter{tocdepth}{1}

%Inkludera Johan Glanes kommentarer eller inte.
%\newcommand{\glane}[2]{\framebox{#1}\marginpar{#2}}
\newcommand{\glane}[2]{{#1}}

\begin{document}
\pagestyle{empty}
\input{titlepage.tex}
\cleardoublepage
\input{inc_abstract.tex}

\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{}
\fancyhead[LE,RO]{\bfseries\thepage}

\pagenumbering{roman}

\tableofcontents
\listof{nottobeused}{List of Figures, Tables, and Algorithms}
\addcontentsline{toc}{chapter}%
{\protect{List of Figures, Tables, and, Algorithms}}
\addtocontents{toc}{\addvspace {10pt }}
%\listoftables
%\listoffigures
%\listofalgorithms
\cleardoublepage
\fancyhead[LO]{\bfseries\rightmark}
\fancyhead[RE]{\bfseries\leftmark}

\pagenumbering{arabic}







