
%====================================================
%
%  Einstellen der Sprache auf deutsch

\language[de]
\mainlanguage[de]

%====================================================
%
%  PDF Version 1.4

\pdfminorversion=4

%====================================================
%
%  PDF Bookmark Einstellungen

\setupinteraction
    [state=start,
    color=,
    contrastcolor=,
    style=]

\placebookmarks[chapter,section,subsection][chapter,section]
%\setupinteractionscreen[option=bookmark]

%\setupinteractionscreen[option=bookmark] % open bookmarks
\setupinteractionscreen[option=bookmark,option=fit] % closed bookmarks!
%\placebookmarks[section,subsection][section]


%====================================================
%
%  Seitenlayout definieren

\setuplayout[
    header=1cm,
    footer=1cm,
    width=16.5cm,
    topspace=1.98cm
    ]

%====================================================
%
%  Grundfont definieren

%HELVETICA
\usetypescript[helvetica][texnansi]
\setupbodyfont[helvetica,ss,10pt]


%====================================================
%
%  Font Defines

\definefont[BigFontTwo][Bold sa 1.2]   %%RegularSlanted
\definefont[ChapterHeaderFont][Normal sa 1.6]   %%RegularSlanted

%\setuphead
%   [chapter]
%   [style=\BigFontTwo,
%   page=no]
\setuphead
   [chapter]
   [style=\ChapterHeaderFont,
   page=no]

%==============Setup Paragraph Formatting==============
\setupwhitespace[big]
\setupindenting[no,medium,next]

\starttext

%===============================================
%
%   KOPF- UND FUSSZEILEN

% Header und Footer zurücksetzen
\setupheadertexts[]
\setupfootertexts[]

\startsetups[header]
   \framed[width=\textwidth,frame=off]
     { \it \headnumber[chapter] \getmarking[chapter]}
\stopsetups


\startsetups[footer]
    \framed[width=\textwidth,frame=off]
     {  \pagenumber}
\stopsetups

\setupheadertexts[\setups{header}]
\setupfootertexts[\setups{footer}]

%=================================================
%
%   TITELSEITE

\setuppapersize
  [A4][A4]
\definelayer
	[LyTitlepage]
	[width=\paperwidth,
	 height=\paperheight]
\setupbackgrounds
	[page]
	[background=LyTitlepage]

\setupframed
	[align=middle,
	 frame=on]

\useexternalfigure[tp_erd][images/cow.pdf][height=5.5cm]
\useexternalfigure[tp_dateneingeben][images/cow.pdf][height=4cm]

\startstandardmakeup
	\setlayerframed
		[LyTitlepage]
		[voffset=24.6cm,
        hoffset=2.5cm,
		 preset=lefttop,
		 width=5cm,
		 frame=off,
		 align=right]
		{Ing. Mag (FH) Wolfgang Murth\\
            W09.V1.IT1\\
            Oktober 2009\\
            }
	\setlayerframed
		[LyTitlepage]
		[voffset=12cm,
        hoffset=2.5cm,
		 preset=lefttop,
		 frame=off,
         width=\textwidth,
		 align=right]
		{\externalfigure[tp_erd]
            }

	\setlayerframed
		[LyTitlepage]
		[voffset=16cm,
        hoffset=2.5cm,
		 preset=lefttop,
		 frame=off,
         width=\textwidth,
		 align=left]
		{\externalfigure[tp_dateneingeben]
            }

    \raggedcenter \vskip 0cm \definedfont[Bold sa 2]\setstrut \strut
    Vorlesung\\
    Grundlagen Wirtschaftsinformatik\\
    Vom ER Diagramm zur Access Datenbank\\
    V1.IT1 - BAFI 2009\\
    \vfill
\stopstandardmakeup


% Linie bei Kopf und Fußzeile setzen
% Muss nach der Titelseite sein, da sonst auch auf der
% Titelseite die Linie zu sehen ist
% Linie oberhalb des Fußtextes
\startuniqueMPgraphic{nicebottom}
   draw bottomboundary OverlayBox
     leftenlarged 6pt rightenlarged 6pt
     shifted (0,.39HeaderHeight) ;
   setbounds currentpicture to OverlayBox ; % forces dimensions
\stopuniqueMPgraphic
\defineoverlay[nicebottom][\uniqueMPgraphic{nicebottom}]

\startuniqueMPgraphic{nicetop}
   draw bottomboundary OverlayBox
     leftenlarged 6pt rightenlarged 6pt
     shifted (0,.18HeaderHeight) ;
   setbounds currentpicture to OverlayBox ; % forces dimensions
\stopuniqueMPgraphic
\defineoverlay[nicetop][\uniqueMPgraphic{nicetop}]

%!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
%!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
%!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
%!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

%\setupbackgrounds[header][text][background=nicetop]
%\setupbackgrounds[footer][text][background=nicebottom]

%!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
%!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
%!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
%!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

%=================================================
%
%   FARBENDEFINITION

\definecolor [grey] [r=.9, g=.9, b=.9]
\definecolor [tableheader] [r=.6, g=0, b=.2]%[r=.6 g=0 b=.2]
\definecolor [caution] [r=1, g=.78, b=.62]

%=================================================
%
%   Standardzeilenabstand

\setupinterlinespace[line=1.5\bodyfontsize]

%=================================================
%
%   EXTERNE IMAGES DEFINIEREN

\useexternalfigure[ok][images/ok.png][height=10pt]


%=================================================
%
%   TOC
%   alternative=c, space to the page number is filled with dots

\setupcombinedlist[content][level=3,alternative=c]
\setuplist[chapter][width=7mm,style=bold]
\setuplist[section][width= 7 mm, margin=7mm]
\setuplist[subsection][width=10mm, margin=14mm]


\completecontent

% List of Figures with dots
%\completelistoffigures[alternative=c]
\page[yes]

%\input chapters/02_commands
%\input chapters/Access

\chapter{TEST1}
\input tufte

\chapter{TEST2}
\input tufte

\stoptext


