\documentclass[a4paper,
                11pt,
                headsepline,
                halfparskip,
                final, 					
                titlepage,
                DIV11]{scrreprt}
%Bermerkung zu einigen Parametern:
%+final (bindet bilder ein) vs. draft (bindet platzhalter für bilder ein!)
%+halfparskip (halber Zeilenabstand); parskip (ganzer); parindent
% (kein Abstand, nur Einrückung)
%+BCOR10mm (Bundkorrekturfaktor)
%+DVI14 (Satzspiegel ändern)




% Fonttabelle mit 256 Zeichen
\usepackage[T1]{fontenc}
% moderner Font
%\usepackage{lmodern} 

% Hyperlatex einbinden
\usepackage{hyperlatex}

% deutsche umlaute und sonderzeichen
\W\usepackage[german]{babel} %hyperlatex fordert german
\T\usepackage[ngerman]{babel}

\usepackage[ansinew]{inputenc}

% Grafikpaket
\T\usepackage[dvips]{graphicx}

% Nummerierung der Abschnitte bis in die angegebene Tiefe durchführen
\T\addtocounter{secnumdepth}{+3}

% Kopf- und Fusszeilen
\T\usepackage[automark]{scrpage2}
\T\pagestyle{scrheadings}
\T\ohead{\pagemark}
\T\ihead{\headmark}
\T\chead{}
\T\cfoot{}
% Formatierung von K+Fzeilen
\renewcommand{\headfont}{%
  \normalfont\sffamily}
\renewcommand{\pnumfont}{%
  \normalfont\sffamily
}

% Abstand nach Satzzeichen einstellen
\T\frenchspacing




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                              %
%  Zusatzpakte                 %
%                              %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


    
% <für Testplan>
\usepackage{amssymb} 	%Symbole
\usepackage{amsfonts} 
\usepackage{ifthen}

% Seiten im Querformat
\usepackage{lscape}

% Tabellen
\usepackage{array}
\usepackage{ltxtable}
\usepackage{ragged2e,array,longtable}
\usepackage{booktabs}		%schoenere tabellen
\usepackage{rotating}		% Text drehen
\usepackage{threeparttable} %fussnoten innerhalb von Tabellen

% Farben
\usepackage{color}
\definecolor{lightgray}{gray}{0.9} 

% erweiterte Listen
\usepackage{paralist}

% Quellcode
\usepackage{listings}
% workaround fuer listingverzeichnis

\W\begin{latexonly}
\makeatletter% --> De-TeX-FAQ
\renewcommand*{\lstlistoflistings}{%
  \begingroup
    \if@twocolumn
      \@restonecoltrue\onecolumn
    \else
      \@restonecolfalse
    \fi
    \lol@heading
    \setlength{\parskip}{\z@}%
    \setlength{\parindent}{\z@}%
    \setlength{\parfillskip}{\z@ \@plus 1fil}%
    \@starttoc{lol}%
    \if@restonecol\twocolumn\fi
  \endgroup
}
\makeatother% --> \makeatletter
% Ueberschrift umbenennen
\renewcommand\lstlistlistingname{List of Source Codes}
% JS-Definition
\lstdefinelanguage{JavaScript}
  {morekeywords={break, else, new, var, case, finally, return, void, catch, for, switch, while, continue, function, this, with, default, if, throw, delete, in, try, do, instanceof, typeof,
abstract, enum, int, short, boolean, export, interface, static, byte, extends, long, super, char, final, native, synchronized, class, float, package, throws, const, goto, private, transient,
debugger, implements, protected, volatile, double, import, public},
   sensitive,
   morecomment=[l]//,
   morecomment=[s]{/*}{*/},
   morestring=[b],
   morestring=[b]',
  }[keywords,comments,strings]
% default code style
\lstset{numbers=left, numberstyle=\tiny, numbersep=5pt,
language=JavaScript,showstringspaces=false, frame=tb,
basicstyle=\scriptsize,captionpos=b,
backgroundcolor=\color{lightgray}} 
\lstset{moredelim=[is][\color{red}]{/*}{*/}}
\W\end{latexonly}


% Literaturverweise
\usepackage[square]{natbib}


%% URL
\usepackage{url}

\W\begin{latexonly}
% 'small' style for url package
\makeatletter
\def\url@smallstyle{%
  \@ifundefined{selectfont}{\def\UrlFont{\sf}}{\def\UrlFont{\small}}}
