ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \coupledocument
@ 2004-12-31 18:54 Willi Egger
  0 siblings, 0 replies; only message in thread
From: Willi Egger @ 2004-12-31 18:54 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 706 bytes --]

Hi,

At the moment I am trying to achieve an interactive document, where the 
sectionheading of the paper-version are linked to corresponding 
sectionheading in the screen document.
The code is based on an example as provided by David Arnold.

In the attached example I do not get interactivity with coloured 
sectionheadings.

When compiling the original example from David then I get only 
interactive jumps from the sectionheadings in the paper-version to the 
screen document. But there is no way to jump back to the paper-version 
i.e. the interactivity is not active in the screen document.

It seems, that there is something broken in the \coupledocument command?

Thanks for any suggestions

Willi

[-- Attachment #2: make --]
[-- Type: text/plain, Size: 190 bytes --]

texexec --mode=paper --suffix="-p" linked-file
texexec --mode=screen --suffix="-s" linked-file
texexec --mode=paper --suffix="-p" linked-file
texexec --mode=screen --suffix="-s" linked-file

[-- Attachment #3: linked-file.tex --]
[-- Type: text/plain, Size: 1217 bytes --]

% 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

[-- Attachment #4: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-12-31 18:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-31 18:54 \coupledocument Willi Egger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).