ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Willi Egger <w.egger@boede.nl>
Subject: \coupledocument
Date: Fri, 31 Dec 2004 19:54:52 +0100	[thread overview]
Message-ID: <41D5A07C.4040603@boede.nl> (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

                 reply	other threads:[~2004-12-31 18:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41D5A07C.4040603@boede.nl \
    --to=w.egger@boede.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).