From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13874 invoked from network); 23 Aug 2023 02:15:53 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 23 Aug 2023 02:15:53 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id A0BE5482BB1 for ; Wed, 23 Aug 2023 04:14:45 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TZTJXO625nGA for ; Wed, 23 Aug 2023 04:14:45 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id AADB1482D21 for ; Wed, 23 Aug 2023 04:14:02 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id B4508482A42 for ; Wed, 23 Aug 2023 04:13:36 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NjyI4IAlFHoK for ; Wed, 23 Aug 2023 04:13:36 +0200 (CEST) Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 4BCA9482A33 for ; Wed, 23 Aug 2023 04:13:36 +0200 (CEST) Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-9a1de3417acso19509366b.0 for ; Tue, 22 Aug 2023 19:13:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692756816; x=1693361616; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=6BBqiuhxlDqXNBhuTDflkY6U0HdBSAY4vX964At4HUI=; b=VMhB852wvov1+30AMuC9ufg2Zf+rqyL5HScDwMzqh4pQLavVFNfRJMemgMYpdsdOoR clNRT3Kzuh9j4twIllEU4ofBnRp3u8dnUWFoD+PwkHcQkhlsnYk/Ejl810202AVeqceJ kjihT6b+r39QHI9aQZcZFPv+QHUhpGqdE9oAqixlnZ7QQKS7fuU/7w+CmDBZKrzkq7qa 3e//x0RIPH6JjJ9pjFmvHiPOiSw4xS4/GsdlV92Oy/GLwh1A8pxGAtInh0llu+Vy22t8 lDp9EkSe95vH9EFBIITcfsom03HMb2n5M6cKuhIDDsVF0O0B1nvEHh+vKnnDhpSE/4U5 7OaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692756816; x=1693361616; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=6BBqiuhxlDqXNBhuTDflkY6U0HdBSAY4vX964At4HUI=; b=Ni80gJY/qGRG0VzDXN6fY/gOiwrreEDCwO84oq/68aJ+Q84A34n9SMx4Z4dHwdo1/J kozdT7Lvwtm+1xtgTTvZ1+j/u3/D4BBRp07mgh9RfMTzqMbo9WrBi0fWcIi+xLNDL1Oh NA7/Q+fmIL/KvFTt+F9W5QtmQEaWqh4+zjqvnBqSvwILLld18Upemi/A6b33ncdQxkWB pZof8WJqquW6Yls8rpZ+8uBMcJl3vR5jX8YJ4++bNqX/bCgIfsbLFYo4E3078t2IiyKf QrHGqPvE5X/CmKvY6vJXvUHowSTEZtMYud/8xd1LARHu0gwSVKo2Tq3EeFXWlnZpym6B 0Vlw== X-Gm-Message-State: AOJu0Yy+vaoHmJOiFo83eLtFye1PDZij3i+sQQKUzQZJ0WO1SsxeZQRM CgoF2m6Uf3GN1FJrt2/31KES+k/ZjYh6WB0lDrlXuRcxvvo= X-Google-Smtp-Source: AGHT+IGbJ/PuA2H47FwU1+y7hMyN0uUJ4ovBLOJS6PA0uzRbQgeH6On0GeCpT9jtSz2caL3goPJksaz1KYJMqVWK5ys= X-Received: by 2002:a17:907:3ea2:b0:99c:2e3:cad7 with SMTP id hs34-20020a1709073ea200b0099c02e3cad7mr12664920ejc.5.1692756815511; Tue, 22 Aug 2023 19:13:35 -0700 (PDT) MIME-Version: 1.0 From: Andres Conrado Montoya Date: Tue, 22 Aug 2023 21:12:59 -0500 Message-ID: To: mailing list for ConTeXt users Message-ID-Hash: 4LKKRG4MP5EVBQARNXVNIXIOKQZFWGQR X-Message-ID-Hash: 4LKKRG4MP5EVBQARNXVNIXIOKQZFWGQR X-MailFrom: andresconrado@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Better option for a macro with lots of arguments List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============1186516300186277061==" --===============1186516300186277061== Content-Type: multipart/alternative; boundary="000000000000ae025a06038da866" --000000000000ae025a06038da866 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I have been using the following macro to add a bunch of sections to the start of chapters in a book, it works but I think is kind of weak: %%%%%%%%%%%%%%%%%%% \define[7]\metadatos{ \startsection[title=3D{Resumen}] #1 \stopsection \startsection[title=3D{Palabras clave}] #2 \stopsection \start \language[en] \startsection[title=3D{Abstract}] #3 \stopsection \startsection[title=3D{Keywords}] #4 \stopsection \stop \startsection[title=3D{=C2=BFC=C3=B3mo citar este cap=C3=ADtulo? / How to= cite this book?}] \startsubsection[title=3D{Apa}] #5 \stopsubsection \startsubsection[title=3D{Chicago}] #6 \stopsubsection \startsubsection[title=3D{MLA}] #7 \stopsubsection \stopsection } \starttext % Then I call the macro like this: \metadatos{spanish abstract \input knuth}{some, comma, separated, keywords, in, spanish}{english abstract \input knuth}{same, comma, separated, keywords, in, english}{Apa citation style for this article}{Chicago citation style for this article}{MLA citation style for this article} \stoptext %%%%%%%%%%%%%%%%%%% I've been exploring different ways to do it better, but with not much luck, I was thinking something based in key=3Dvalue assignments? setups? datasets= ? Not really sure, but If you know a better solution or point me in the direction of something I can use to replace that macro, it would be greatly appreciated. --=20 Andr=C3=A9s Conrado Montoya Andi K=C3=BA andresconrado@gmail.com http://sesentaycuatro.com http://messier87.com http://chiquitico.org ---------------------------------------- Los fines no justifican los medios, porque la medida verdadera de nuestro car=C3=A1cter est=C3=A1 dada por los medios que estamos dispuestos a utiliz= ar, no por los fines que proclamamos. ---------------------------------------- =E2=80=9CYou develop an instant global consciousness, a people orientation,= an intense dissatisfaction with the state of the world, and a compulsion to do something about it. From out there on the moon, international politics look so petty. You want to grab a politician by the scruff of the neck and drag him a quarter of a million miles out and say, =E2=80=98Look at that, you so= n of a bitch.=E2=80=99=E2=80=9D =E2=80=94 Apollo 14 astronaut Edgar Mitchell --000000000000ae025a06038da866 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have been using the following macro to add a bunch of se= ctions to the start of chapters in a book, it works but I think is kind of = weak:=C2=A0

