From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/107886 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: "Jairo A. del Rio" Newsgroups: gmane.comp.tex.context Subject: Re: Commands with arguments before in ConTeXt Date: Mon, 29 Jun 2020 05:21:38 -0500 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7701415498128974515==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="105378"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users , luigi scarso Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 29 12:22:12 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 1jpqvT-000RIh-8Y for gctc-ntg-context-518@m.gmane-mx.org; Mon, 29 Jun 2020 12:22:11 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CCD67185338; Mon, 29 Jun 2020 12:21:53 +0200 (CEST) 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 Fs86zJ_HapNy; Mon, 29 Jun 2020 12:21:51 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B1B14185331; Mon, 29 Jun 2020 12:21:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2C3A618508A for ; Mon, 29 Jun 2020 12:21:51 +0200 (CEST) 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 vH2Q-kKcJseg for ; Mon, 29 Jun 2020 12:21:50 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.47; helo=mail-wr1-f47.google.com; envelope-from=jairoadelrio6@gmail.com; receiver= Original-Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 5890F184E98 for ; Mon, 29 Jun 2020 12:21:50 +0200 (CEST) Original-Received: by mail-wr1-f47.google.com with SMTP id z15so4695373wrl.8 for ; Mon, 29 Jun 2020 03:21:50 -0700 (PDT) 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; bh=Xt2MyQRh7ZZjeOQhQfw8iuUAFtDn2E7GfCCHdBE0WEo=; b=X/KT0RTnNhN1e8jtTaYi0VYxF0HdItlttIwiCS+981dNeJCG+uJBHUHtcW19K125e+ 6mPPy7nkGgJP3GWIti72rbxr9njFiWV39RS66gPuKFro4o4xrXN772rOWMgk9MWPeIGD kPNjaSZOQUqeYlH148qz0qspiM3A870GYLgkqeFZ+7FMnLJ0LRl/aYUNfQwVcOkGrO2g IUQpH9Traaw1CUsToasfVDQcRPM896cmiEkgxioRt6m+ycmE1T3TZS6rFgIQ+Md5Ejlo r6DXosOdysiSN8qsz/NvtK8vQ+5XB1JAZ2DMEkKQMMlbeh9MNbIkfKR3sjf69gzlFj13 88Xw== 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; bh=Xt2MyQRh7ZZjeOQhQfw8iuUAFtDn2E7GfCCHdBE0WEo=; b=pc/KB/P3Lp1vyMWczyyCd4m3ayipI0tNkOQesWSX/sGYRvy1atS0oFL2uFd/nPIQmE q8pRBMDFrhx9gkqzvwioPxXV7ej+JW1LrPm2d7SfTkL8f7vezyFCJFZruMaCurBzduPU 4mWGy8Vk8EH90VAMH9Ad4y8mEHDMtVKgR/uvyE4rTzZkx2dgjwhh8TANjCoe7XN0tPUG xZBDpFH9uh4+bz7Qv3XCoEjR9oFDhkSIrerk6lKIVPbEOZ4BK57SR6B9SyPJTXYukb2i 7XQnkr/qg2XJJFI7lxtQzaSPd8jArdVw+8Eq+ZNDLCLdgtERcEc6yQsrBNhQnu6eTiFY l3qg== X-Gm-Message-State: AOAM532pnJ4OZIHHoOG4NWZf5MgBQ3jTgfOeR9rDDv9X/FHKSKQTCVs9 x3eFdqO6QSszc2QlsMJYPCqtKrS1Jx1zHaEE+IHX248XjEI= X-Google-Smtp-Source: ABdhPJxa/fWPHY0KXW7eSoVpd8vLRzMewtkstP1XiEjgDv+7JA0EJ+TJjIG7WscBM0qA3/l2H/KJ3lHqQGEKqRqx8BQ= X-Received: by 2002:adf:bc41:: with SMTP id a1mr15612459wrh.186.1593426109799; Mon, 29 Jun 2020 03:21:49 -0700 (PDT) In-Reply-To: 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:107886 Archived-At: --===============7701415498128974515== Content-Type: multipart/alternative; boundary="0000000000004020dc05a9366dc6" --0000000000004020dc05a9366dc6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Wouldn't it be slow for larger documents? I will try anyway. By the way, I've seen Lua(La)TeX users recurring to callbacks (process input buffer) to make string replacements and I've done so myself sometimes. Does ConTeXt do preprocessing the same way or is a better alternative possible? Thank you very much. Jairo :) El lun., 29 de jun. de 2020 a la(s) 02:50, luigi scarso ( luigi.scarso@gmail.com) escribi=C3=B3: > > > On Sun, Jun 28, 2020 at 10:48 PM Jairo A. del Rio > wrote: > >> I've read the following is not possible in TeX >> >> \def#1\macro{blabla#1} >> >> where arguments come before. The only partial exceptions are commands >> like \atop or \over, which are in fact primitives. Is there a way to do >> this in ConTeXt? >> >> > you can build a lpeg and parse the your "extended tex" source, obtaining = a > valid tex source. > > > -- > luigi > > _________________________________________________________________________= __________ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > _________________________________________________________________________= __________ > --0000000000004020dc05a9366dc6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Wouldn't it be slow for larger documents? I will = try anyway. By the way, I've seen Lua(La)TeX users recurring to callbac= ks (process input buffer) to make string replacements and I've done so = myself sometimes. Does ConTeXt do preprocessing the same way or is a better= alternative possible? Thank you very much.

Jairo :)

--0000000000004020dc05a9366dc6-- --===============7701415498128974515== 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== --===============7701415498128974515==--