From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/110041 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jairo A. del Rio" Newsgroups: gmane.comp.tex.context Subject: Re: Ducks in ConTeXt Date: Thu, 24 Dec 2020 12:00:43 -0500 Message-ID: References: <38faf4d2-e36c-8a6c-1e9b-2a10ef9944f4@xs4all.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6464386630615955417==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35251"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 24 18:01:22 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ksTzN-00093I-Jm for gctc-ntg-context-518@m.gmane-mx.org; Thu, 24 Dec 2020 18:01:21 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 25B301C1661; Thu, 24 Dec 2020 18:00: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 ZR2R6vKoJGWd; Thu, 24 Dec 2020 18:00:57 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 37A411C1691; Thu, 24 Dec 2020 18:00:57 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DC2441C1691 for ; Thu, 24 Dec 2020 18:00:55 +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 fi1SwERFhqc9 for ; Thu, 24 Dec 2020 18:00:54 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.43; helo=mail-wr1-f43.google.com; envelope-from=jairoadelrio6@gmail.com; receiver= Original-Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id F02CE1C1661 for ; Thu, 24 Dec 2020 18:00:54 +0100 (CET) Original-Received: by mail-wr1-f43.google.com with SMTP id q18so2675424wrn.1 for ; Thu, 24 Dec 2020 09:00:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hSZ/jBQRAtPy4V/ZDF/fHdPLVsOVlcEZn+mhYItAIwA=; b=o1WX/aR9lVamMVk5ybZfhn7Fi44HNU8cVExe9KEmIVPpInGRPJVJfTotCho3/k42mR e0xdWXxWWAe9iMA8rhCMLN5G7NqSOKwvO2ORrpnYOQOnuPHcSxvRm5HwwAe6/hf3YrXZ B2cq35gOGpDO6cuWyuaiAFLDl2QNrrMTje7iNUjLD+TqH70ESw7o2QaiBSq1kwE2hTUw 4oHdxsJkcA964Ml1Az2qTB7gCJ9tPJEdxi6KX+2Y/33FQbjDUb0UfOMcZSHfHLzLmZ+H 52LrQ2QrLOzIw452YOSzN0d1gYrvUM6LxNy6ZQcmXeaGjrj3YRBElFTioMX4zmjD+XLU 77og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hSZ/jBQRAtPy4V/ZDF/fHdPLVsOVlcEZn+mhYItAIwA=; b=bnfP5PMY80pc+pJabn+mvyLNEH97MDZWchhmv0/fQmSST7F0vADMbj2CDiiY/l6dwZ BP2daDrLPOtB4cJwGw2RQmOQmj5wiK5BdgZkltOXIQcSKXj8qROjG1FoxvrqSYrq2PCp 1AYrOBFi08BosIaA5HIWM4mKvPcBp8pFdAVmyP8fS9UYdrvdUHF9c2dqHG7bI3du/8G7 o5dM0ashf962/8mXjlQfZn60FyJRgRjikU4d9+m9Vb4y07/xkL5ASUXUEa3OnNuwfFsA Clw2zdIYrpQhbokZ69gekV61CZod/kr32dOtftmnnjXyUElQ8Hw7NIcQIrAFLcSBPcjP oabw== X-Gm-Message-State: AOAM533wyvV2FoEV1tSxhvrOgUC03RgUbChZv7Ad9sHmeg2ZhJDlOoeG 5Ijeej9uYN2HIcmKosKN0+zlC3OLIZUxNNg0gn4= X-Google-Smtp-Source: ABdhPJzuK6yQN0Qdn3zjmnw9tSs2HUTuazycufyIGdoHo2HH5uUwYBLlTWR3elqdHpZ3MUZ6X9MBC+mbBpxui2lLp00= X-Received: by 2002:adf:ba47:: with SMTP id t7mr34622220wrg.285.1608829254416; Thu, 24 Dec 2020 09:00:54 -0800 (PST) In-Reply-To: <38faf4d2-e36c-8a6c-1e9b-2a10ef9944f4@xs4all.nl> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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.io gmane.comp.tex.context:110041 Archived-At: --===============6464386630615955417== Content-Type: multipart/alternative; boundary="00000000000036bcc205b738c06b" --00000000000036bcc205b738c06b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable El jue, 24 de dic. de 2020 a la(s) 10:53, Hans Hagen (j.hagen@xs4all.nl) escribi=C3=B3: > On 12/24/2020 3:18 PM, Jairo A. del Rio wrote: > > Hi everyone! > > > > I've recently ported TikZducks to ConTeXt and finally removed TIkZ alon= g > > the way. So a new module was created. The module is called "metaducks" > > (lol) and it's essentially a \useMPgraphic{...} with a lot of options, > > most of them ported from TikZducks. For those not familiar with the > > package, it draws customized rubber ducks :) I want to include some > > more, so I'll gladly read any feedback, recommendations and suggestions= . > > Eventually I want it to be a module on its own. The module is already i= n > > the ConTeXt Group: > > > > > https://modules.contextgarden.net/cgi-bin/module.cgi/action=3Ddetails/id= =3D105 > > < > https://modules.contextgarden.net/cgi-bin/module.cgi/action=3Ddetails/id= =3D105 > > > > > > in case anyone wants to give it a try. Here's a minimal example: > > > > \usemodule[metaducks] > > \starttext > > \ducks[santa=3Dtrue,mug=3Dtrue] > > \stoptext > > > > I wish the best for you all. Happy holidays! > Nice! > > You can add, at the end of the module: > > \continueifinputfile{t-metaducks.mkvi} > > \starttext > \dorecurse{100}{ > \startTEXpage > \randomducks % Why plural? > Because \duck is already taken by TikZducks :( > \stopTEXpage > } > \stoptext > > Which means that you run the module directly you get an example. > > Oh, that explains \continueifinputfile in some source files. Nice. I'll add my test example. > No need to add \endinput, so just after the \protect (actually in your > case there is no need for \unprotect \protect). > > I want to do some additional trickery later, so \unprotect ... \protect are fine there, I think :) > Thanks, > > Thanks to you! I enjoy typesetting with ConTeXt and I'm very happy with all their possibilities. > Hans > > (Who looks out over water where quite often ducks swim.) > > > Lucky you! We have a nice bay in Callao, but no ducks. I have to visit my mother's homeland to see them in the wild :D > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > Best regards, Jairo :) --00000000000036bcc205b738c06b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
El jue, 24 de dic. de 2020 a la(s) 10= :53, Hans Hagen (j.hagen@xs4all.nl= ) escribi=C3=B3:
On 12/24/2020 3:18 PM, Jairo A. del Rio wrote:
> Hi everyone!
>
> I've recently ported TikZducks to ConTeXt and finally removed TIkZ= along
> the way. So a new module was created. The module is called "metad= ucks"
> (lol) and it's essentially a \useMPgraphic{...} with a lot of opti= ons,
> most of them ported from TikZducks. For those not familiar with the > package, it draws customized rubber ducks :) I want to include some > more, so I'll gladly read any feedback, recommendations and sugges= tions.
> Eventually I want it to be a module on its own. The module is already = in
> the ConTeXt Group:
>
> https://modules.c= ontextgarden.net/cgi-bin/module.cgi/action=3Ddetails/id=3D105
> <https://modul= es.contextgarden.net/cgi-bin/module.cgi/action=3Ddetails/id=3D105> >
> in case anyone wants to give it a try. Here's a minimal example: >
> \usemodule[metaducks]
> \starttext
> \ducks[santa=3Dtrue,mug=3Dtrue]
> \stoptext
>
> I wish the best for you all. Happy holidays!
Nice!

