From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85899 Path: news.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: setuphead for in-paragraph head ? Date: Sun, 12 Jan 2014 21:47:05 +0100 Message-ID: <2CFAA317-CA82-4CBF-A9B8-E71C2DC49BC1@gmail.com> References: <52CEB6B4.7070308@gyza.cz> <133B935F-59FF-4C57-9A37-00B42BCAB67F@gmail.com> <3BA99063-FA3F-449B-B022-1A2109B25A59@gmail.com> <8E7ED7B8-29C0-4865-B7A8-DD1BD09709E3@gmail.com> <759FE779-328A-4726-8D77-779D83EA097E@gmail.com> <7528AB5C-EF48-4393-869C-8DD3AA6D8C38@gmail.com> <1CEEA7A0-3472-47A6-9AE9-C7D14CB379D4@gmail.com> <86D737E4-2891-4C79-BB04-CDCFA2BD9BB2@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1389559629 31447 80.91.229.3 (12 Jan 2014 20:47:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Jan 2014 20:47:09 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 12 21:47:17 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W2RwA-00019T-Qr for gctc-ntg-context-518@m.gmane.org; Sun, 12 Jan 2014 21:47:14 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 25B0C101F2; Sun, 12 Jan 2014 21:47:14 +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 9U1enppt81h1; Sun, 12 Jan 2014 21:47:12 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id CE23A101E2; Sun, 12 Jan 2014 21:47:12 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 380E6101E2 for ; Sun, 12 Jan 2014 21:47:11 +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 9I5LSp7WJbXQ for ; Sun, 12 Jan 2014 21:47:09 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 7AF0D101DE for ; Sun, 12 Jan 2014 21:47:09 +0100 (CET) Original-Received: from mail-wg0-x235.google.com (mail-wg0-x235.google.com [IPv6:2a00:1450:400c:c00::235]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s0CKl8Mo032297 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sun, 12 Jan 2014 21:47:08 +0100 Original-Received: by mail-wg0-f53.google.com with SMTP id k14so5918267wgh.20 for ; Sun, 12 Jan 2014 12:47:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=zBPvdfyEaUXT9laBR3ZcsHuKdPG0Yk1ebuziM9sNsT0=; b=CnlAUT/oKTbA4iZpmzW/S3EK9v1OP1Cjygxg035V4ZW+gpwo8V6mbTFzfPgXBe7Ndu DRLXkUoGx0yfuQ9kAF8PCFRgTk1LIMPaRO77Pb/NcgyJW1EA3k5cruJqJKtirp4+8f1o zUtuJLRFdkhxdKPdSM0E+ezRrc4l2vGD3G8ypg5OrDeX9Va60r7cw7WRs5n/73uiyb6K l6a4b/AJAKW1SVoLG+mJ3CPzVqldqMHVCEQ2yIKnal6fx6+YlXlTJSi4Mb8xHNr4HXhK Pfd8903LRuW4OAs8GF9RbuxnQQ2N6BlB8jEsJazGev7DuT9Y9kcVMAA4Rd5Oxajcf2kD nx0Q== X-Received: by 10.194.92.7 with SMTP id ci7mr189321wjb.58.1389559628624; Sun, 12 Jan 2014 12:47:08 -0800 (PST) Original-Received: from [192.168.0.20] (seg75-6-82-236-32-4.fbx.proxad.net. [82.236.32.4]) by mx.google.com with ESMTPSA id cx3sm15081540wib.0.2014.01.12.12.47.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 12 Jan 2014 12:47:07 -0800 (PST) In-Reply-To: <86D737E4-2891-4C79-BB04-CDCFA2BD9BB2@gmail.com> X-Mailer: Apple Mail (2.1827) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c00::235; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03Ld8L8sg - 1b5ff2614c2a - 20140112 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:85899 Archived-At: On 12 janv. 2014, at 21:30, Wolfgang Schuster wrote: > > Am 11.01.2014 um 20:01 schrieb Otared Kavian : > >> I will put this example on the wiki, but before doing so I have another question: >> can one add two automatic links at the end of each question so that one can navigate easily to the respective hint or answer corresponding to that question? Indeed if this were possible, one would add also two automatic links to each hint going to its question and the corresponding answer, and two other links to each answer going to its hint and question. One can do this manually by adding a reference to each question, each hint and each answer, but it would be nice to have this done automatically. > > Not without writing your own environment where you generate a unique reference for each question, hint and answer. If I understand well, one way might be something like (where \theQuestionNumber stands for the number given by \startquestion) \define\StartQuestion{\startquestion[Q:\theQuestionNumber]} \define\StartHint{\startquestion[H:\theQuestionNumber]} \define\StartAnswer{\startquestion[A:\theQuestionNumber]} \define\StopQuestion{\par\in{Hint}[H:\theQuestionNumber]\par \in{Answer}[A:\theQuestionNumber]\stopquestion} \define\StopHint{\par\in{Question}[Q:\theQuestionNumber]\par \in{Answer}[A:\theQuestionNumber]\stophint} \define\StopAnswer{\par\in{Question}[Q:\theQuestionNumber]\par \in{Hint}[H:\theQuestionNumber]\stopquestion} and then using \StartQuestion \StopQuestion, etc, instead of \startquestion \stopquestion. But how can I refer to the \theQuestionNumber set by \startquestion? Thanks for your time and your attention. Best regards: OK ___________________________________________________________________________________ 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 ___________________________________________________________________________________