From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55739 Path: news.gmane.org!not-for-mail From: Matthias Weber Newsgroups: gmane.comp.tex.context Subject: More questions about hiding/reusing blocks Date: Fri, 22 Jan 2010 10:19:44 -0500 Message-ID: <1F076ACF-B2D2-4EB9-B371-293265296E38@indiana.edu> References: <14AAC5F8-22CF-43BC-ABAE-6D91B734A8D5@uva.nl> <01B55BA4-FE4A-4AA6-83F6-695CB56A4190@gmail.com> <2B222B03-0FDD-41C0-BF46-265F683B7C8B@uva.nl> <4B4E09FA.4000307@wxs.nl> <901906F1-CFC7-4A9A-8909-8CEAC0E7006C@uva.nl> <1656F9A9-52F7-4FC5-AE57-3309F752A93F@uva.nl> <4B4E2F70.5020103@wxs.nl> <07860E21-DC5A-4678-A821-FC807420627C@indiana.edu> <6CF9657D-3F72-4BCA-A4F5-E83938344C51@indiana.edu> <4B4F9C8B.3050307@wxs.nl> <4B456726-CCF3-4889-A237-1C7B6E3E5AE3@indiana.edu> <53590C9A-D906-41E9-9481-A24D5C745C40@indiana.edu> <4B54233F.90307@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary=Apple-Mail-3-251059366 X-Trace: ger.gmane.org 1264173616 30604 80.91.229.12 (22 Jan 2010 15:20:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Jan 2010 15:20:16 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 22 16:20:09 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NYLIu-0007Ab-Bv for gctc-ntg-context-518@m.gmane.org; Fri, 22 Jan 2010 16:20:08 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8E308C9CD9; Fri, 22 Jan 2010 16:20:08 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id YisiGOrNcb5i; Fri, 22 Jan 2010 16:20:04 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C5DF8C9CB0; Fri, 22 Jan 2010 16:20:04 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 29383C9CB0 for ; Fri, 22 Jan 2010 16:20:01 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id inEDVCth-ON7 for ; Fri, 22 Jan 2010 16:19:48 +0100 (CET) Original-Received: from belushi.uits.indiana.edu (belushi.uits.indiana.edu [129.79.1.188]) by balder.ntg.nl (Postfix) with ESMTP id 900ADC9CAF for ; Fri, 22 Jan 2010 16:19:48 +0100 (CET) Original-Received: from mail-relay.iu.edu (burns.uits.indiana.edu [129.79.1.202]) by belushi.uits.indiana.edu (8.14.2/8.13.8/IU Messaging Team) with ESMTP id o0MFJlZ1008960 for ; Fri, 22 Jan 2010 10:19:47 -0500 Original-Received: from 129-79-94-195.dhcp-bl.indiana.edu (129-79-94-195.dhcp-bl.indiana.edu [129.79.94.195]) (authenticated bits=0) by mail-relay.iu.edu (8.14.2/8.13.8/IU Messaging Team) with ESMTP id o0MFJkKQ026540 for ; Fri, 22 Jan 2010 10:19:46 -0500 In-Reply-To: <4B54233F.90307@wxs.nl> X-Mailer: Apple Mail (2.936) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:55739 Archived-At: --Apple-Mail-3-251059366 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Dear all, I have two more questions about reusing blocks and interreferencing them. First of all, I have set up problems within different chapters, and would like to have a separate chapter at the end that gathers the solutions chapter by chapter like \chapter{Solutions} \section{Solutions from chapter 1} get these here \section{Solutions from chapter 2} get those here A sample file is attached below that has the layout, but all I know is how to retrieve all blocks at once. Would I need to create another block at the end of each chapter, and retrieve these at the end? If so, how? Then, I'd like to have little inconspicuous hyperlinks from the exercise to its solution and back. So far, I can only do this manually, as indicated. I would prefer to have the text Exercise in the enumeration to become a hyperlink to the corresponding solution, and vice versa for the text Solution. Is there a way of doing this (or something similar)? Thanks a lot for all the help! Matthias --Apple-Mail-3-251059366 Content-Disposition: attachment; filename=test.tex Content-Type: application/octet-stream; x-mac-hide-extension=yes; x-mac-type=54455854; x-mac-creator=54655873; x-unix-mode=0644; name="test.tex" Content-Transfer-Encoding: 7bit \setupbodyfont[12pt] \setuppagenumbering[location={footer,middle},way=bytext] \setuppapersize[letter][letter] \setuphead [section] [numberstyle=bold, page=yes, continue=no ] \defineenumeration [exercise] [way=bysection, text=Exercise, start=1, location=hanging, letter=rm] \defineenumeration [solution] [text=Solution, way=bysection, location=hanging, letter=rm] \defineblock[exercise] \defineblock[solution] \hideblocks[solution] \setupinteraction [state=start] \starttext \section{Main Text} \subsection[subsec:1]{problem section 1} \startexercise[ex:1] Addition\index{addition} problem: $1+1=?$ (\in{solution}[sol:1]) \stopexercise \beginsolution \startsolution[sol:1] Answer: 2. (\in{problem}[ex:1]) \stopsolution \endsolution \subsection[subsec:2]{problem section 2} \startexercise[ex:2] Multiplication problem: $1\times1=?$ (\in{solution}[sol:2]) \stopexercise \beginsolution \startsolution[sol:2] Answer: 1. (\in{problem}[ex:2]) \stopsolution \endsolution \section{Answers to the Problems} \subsection{Answers to \in{section}[subsec:1]} \reset[solution] \useblocks[solution] \subsection{Answers to \in{section}[subsec:2]} How to place? \stoptext --Apple-Mail-3-251059366 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit --Apple-Mail-3-251059366 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --Apple-Mail-3-251059366--