ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Rene van Hassel <r.hassel1@chello.nl>
To: ntg-context@ntg.nl
Subject: problem with cross references
Date: Mon, 2 Jan 2012 21:23:16 +0100	[thread overview]
Message-ID: <20120102212317.PHXG5.10018.root@viefep12> (raw)

Hello Members,


there is a problem with cross references.
See the piece of code beneath this text.
Under texexec the piece of code works well.
With context there is a problem, the cross references 
of the item(s) don't work, the pdf-file is not interactive.
What is the problem? I hope that somebody can give 
me some advice.
With the hidden blocks there is no problem. 
But with the item(s) there is a problem,


Kind Regards,


Rene' van Hassel

% Code:
\setupcolors[state=start]
\setupinteraction[state=start,color=orange]
\setupreferencing[state=start]

\defineblock[exercise]
\defineblock[solution]
\defineenumeration[exercise][location=top,text=Exercise]
\defineenumeration[solution][location=top,text=Solution]
\hideblocks[exercise]
\hideblocks[solution]

\starttext

\chapter{First Attempt}
% Begin: First Attempt

% With texexec and context both go well.

\beginexercise
\startexercise[exer-1] First exercise.\crlf
See \in{Solution}[sol-1].
\stopexercise
\startexercise[exer-2] Second exercise.\crlf
See \in{Solution}[sol-2].
\stopexercise
\endexercise

\beginsolution
\startsolution[sol-1]
First solution!\crlf
See \in{Exercise}[exer-1].
\stopsolution
\startsolution[sol-2]
Second solution!\crlf
See \in{Exercise}[exer-2].
\stopsolution
\endsolution

\useblocks[exercise]
\page
\useblocks[solution]
\page

% End: First Attempt

\chapter{Second Attempt}
% Begin: Second Attempt

Problem is, that the references of the items become not interactive 
under mkiv (context). Under mkii (texexec) it is no problem.

\def\nextnumber#1{\the\numexpr#1\relax}
\defineconversion[nee][\nextnumber]

\setupitemize[broad,packed]
\startitemize[nee][left={Ex-},stopper={: },width=1.5cm]
% nee: new exam exercise
% Exercise
\item[221106-Ex-4] Question 221106-Ex-4.\crlf
Solution, see \in{Sol-}[221106-Ex-4-sol].\crlf

% Exercise
\item[221106-Ex-5] Question 221106-Ex-5.\crlf
Solution, see \in{Sol-}[221106-Ex-5-sol].\crlf

% End list of Exercises:
\stopitemize

\page

% Start list of solutions:
%=0
% nsee (new solution exam exercises)
\def\nextnumber#1{\the\numexpr#1\relax}
\defineconversion[nsee][\nextnumber]

\setupitemize[broad,packed]
\startitemize[nsee][left={Sol-},stopper={: },width=1.5cm]
% Solution
\item[221106-Ex-4-sol]
Solution 221106-Ex-4.\crlf
See Exercise \in{Ex-}[221106-Ex-4]\crlf

% Solution
\item[221106-Ex-5-sol]
Solution 221106-Ex-5.\crlf
See Exercise \in{Ex-}[221106-Ex-5]\crlf

% End list of solutions
\stopitemize \crlf

At \at{page}[221106-Ex-4].\crlf
At \at{page}[exer-2].
% End: Second Attempt

\stoptext
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


             reply	other threads:[~2012-01-02 20:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-02 20:23 Rene van Hassel [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-08-08  8:00 Problem " Robert Blackstone
2010-08-07 12:22 Robert Blackstone
2010-08-07 12:44 ` Thomas Schmitz

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=20120102212317.PHXG5.10018.root@viefep12 \
    --to=r.hassel1@chello.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).