\makeatother
% 'scriptsize' style for url package 
\makeatletter
\def\url@scriptstyle{%
  \@ifundefined{selectfont}{\def\UrlFont{\sf}}{\def\UrlFont{\scriptsize}}}
\makeatother
% 'normalsize' style for url package 
\makeatletter
\def\url@normalstyle{%
  \@ifundefined{selectfont}{\def\UrlFont{\sf}}{\def\UrlFont{\normalsize}}}
\makeatother
% standard urlstyle
\urlstyle{small}
\W\end{latexonly}

% new command to prevent an extra line before an url (only if no char in front) 
% empty char = ec
\newcommand\ec{\texonly{\hspace{-0.1cm}~}}








%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                              %
%  Indices               %
%                              %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%% Für Abkürzungsverzeichnis
%  makeindex diplomarbeit_de.glo -s nomencl.ist -o diplomarbeit_de.gls
%  bei neueren nomencl-Versionen: makeindex diplomarbeit_de.nlo -s nomencl.ist -o diplomarbeit_de.nls
\usepackage{nomencl}

  % Punkte zw. Abkürzung und Erklärung
  \T\setlength{\nomlabelwidth}{.20\hsize}
  \renewcommand{\nomlabel}[1]{#1 \dotfill}
  % Verzeichnisname ändern
  \renewcommand{\nomname}{List of Abbreviations}
  % Zeilenabstände verkleinern
  \T\setlength{\nomitemsep}{-\parsep}
  %\T\makeglossary %bei neueren nomencl-Versionen: 
  \T\makenomenclature

  % Hervorheben der Anfangsbuchstaben
  \usepackage[normalem]{ulem}
  \newcommand{\markup}[1]{\uline{#1}}

\W\begin{latexonly}
%% Anhang-Inhaltsverzeichnis
\T\makeatletter% --> De-TeX-FAQ
\newcommand*{\maintoc}{% Hauptinhaltsverzeichnis
  \begingroup
    \@fileswfalse% kein neues Verzeichnis öffnen
    \renewcommand*{\appendixattoc}{% Trennanweisung im Inhaltsverzeichnis
      \value{tocdepth}=-10000 % lokal tocdepth auf sehr kleinen Wert setzen
    }%
    \tableofcontents% Verzeichnis ausgeben
  \endgroup
}
\newcommand*{\appendixtoc}{% Anhangsinhaltsverzeichnis
  \begingroup
    \T\edef\@alltocdepth{\the\value{tocdepth}}% tocdepth merken
    \setcounter{tocdepth}{-10000}% Keine Verzeichniseinträge
    \renewcommand*{\contentsname}{% Verzeichnisname ändern
      List of Appendices}%
    \renewcommand*{\appendixattoc}{% Trennanweisung im Inhaltsverzeichnis
      \setcounter{tocdepth}{\@alltocdepth}% tocdepth wiederherstellen
    }%

    \tableofcontents% Verzeichnis ausgeben

    \setcounter{tocdepth}{\@alltocdepth}% tocdepth wiederherstellen
  \endgroup
}
\newcommand*{\appendixattoc}{% Trennanweisung im Inhaltsverzeichnis
}
\T\g@addto@macro\appendix{% \appendix erweitern
  \T\if@openright\cleardoublepage\else\clearpage\fi% Neue Seite
  \T\addcontentsline{toc}{chapter}{\appendixname}% Eintrag ins Hauptverzeichnis
  \T\addtocontents{toc}{\protect\appendixattoc}% Trennanweisung in die toc-Datei
\T}
\T\makeatother
\W\end{latexonly}






%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                              %
%  selbstdefinierte Werte      %
%                              %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\W\begin{latexonly}
% Tabellenspaltenbreiten für Maptool-Vergleich
\newlength{\maptoolspalte}
\setlength{\maptoolspalte}{1.1cm}
\newlength{\maptooltab}
\setlength{\maptooltab}{0.2cm}

% Tabellenspaltenbreiten für Anhang (Bestandsanalyse)
\newlength{\spaltenbreiteLi}
\newlength{\spaltenbreiteRe}
\setlength{\spaltenbreiteLi}{4.8cm}
\setlength{\spaltenbreiteRe}{9.6cm}	

% Grafikhoehe für CC logos
\newlength{\cclicimgheight}
\setlength{\cclicimgheight}{10mm}
\W\end{latexonly}

% franzoesische Anfuehrungszeichen
\newcommand{\frz}[1]{\texorhtml{>>}{\htmlsym{raquo}}{#1}\texorhtml{<<}{\htmlsym{laquo}}}

% zentrales URL Abrufdatum
\newcommand{\checkURL}{\scriptsize[Last Viewed: May 15, 2007]}   
\newcommand{\checkDate}{May 15, 2007}   

% Standard-Zeilenanzahl pro Satzspiegel
\T\setlength{\textheight}{42\baselineskip}

% ermöglicht Hyperlinks in pdf-Dateien **soll _letztes_ Paket sein** 
\usepackage[dvips,bookmarks,bookmarksnumbered]{hyperref}
% ermöglicht URL-Umbruch (Hyperlinks weiter aktiv)
\usepackage{breakurl}





%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                              %
%  Hyperlatex                  %
%                              %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
\begin{ifhtml}

\htmldirectory{html}
\htmlname{index_en}
\htmlcss{css/style.css}

% Nummerierungstiefe
\htmldepth{2}
\setcounter{htmldepth}{2}
\setcounter {secnumdepth}{2}
\newcounter {chapter}
\newcounter {section}[chapter]
\newcounter {subsection}[section]
\renewcommand{\thecapter}{\arabic{chapter}}
\renewcommand{\thesection}{\thechapter.\arabic{section}}
\renewcommand{\thesubsection}{\thesection.\arabic{subsection}}
\htmlautomenu{2}

\htmlpanelfield{Contents}{index_en.html}
\htmlpanelfield{\htmlimg{images/icons/german.png}{German}}{\HlxThisUrl}
\newcommand{\HlxIcons}{images/icons/}

% Titel
\htmltitle{Thesis - Smart Map Browsing}

% Footer
\htmladdress{$\copyright$  June 1, 2007 | 
\xlink{Emanuel Sch{\"u}tze}{mailto:emanuel at smartmapbrowsing.org} |
some rights reserved.
\html{br/}
\html{small}
This work is licensed under the Creative Commons License 
\texorhtml{\url}{\xlink}{Attribution-ShareAlike 2.0 Germany}{http://creativecommons.org/licenses/by-sa/2.0/de/deed.en}. 
\html{/small}
}

% jede url als link
\newcommand{\url}[1]{\xlink{#1}{#1}}
\newcommand{\HlxIllegalAccent}[2]{#2}

% Bibliography
\newenvironment{thebibliography}[1]%
    {\chapter*{Bibliography}\begin{description}}{\end{description}}
\newcommand{\htmlbibitem}[2]{\label{#2}\item[{[#1]}]}

% Fussnoten
\newenvironment{thefootnotes}%
   {\chapter*{Footnotes}
   \begin{description}}%
   {\end{description}}
\newcommand{\htmlfootnoteitem}[2]%
   {\normalsize\label{footnote-#1}\item[(#1)]#2}

% div. Symbole, Zeichen etc.   
\renewcommand{\checkmark}{x}
\renewcommand{\tnote}[1]{\html{sup}{#1}\html{/sup}}
\renewcommand{\circ}{\htmlsym{bull}}
\renewcommand{\hspace}[1]{\htmlsym{nbsp}\htmlsym{nbsp}\htmlsym{nbsp}}
\renewcommand{\rightarrow}{\htmlsym{rarr}}
\renewcommand{\leftarrow}{\htmlsym{larr}}
\renewcommand{\uparrow}{\htmlsym{uarr}}
\renewcommand{\downarrow}{\htmlsym{darr}}

\renewcommand{\newpage}{}
\renewcommand{\clearpage}{}
\renewcommand{\linebreak}{}
\renewcommand{\setlength}{}
\renewcommand{\textheight}{}
\renewcommand{\baselineskip}{}
\renewcommand{\pageref}{}
\renewcommand{\addtocontents}{}
\renewcommand{\vspace}{}
\renewcommand{\newline}{\html{br/}}
\renewcommand{\thispagestyle}{}
\end{ifhtml}







%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% BEGIN

\begin{document}

% HTML Titel und Vorwort inkl. Inhaltsverzeichnis
\begin{ifhtml}

\htmlattributes*{td}{valign='top'}
\begin{tabular}{ll}
\html{h1}{Thesis}
\htmlattributes*{td}{width='10\%' align='right}&
\html{nobr}
\link{\htmlimg{images/icons/german.png}{German}}{index_de.html}
\small{\link{german}{index_de.html} | \link{Home}{../index_en.html}}
\html{/nobr}
\end{tabular}
\html{/h1}

\html{h3}{\htmlsym{raquo}Current state of technology and potential of \textit{Smart Map Browsing} in web browsers}
- using the example of the Free web mapping application \textit{OpenLayers}\htmlsym{laquo} \html{/h3}

submitted by Emanuel Sch{\"u}tze on June 1, 2007\\
Program of Study: Multimedia Technology, Bremen University of Applied Sciences

~\\\small Thesis in \htmlimg{images/icons/pdf.png}{pdf} 
\xlink{pdf format}{../thesis_EmanuelSchuetze.pdf} (2.4 MB)
\normalsize

~\\\\
\html{h3}{Contents}\html{/h3}
\end{ifhtml}



% Deckblatt
\T\input{deckblatt_en.tex}

% Impressum
\T\input{impressum_en.tex}

% Zusammenfassung
\input{abstract_en.tex}

% Inhaltsverzeichnis
\clearpage
\T\pdfbookmark[1]{\contentsname}{toc}
\T\maintoc

%manuelles Hinzufügen der Anhangskapitel
\begin{latexonly}
\contentsline{section}{\numberline{A}Current State Analysis}{\pageref{anhang:bestandsanalyse}}{-}
\contentsline{section}{\numberline{B}Classification Diagram}{\pageref{anhang:klassendiagramm}}{-}
\contentsline{section}{\numberline{C}Test Plan}{\pageref{anhang:testplan}}{-}
\contentsline{section}{\numberline{D}Creative Commons License}{\pageref{anhang:lizenz}}{-}
\contentsline{section}{\numberline{E}Affidavit}{\pageref{anhang:erklaerung}}{-}
\contentsline{section}{\numberline{F}CD-ROM}{\pageref{anhang:cd}}{-}
\end{latexonly}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Hauptteil

% gibt alle (auch nicht verwendete) Literaturquellen aus
%\nocite{*}

\input{hauptteil_en.tex}



\clearpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Indices

% manueller Seitenumbruch im toc
%\addtocontents{toc}{\protect\newpage}}
\addtocontents{toc}{\protect\vspace{0.5cm}}

% 'Verzeichnis' zu toc hinzu; bookmark manuell setzen
\begin{latexonly}
\begingroup 
\let\WriteBookmarks\relax 
\addcontentsline{toc}{chapter}{Indices}
\endgroup
\pdfbookmark[0]{Indices}{verz}
\label{verz}
\end{latexonly}

% Litereaturverzeichniss
\begin{latexonly}
\setlength{\textheight}{44\baselineskip}
\pdfbookmark[1]{Bibliography}{Bibliography}
\label{Bibliography}
\begingroup
  \let\WriteBookmarks\relax
  \addcontentsline{toc}{section}{Bibliography}
\endgroup
\bibliographystyle{plainnat}
\T\urlstyle{small}
\bibliography{verzeichnisse/literaturliste.bib}
\setlength{\textheight}{42\baselineskip}
\end{latexonly}
% extra Bibliography für Hyperlatex
\W\input{diplomarbeit_web.bbl}


% Abkürzungsverzeichniss
\begin{latexonly}
\pdfbookmark[1]{List of Abbreviations}{List of Abbreviations}
\label{List of Abbreviations}
\begingroup
  \let\WriteBookmarks\relax
  \addcontentsline{toc}{section}{List of Abbreviations}
\endgroup
%\printglossary %bei neueren nomencl-Versionen: 
\printnomenclature
\input{verzeichnisse/abkuerzungsverzeichnis_en.tex}
\end{latexonly}

% Table of Figures
\begin{latexonly}
\clearpage
\pdfbookmark[1]{List of Figures}{List of Figures}
\label{List of Figures}
\begingroup
  \let\WriteBookmarks\relax
  \addcontentsline{toc}{section}{List of Figures}
\endgroup
\listoffigures
\end{latexonly}


% List of Tables
\begin{latexonly}
\clearpage
\pdfbookmark[1]{List of Tables}{List of Tables}
\label{List of Tables}
\begingroup
  \let\WriteBookmarks\relax
  \addcontentsline{toc}{section}{List of Tables}
\endgroup
\listoftables
\end{latexonly}

% Listing
\begin{latexonly}
\clearpage
\pdfbookmark[1]{List of Source Codes}{List of Source Codes}
\label{List of Source Codes}
\begingroup
  \let\WriteBookmarks\relax
  \addcontentsline{toc}{section}{List of Source Codes}
\endgroup
\lstlistoflistings
\end{latexonly}





%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Anhang
%
\clearpage

\input{anhang_en.tex}



\end{document}