You can add, at the end of the module:

\continueifinputfile{t-metaducks.mkvi}

\starttext
=C2=A0 =C2=A0 =C2=A0\dorecurse{100}{
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\startTEXpage
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\randomducks % Why plural? =

Because \duck is already taken by TikZ= ducks :(
=C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\stopTEXpage
=C2=A0 =C2=A0 =C2=A0}
\stoptext

Which means that you run the module directly you get an example.


Oh, that explains \continueifinputfile= in some source files. Nice. I'll add my test example.
= =C2=A0
No need to add \endinput, so just after the \protect (actually in your
case there is no need for=C2=A0 \unprotect \protect).


I want to do some additional trickery = later, so \unprotect ... \protect are fine there, I think :)
= =C2=A0
Thanks,


Thanks to you! I enjoy typesetting wit= h ConTeXt and I'm very happy with all their possibilities.
=C2=A0
Hans

(Who looks out over water where quite often ducks swim.)



Lucky you! We have a nice bay in Calla= o, but no ducks. I have to visit my mother's homeland to see them in th= e wild :D
=C2=A0

-----------------------------------------------------------------
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0Hans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Ridderstraat 27 | 80= 61 GH Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0 tel: 038 477 53 69 | www.pragma-ade.nl | www.= pragma-pod.nl
-----------------------------------------------------------------

Best regards,

Jair= o :)
--00000000000036bcc205b738c06b-- --===============6464386630615955417== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============6464386630615955417==--