From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80385 Path: news.gmane.org!not-for-mail From: Philipp Gesang Newsgroups: gmane.comp.tex.context Subject: Re: Referencing a figure Date: Tue, 22 Jan 2013 11:18:50 +0100 Message-ID: <20130122101850.GA14851@phlegethon.router_intern> References: <50FE64BC.8070308@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0314446705==" X-Trace: ger.gmane.org 1358849947 14954 80.91.229.3 (22 Jan 2013 10:19:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Jan 2013 10:19:07 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 22 11:19:26 2013 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 1Txawp-0001ZX-JM for gctc-ntg-context-518@m.gmane.org; Tue, 22 Jan 2013 11:19:19 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 67077101EB; Tue, 22 Jan 2013 11:19:02 +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 f6I306KLlQXD; Tue, 22 Jan 2013 11:19:01 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id EAA2F101E6; Tue, 22 Jan 2013 11:19:00 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 51830101E6 for ; Tue, 22 Jan 2013 11:18:59 +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 fuhZq7S4PVQM for ; Tue, 22 Jan 2013 11:18:58 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 14467101E5 for ; Tue, 22 Jan 2013 11:18:58 +0100 (CET) Original-Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0MAIuFh030741 for ; Tue, 22 Jan 2013 11:18:57 +0100 Original-Received: from ix.urz.uni-heidelberg.de (cyrus-portal.urz.uni-heidelberg.de [129.206.100.176]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id r0MAIsRd013847 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 22 Jan 2013 11:18:56 +0100 Original-Received: from extmail.urz.uni-heidelberg.de (extmail.urz.uni-heidelberg.de [129.206.100.140]) by ix.urz.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id r0MAIsOO019550 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 22 Jan 2013 11:18:54 +0100 Original-Received: from localhost (p508468BF.dip.t-dialin.net [80.132.104.191]) (authenticated bits=0) by extmail.urz.uni-heidelberg.de (8.13.4/8.13.1) with ESMTP id r0MAIqNR002283 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Tue, 22 Jan 2013 11:18:52 +0100 Mail-Followup-To: mailing list for ConTeXt users In-Reply-To: <50FE64BC.8070308@gmail.com> X-Operating-System: Linux phlegethon 3.6.8-1-ARCH User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=129.206.210.211; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QIOWiVg1 - 70c4656258b3 - 20130122 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:80385 Archived-At: --===============0314446705== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Q68bSM7Ycu6FN28Q" Content-Disposition: inline --Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7 > I have written a macro to include figures. I pass the label name and > the caption as the two arguments. But when I try to refer to the figure, > it shows ??. >=20 > Surely, my macro does not define the figure label as intended by me. > What am I doing wrong? If you specify only one optional argument of \placefloat, then leftmost in the list is assumed, i.e. the location. To get around this, either specify a location or add empty brackets if you=E2=80=99re content with the default: \define[2]\dincludefigure{% \placefigure[][fig:#1]{#2}{\externalfigure[dummy][width=3D10cm]}% }% Regards Philipp > Also, while trying to debug this problem, I tried > using *\version[temporary]* to see the labels as suggested in the Context > manual (chapter on Cross References (page 207) of cont-ini.pdf). But it > didn't show many the label of the figure. >=20 > MWE: >=20 > \useMPlibrary[dum] > \unprotect > \define[2]\dincludefigure{% > \placefigure[fig:#1]{#2}{\externalfigure[dummy][width=3D10cm]}% > }% > \protect >=20 > \starttext > \dincludefigure{one}{A figure} > I am refering to \in{Figure}[fig:one]. > \stoptext >=20 > _________________________________________________________________________= __________ > If your question is of interest to others as well, please add an entry to= the Wiki! >=20 > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ --=20 () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments --Q68bSM7Ycu6FN28Q Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlD+Z4oACgkQ02lYlJYWs9KfswCeKTOusmjO9ALShV5iVeZV/88M eCAAoIdgYY/KYhyrWoezq556o6v4gA+4 =tTC3 -----END PGP SIGNATURE----- --Q68bSM7Ycu6FN28Q-- --===============0314446705== 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 ___________________________________________________________________________________ --===============0314446705==--