% Minimal file for testing interactive links between
% paper- and scree-versions of the same document
% CONTEXT file
% filename: linked-file.tex
% Sample is based on code provided by David Arnold
% Willi Egger
% 31-12-2004

\setupoutput[pdftex]

\setupcolors
  [state=start]

\setupinteraction
  [state=start,
   color=lightblue]

\setuplist
	[content]
    [alternative=a,
    interaction=pagenumber]

\startmode[screen]
  \setuppapersize
    [S6][S6]
  \setupinteraction
	[state=start,
	page=yes]
  \coupledocument
	[alternative]
	[\jobname-p]
	[section,subsection]
	[Alternative Version: paper version]
  \setuphead
   [section,subsection]
   [file=alternative]
\stopmode

\startmode[paper]
  \setuppapersize
    [A4][A4]
  \setupinteraction
	[state=start]
  \coupledocument%
	[alternative]
	[\jobname-s]
	[section,subsection]
 	[Alternative version: screen document]
  \setuphead
	[section,subsection]
	[file=alternative]
\stopmode

\starttext
  \completecontent
  \page
  \section[sect:one]{Tufte One}
     \input tufte
  \page

  \section[sect:two]{Tufte Two}
    \input tufte
    \page

  \section[sect:three]{Tufte Three}
    \input tufte
    \page

  \section[sect:four]{Tufte Four}
    \input tufte
\stoptext