From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77797 Path: news.gmane.org!not-for-mail From: Sietse Brouwer Newsgroups: gmane.comp.tex.context Subject: Re: Marking a textfragment for later reference Date: Tue, 7 Aug 2012 12:47:06 +0200 Message-ID: References: <905DD621-C648-4033-91CA-EC4A7ECB0FBF@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1344336456 4606 80.91.229.3 (7 Aug 2012 10:47:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Aug 2012 10:47:36 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 07 12:47:36 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SyhK3-0006wP-KO for gctc-ntg-context-518@m.gmane.org; Tue, 07 Aug 2012 12:47:35 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8D62B1020E; Tue, 7 Aug 2012 12:47:34 +0200 (CEST) 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 sfOWG4+4M2n3; Tue, 7 Aug 2012 12:47:32 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 2E16D10202; Tue, 7 Aug 2012 12:47:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 84B6E10202 for ; Tue, 7 Aug 2012 12:47:30 +0200 (CEST) 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 6KW7Kk4mS+dv for ; Tue, 7 Aug 2012 12:47:29 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 546B9101F3 for ; Tue, 7 Aug 2012 12:47:29 +0200 (CEST) Original-Received: from mail-yw0-f41.google.com (mail-yw0-f41.google.com [209.85.213.41]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q77AlRSl029630 for ; Tue, 7 Aug 2012 12:47:28 +0200 Original-Received: by yhr47 with SMTP id 47so4235763yhr.14 for ; Tue, 07 Aug 2012 03:47:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=Uun2B7vIfGjT0/wKDh1/GP5dK2C8GLu01Or7JkbA+Oc=; b=j265YEMNdDMYXTErXM6LyDmqX3CBxmd+hInFFNnq08F4ZemTGwwf43AUzBMmGW2WZP 2kZ9P7QniR08ukORJPHHwyuFfGeTL+Lt5uyXVV8rVBgV1MoFW32g9if2sNtzgt0R2CyB 7Apcz9BUaR8RGN6A1gd/a90rjaf7mnWE4HnAo/CODVKKO0OQghFcX1ppo3UyEhZ2W7Qo 7WL2Aj4Hk8rKA3DkBbwFcb7zMlzgkZc5qVJcU2RajvuEcDbP/SVARGW/d2++dQJ0aHQj rzMTkXZ3A9LshWLLMRpTSwiLe9icYUwgJROgAeqDamYRPtyTNmmKb4eqHRqmOYXahnK+ ohYg== Original-Received: by 10.50.181.165 with SMTP id dx5mr3884176igc.71.1344336446913; Tue, 07 Aug 2012 03:47:26 -0700 (PDT) Original-Received: by 10.64.5.234 with HTTP; Tue, 7 Aug 2012 03:47:06 -0700 (PDT) In-Reply-To: <905DD621-C648-4033-91CA-EC4A7ECB0FBF@gmail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.213.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VHHKLsJ0 - 5b6cc7400a04 - 20120807 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:77797 Archived-At: Hi Robert, > So my question: "Why can some identifiers, > for example of figures, be used for internal > references and others not?" remains unanswered. That would be because there are * names, for creating a named variant of some command * and labels, which are used for cross-references, and I think you are calling them both identifiers. (Not sure I'm using the official terms, or if there are any.) Some examples below, I hope they'll clarify things. I never had any problems confusing labels and names myself, so I'm not sure how to explain what was obvious to me, but perhaps this will help: Names occur when you're defining things; Labels occur when you're placing things. As for why you can't do \definedelimitedtext[AA] \startAA[mylabel] bla \stopAA I guess that was never baked in. Probably because quotations are not really numbered objects, and so not obvious candidates for having their own labels. Cheers, Sietse %%%%%%% Example: label %%%%% \placefigure [here] [fig:myfig] % label: used to refer to the figure {caption}{figure} %%%%%%% Example: command like \startNAME %%%%% \definedelimitedtext [smallquote] % name [style=small] \startsmallquote % our own named environment bla bla bla \stopsmallquote %%%%% Example: names and labels %%%%% \useexternalfigure [littlecow] % define a named picture [cow.pdf] [width=1cm] \placefigure [here] [fig:littlecow] % a label for the figure float {Kleine, kleine koe} {\externalfigure[littlecow]} % invoking a named picture -- Sietse Brouwer -- sbbrouwer@gmail.com -- +31 6 13.456.848 Verlengde Wassenaarseweg 4a -- 2342 BG Oegstgeest -- the Netherlands MSN: sietse@gawab.com -- ICQ: 341232104 On Tue, Aug 7, 2012 at 11:44 AM, Robert Blackstone wrote: > > On 7 aug. 2012, Pontus Lurcock > wrote >> >> On Tue 07 Aug 2012, Robert Blackstone wrote: >> >>> Here follows my minimal example. I reasoned that the identifier [topica] might act as a label, or an anchor, or whatever the correct ConTeXt name is, for a reference. >>> --------------------------------------------------------------------------- >>> >>> \definedelimitedtext[topica] >>> \setupdelimitedtext[topica][left=,right=] %maybe superfluous? I do not need a layout different from the rest of the text. >>> \starttext >>> >>> Some text. >>> >>> \starttopica >>> Some text to explain a certain topic, called topica. >>> \stoptopica >>> >>> Some more text about topica. (See discussion on \at{page}[topica]) >>> >>> \stoptext >>> >>> --------------------------------------------------------------------------- >>> To avoid any misunderstanding: this is no longer a problem since I have been given excellent advice. But it intrigues me. Why can some identifiers, for example of figures, be used for internal references and others not? >> >> In this case, I'd say it's because you're defining a delimited text >> style which can be used in multiple places. Your document could have >> five hundred \starttopica...\stoptopica blocks on different pages. >> A figure identifier, on the other hand, is meant to be unique. >> >> Pont > Hi Pont, > Thanks for your comment. I realized this. There would of course be only one "\starttopica...\stoptopica block" in my text. If I would like to use delimited texts in this manner for several different topics, I would simply give them different names. Each topic its own name, like [topicb], [topicc], etc. Like you would do if you wanted to use slightly different types of blockquote in your document. > So my question: "Why can some identifiers, for example of figures, be used for internal references and others not?" remains unanswered. > Best regards, > Robert > > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________