From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35108 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: referencing figures with \in Date: Sun, 24 Jun 2007 17:37:54 +0200 Message-ID: <20070624173754.60fadf28.schuster.wolfgang@googlemail.com> References: <5B8BF4C2-EF35-48E9-8368-68E25FB330E6@science.uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1182699500 27974 80.91.229.12 (24 Jun 2007 15:38:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 24 Jun 2007 15:38:20 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Jun 24 17:38:17 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1I2UAL-0007fN-8c for gctc-ntg-context-518@m.gmane.org; Sun, 24 Jun 2007 17:38:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9D357200D2; Sun, 24 Jun 2007 17:38:16 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31084-02; Sun, 24 Jun 2007 17:38:07 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 078CE20086; Sun, 24 Jun 2007 17:38:07 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2D4D720086 for ; Sun, 24 Jun 2007 17:38:05 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30113-04-2 for ; Sun, 24 Jun 2007 17:38:00 +0200 (CEST) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by ronja.ntg.nl (Postfix) with ESMTP id 9C00C1FCF3 for ; Sun, 24 Jun 2007 17:38:00 +0200 (CEST) Original-Received: by ug-out-1314.google.com with SMTP id o2so1103092uge for ; Sun, 24 Jun 2007 08:38:00 -0700 (PDT) Original-Received: by 10.67.25.14 with SMTP id c14mr4425698ugj.1182699480526; Sun, 24 Jun 2007 08:38:00 -0700 (PDT) Original-Received: from eve ( [89.51.234.37]) by mx.google.com with ESMTP id o30sm2599331ugd.2007.06.24.08.37.58 (version=SSLv3 cipher=OTHER); Sun, 24 Jun 2007 08:37:59 -0700 (PDT) In-Reply-To: <5B8BF4C2-EF35-48E9-8368-68E25FB330E6@science.uva.nl> X-Mailer: Sylpheed 2.4.1 (GTK+ 2.10.11; i686-pc-mingw32) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:35108 Archived-At: On Sun, 24 Jun 2007 14:38:34 +0200 Hans van der Meer wrote: > I used to place references to figures and tables in the following way: > > \placefigure[][fig:myfig]{Title}{\useMPgraphic{myfig}{parameters}} > \in{figure}[fig:myfig] > > This however printed a dot instead of the expected "figure #". > Changing to > \at{figure}[fig:myfig] > again printed the correct reference. > > Looking further into this I found: > \meaning\in --> \protected macro:->\dohandlemathtoken {in} > \meaning\at --> macro:->\dohandlecommand {at} > > Still, the ConText manual tells me that > \in{.1}{.2.}[ref] (with {.2.} optional) > should work. > > In file core-ref.tex at line 2118 (2007-04-17 version) I find: > %\def\in% > % {\ifmmode > % \expandafter\donormalin > % \else > % \expandafter\doinatreference\expandafter\currenttextreference > % \fi} > But I am definitely not in math mode when calling \in. > I did some further experimentation but nothing helped. > > Has something changed here or is there something I do obviously wrong? > > Hans van der Meer Hi Hans, please post a example, the following works for me: \starttext \startuseMPgraphic{circle} draw fullcircle scaled 1cm; \stopuseMPgraphic \placefigure [] [fig:ref] {Text} {\useMPgraphic{circle}} \in{figure}[fig:ref] \stoptext Wolfgang ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________