From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81711 Path: news.gmane.org!not-for-mail From: Sietse Brouwer Newsgroups: gmane.comp.tex.context Subject: Re: combinations Date: Mon, 15 Apr 2013 15:40:09 +0200 Message-ID: References: <516BBF73.7000309@wxs.nl> 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: ger.gmane.org 1366033272 3344 80.91.229.3 (15 Apr 2013 13:41:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Apr 2013 13:41:12 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 15 15:41:14 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from [195.12.62.10] (helo=balder.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1URjej-0000c3-LV for gctc-ntg-context-518@m.gmane.org; Mon, 15 Apr 2013 15:41:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 15C23101FC; Mon, 15 Apr 2013 15:40:53 +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 zZuu+HK-nTjS; Mon, 15 Apr 2013 15:40:47 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id C8FE9101F1; Mon, 15 Apr 2013 15:40:47 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 53B47101F1 for ; Mon, 15 Apr 2013 15:40:46 +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 IpcNfH4L8BAk for ; Mon, 15 Apr 2013 15:40:41 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 223A6101E7 for ; Mon, 15 Apr 2013 15:40:40 +0200 (CEST) Original-Received: from mail-ea0-x22e.google.com (mail-ea0-x22e.google.com [IPv6:2a00:1450:4013:c01::22e]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r3FDedQ6021158 for ; Mon, 15 Apr 2013 15:40:40 +0200 Original-Received: by mail-ea0-f174.google.com with SMTP id m14so2172174eaj.5 for ; Mon, 15 Apr 2013 06:40:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=9bmt1Y9GHg0tkgOTtHE2DByAblfD1kjBQWNYNfncsbc=; b=z5n2cimPQdOXW5qvlH2J8jfdrVzgGdLTzpgHAd8T6B57pexBsIuga0DRXQtEQ1U/Ov uzNMol+9YNBzQ8LRtt3+WuRTiN/3Z9kPIoIdqZnWq37P/RTSQhkVreAG0FJARIXdOhvj UonW5Apm0CNjPujl6LiSCgiGB9kOqa88D5FYdCHYAZc2NpUmsM37TzxlS2tLIDBzYKkc mMtAMROWKXh4U1/HQtgLDuRlAlMAO1c5k2YIwbu27aNJxOQZxQ2o7zCrJ9J7rFZ93PST LUl9x4FUj0tlZaZ7mJWHUE8CW9EONJW7WPrnE2+u1DgWkwUsrWOpXCiyCuRgJLnpxKp2 A5vQ== X-Received: by 10.14.5.137 with SMTP id 9mr57667037eel.30.1366033239718; Mon, 15 Apr 2013 06:40:39 -0700 (PDT) Original-Received: by 10.15.110.3 with HTTP; Mon, 15 Apr 2013 06:40:09 -0700 (PDT) In-Reply-To: <516BBF73.7000309@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c01::22e; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07JodEEpw - 71d56424516d - 20130415 (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:81711 Archived-At: Hi Hans, Is the following correct? (1) [alternative=...] is a new key for \definecombination (2) \definecombination[mycombiA][alternative=text] means you specify the combination's contents as item, caption, item, caption, etc. \startcombination[mycombiA][nx=2,ny=1] {item}{caption} {another item}{another caption} \stopcombination (3) \definecombination[mycombiB][alternative=label] means you specify the combination's contents as item, item, item, etc. \startcombination[mycombiB][nx=2,ny=1] {item} {another item} \stopcombination and the caption (label) will be placed automatically. (4) You can setup the mycombiB labels like so: \setuplabel[combination:mycombiB][ text={Item }, numberconversion=character, stopper=! ] (If you do not setup the mycombiB label, each item's label will be a bold number.) Cheers, Sietse On 15 April 2013 10:50, Hans Hagen wrote: > > Hi, > > As follow up on the combinations tread I made this: > > \useMPlibrary[dum] > > \starttext > > \definecombination[mycombi][alternative=label] > > \setuplabel[combination:mycombi][text={Item },numberconversion=character,stopper=!] > > \startcombination[mycombi][2*2] > {\externalfigure[dummy][width=4cm,height=1cm]} > {\externalfigure[dummy][width=4cm,height=1cm]} > {\externalfigure[dummy][width=4cm,height=1cm]} > {\externalfigure[dummy][width=4cm,height=1cm]} > \stopcombination > > \blank[2*big] > > \startcombination[mycombi][nx=2,ny=1,continue=yes] > {\externalfigure[dummy][width=4cm,height=1cm]} > {\externalfigure[dummy][width=4cm,height=1cm]} > \stopcombination > > \blank[2*big] > > \startcombination[mycombi][alternative=text,nx=2,ny=2] > {\externalfigure[dummy][width=4cm,height=1cm]} {alpha} > {\externalfigure[dummy][width=4cm,height=1cm]} {beta} > {\externalfigure[dummy][width=4cm,height=1cm]} {gamma} > {\externalfigure[dummy][width=4cm,height=1cm]} {delta} > \stopcombination > > \blank[2*big] > > \startcombination[mycombi][2*2] > {\externalfigure[dummy][width=4cm,height=1cm]} > {\externalfigure[dummy][width=4cm,height=1cm]} > {\externalfigure[dummy][width=4cm,height=1cm]} > {\externalfigure[dummy][width=4cm,height=1cm]} > \stopcombination > > \stoptext > > A relative simple extension but probably useful. > -- > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > | www.pragma-pod.nl > ----------------------------------------------------------------- > ___________________________________________________________________________________ > 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 ___________________________________________________________________________________