From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93211 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Problem to place a label in an environment \startMPcode \stopMPcode Date: Sat, 02 Jan 2016 17:31:44 +0100 Message-ID: <5687FB70.1010308@gmail.com> References: <20151231120931.2b83169b@cea.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7032843591490333143==" X-Trace: ger.gmane.org 1451752354 15879 80.91.229.3 (2 Jan 2016 16:32:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Jan 2016 16:32:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 02 17:32:22 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aFP6L-0000mZ-6C for gctc-ntg-context-518@m.gmane.org; Sat, 02 Jan 2016 17:32:21 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4EC8B5C1C; Sat, 2 Jan 2016 17:32:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9vmo2Ftl95ph; Sat, 2 Jan 2016 17:31:59 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 949605C3E; Sat, 2 Jan 2016 17:31:59 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 891F85C1E for ; Sat, 2 Jan 2016 17:31:58 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M_5Yw-cWP4RH for ; Sat, 2 Jan 2016 17:31:57 +0100 (CET) Original-Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id B0C685C1C for ; Sat, 2 Jan 2016 17:31:47 +0100 (CET) Original-Received: by mail-wm0-f41.google.com with SMTP id u188so105834189wmu.1 for ; Sat, 02 Jan 2016 08:31:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=4YBe7mRWWAdr8qWtqDuw1p0ry4D7M2iLbk6iFJ1aflE=; b=WwSso17cQFwr1x50IgIc8JGSpig4QZOCFA9eAWtacDEG5mT/oAtdTlbHgpw9Vdw0BO xHi1qNVLU06kZQu5J+SfRk5Cyzj9F20psC9FlQ/w3pGlTmLFDziNYCaELDeadrB5IoqC /FszS6eZ5xAoHvTxSZh6BtqosCqayx40FpdmU6gZqFXB7PBMiF2hCAOQfUBEbPkMDhWS +3X8HHwprlmSZTSi2V1sAq/3llMp8M86SDEnTCQ948UkQjAqLBmq9WiLdm6D+tDj9VPN CutPoJwptYbfUh4GKX9W0om0XqVVTSGsaXDkPxTQOtQRPK0EZbNZpxk9shHXjc3/QXZ7 CIwg== X-Received: by 10.194.205.103 with SMTP id lf7mr85543798wjc.147.1451752306870; Sat, 02 Jan 2016 08:31:46 -0800 (PST) Original-Received: from keima.localdomain (x2f28d28.dyn.telefonica.de. [2.242.141.40]) by smtp.gmail.com with ESMTPSA id z65sm29352371wmg.10.2016.01.02.08.31.45 for (version=TLSv1/SSLv3 cipher=OTHER); Sat, 02 Jan 2016 08:31:46 -0800 (PST) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: <20151231120931.2b83169b@cea.fr> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:93211 Archived-At: This is a multi-part message in MIME format. --===============7032843591490333143== Content-Type: multipart/alternative; boundary="------------050905000608080109040502" This is a multi-part message in MIME format. --------------050905000608080109040502 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Alan BRASLAU > 31. Dezember 2015 um 20:09 > Works fine here. > > Alan > > > P.S. I simplified your code slightly: > > > \definefloat > [recipe] > [figure] > [default=3D{right,none}] You can=E2=80=99t do this because the second argument is used the names o= f the=20 \placelistof=E2=80=A6 and \completelistof=E2=80=A6 command. The correct definition for the new float is: \definefloat[recipe][recipes][figure] \setupfloat[recipe][default=3D{right,none}] Wolfgang --------------050905000608080109040502 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
31= .=20 Dezember 2015 um 20:09
Works fine here.
Alan


P.S. I simplified your code slightly:


\definefloat
[recipe]<= br> [figure]
[default=3D{right,none}]
You can=E2=80=99t do this because the second argument is used the names o= f the=20 \placelistof=E2=80=A6 and \completelistof=E2=80=A6 command.


The correct definition for the new float is:

=C2=A0=C2=A0=C2=A0 \definefloat[recipe][recipes][figure]
=C2=A0=C2=A0=C2=A0 \setupfloat[recipe][default=3D{right,none}]

Wolfgang
--------------050905000608080109040502-- --===============7032843591490333143== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============7032843591490333143==--