[NTG-context] problem with cross references
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 ___
Re: [NTG-context] Problem with cross references
On Sat, Aug 7, 2010 at 6:54 PM, Thomas Schmitz wrote: Robert Blackstone blackstone.rob...@gmail.com wrote: Hi all, I would like to get some advice concerning a problem, or rather a nuisance, with internal references. Difficult to analyze, of course, but one thing that occurred to me: are you using a proper project structure, with the chapters as components, as described in chapter 2.3 of the manual, or just using \input for the chapters? Right now, I'm editing a book (~ 300 pages) with cross-references between chapters, and I don't see any of the problems you describe. Btw, the version of TeXshop is irrelevant to the problem, but you may want to update your minimals. Thomas Thank you, I updated the minimals, thrashed all auxiliary files, ran my project again and everything worked right from the start. Best regards, Robert Blackstone ___ 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 ___
[NTG-context] Problem with cross references
Hi all, I would like to get some advice concerning a problem, or rather a nuisance, with internal references. I am making a longish document with several chapters, all of which are separate .tex-files to be input into the main file, which contains all setups and the skeleton of the document. There are a number of cross references between elements that sit in different files. With some simple test files I checked that this worked and that I use the proper commands. However, with the real files it does not work, that is, not immediately. Even after 4 or 5 runs I still get ?? instead of page numbers, and then suddenly things are OK. I have no idea what happened between failure and success and I have no idea what I have to do to get the proper result immediately. It is a nuisance because I cannot be sure the thing worked till I have checked the entire output after each run, which is rather time consuming. I’m using the latest version of TeXShop with the minimals of july 20, but older versions show the same symptoms. Thanks for any advice. Robert Blackstone ___ 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 ___
Re: [NTG-context] Problem with cross references
On Sat, 7 Aug 2010 14:22:32 +0200 Robert Blackstone blackstone.rob...@gmail.com wrote: Hi all, I would like to get some advice concerning a problem, or rather a nuisance, with internal references. I am making a longish document with several chapters, all of which are separate .tex-files to be input into the main file, which contains all setups and the skeleton of the document. There are a number of cross references between elements that sit in different files. With some simple test files I checked that this worked and that I use the proper commands. However, with the real files it does not work, that is, not immediately. Even after 4 or 5 runs I still get ?? instead of page numbers, and then suddenly things are OK. I have no idea what happened between failure and success and I have no idea what I have to do to get the proper result immediately. It is a nuisance because I cannot be sure the thing worked till I have checked the entire output after each run, which is rather time consuming. Im using the latest version of TeXShop with the minimals of july 20, but older versions show the same symptoms. Thanks for any advice. Robert Blackstone Difficult to analyze, of course, but one thing that occurred to me: are you using a proper project structure, with the chapters as components, as described in chapter 2.3 of the manual, or just using \input for the chapters? Right now, I'm editing a book (~ 300 pages) with cross-references between chapters, and I don't see any of the problems you describe. Btw, the version of TeXshop is irrelevant to the problem, but you may want to update your minimals. Thomas ___ 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 ___