% ConTeXt file
% filename: test-placefigures.tex

\usemodule[t][folding]
\useMPlibrary[dum]
\usemodule[database]


\usetypescriptfile[iwona-medium]
\usetypescript[iwona-medium]
\setupbodyfont[iwona-medium,8pt]

\mainlanguage[de]

\setuptolerance[tolerant,stretch]

\setuppagenumbering[location={footer,right},alternative=singlesided]%,alternative=doublesided]

\setupcaption[figure][number=no]

\setupwhitespace[medium]

\definepapersize[HochformatSeite]
    [width=70mm,
     height=110mm]

\definepapersize[Mypaper]
		[width=350mm,
		 height=110mm]

\setuppapersize[HochformatSeite][Mypaper]

\setuplayout
    [topspace=5.0mm,
     height=middle,
     header=0mm,
     footer=3mm,
     backspace=5.0mm,
     width=middle,
     margin=0mm,
     marking=on,
     location=middle]

\setuppaper[nx=5,ny=1,dx=0pt,dy=0pt]
\setuparranging[XY]

\setupTABLE[column][1][align=right,width=30mm,frame=off]
\setupTABLE[column][2][align=left,width=30mm,frame=off]

\defineseparatedlist
	[Busstopdata]
	[command=\FillIn,
   separator={;}]

\define[4]\FillIn%
	{\page
    {\tfc\bf {#1}}
    \godown[2\lineheight]%[5mm]
    \startplacefigure
        [location=center,title=,number=]
        {\externalfigure[dummy][height=60mm,width=60mm]}
    \stopplacefigure
    \godown[5mm]
    \bTABLE
        \bTR \bTD Winkel zu Nord: \eTD \bTD {#4}° \eTD \eTR
        \bTR \bTD GPS-Koordinaten: \eTD \bTD {#2} \eTD \eTR
        \bTR \bTD Höhe: \eTD \bTD {#3} m \eTD \eTR
    \eTABLE
    \page}

\processseparatedfile[Busstopdata][stops.dat]