%%%%%%%%%%%%%%%%%%%

\define[7]\metadatos{ = =C2=A0
=C2=A0 \startsection[title=3D{Resumen}] #1 \stopsection
=C2= =A0 \startsection[title=3D{Palabras clave}] #2 \stopsection
=C2=A0 \star= t
=C2=A0 \language[en]
=C2=A0 \startsection[title=3D{Abstract}] #3 = =C2=A0\stopsection
=C2=A0 \startsection[title=3D{Keywords}] #4 \stopsect= ion
=C2=A0 \stop
=C2=A0 \startsection[title=3D{=C2=BFC=C3=B3mo citar = este cap=C3=ADtulo? / How to cite this book?}]
=C2=A0 =C2=A0 \startsubse= ction[title=3D{Apa}] #5 \stopsubsection
=C2=A0 =C2=A0 \startsubsection[t= itle=3D{Chicago}] #6 \stopsubsection
=C2=A0 =C2=A0 \startsubsection[titl= e=3D{MLA}] #7 \stopsubsection
=C2=A0 =C2=A0\stopsection
}

\sta= rttext
% Then I call the macro like this:=C2=A0
\metadatos{spanish a= bstract \input knuth}{some, comma, separated, keywords, in, spanish}{englis= h abstract \input knuth}{same, comma, separated, keywords, in, english}{Apa= citation style for this article}{Chicago citation style for this article}{= MLA citation style for this article}
\stoptext
%%%%%%%%%%%= %%%%%%%%

I've been exploring differen= t ways to do it better, but with not much luck, I was thinking something ba= sed in key=3Dvalue assignments? setups? datasets? Not really sure, but If y= ou know a better solution or point me in the direction of something I can u= se to replace that macro, it would be greatly appreciated.=C2=A0
=
--
Andr=C3=A9s Conrado Montoya
Andi K= =C3=BA
andr= esconrado@gmail.com
http://sesentaycuatro.com
---= -------------------------------------
Los fines no justifican los medios= , porque la medida verdadera de nuestro car=C3=A1cter est=C3=A1 dada por lo= s medios que estamos dispuestos a utilizar, no por los fines que proclamamo= s.
----------------------------------------

=E2=80=9CYou develop a= n instant global consciousness, a people orientation,=20 an intense dissatisfaction with the state of the world, and a compulsion to do something about it. From out there on the moon, international=20 politics look so petty. You want to grab a politician by the scruff of=20 the neck and drag him a quarter of a million miles out and say, =E2=80=98Lo= ok at that, you son of a bitch.=E2=80=99=E2=80=9D =E2=80=94 Apollo 14 astronaut = Edgar Mitchell

--000000000000ae025a06038da866-- --===============1186516300186277061== 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ --===============1186516300186277061==--