Return-Path: Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by h2774747.stratoserver.net (8.15.2/8.15.2/Debian-3) with ESMTP id x2VM8Sm3029108 for ; Mon, 1 Apr 2019 00:08:29 +0200 Received: from relay2.uni-heidelberg.de ([129.206.119.212]) by mx-ha.gmx.net (mxgmx116 [212.227.17.5]) with ESMTP (Nemesis) id 1MHYSH-1h5zfS10wj-00DY9v for ; Mon, 01 Apr 2019 00:08:23 +0200 IronPort-SDR: hC1xJcTl+WVPDyhZuswSMKGBo8akbFl12pyyJMixtaDfJUp3GYTU/gmW4bx4mIl+0PrDFHO54K ALR6Rm8wqL92iHpsnIlZ7z65bHOpKK8jvPSF1NuRjaseEPuWJoC+p+a1UTX9zR8IVIODrjGolh aC6/E65GOQn/g5nDR894ThcWNZhGqBnQEAjYBjEyBcKEytyoLSZ0noJgrop38/7NjP75e+d5/c x0qSUz3TLzvhVFPeIaB8KjBVOx7qaY1z18qKJqT52o0dMzipvSPiVFdSKLTsucS0kPNKA9H8hD 7NE= Received: from listserv.uni-heidelberg.de ([129.206.100.94]) by relay2.uni-heidelberg.de with ESMTP; 01 Apr 2019 00:08:24 +0200 Received: from listserv (localhost [127.0.0.1]) by listserv.uni-heidelberg.de (Postfix) with ESMTP id B3F43127AC8; Mon, 1 Apr 2019 00:08:16 +0200 (CEST) Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 34677136 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 1 Apr 2019 00:08:15 +0200 Delivered-To: LATEX-L@listserv.uni-heidelberg.de Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.119.212]) by listserv.uni-heidelberg.de (Postfix) with ESMTP id B86C8127882 for ; Sun, 31 Mar 2019 23:58:15 +0200 (CEST) IronPort-SDR: YY07yFXafnjfT9YI6t+2JOuSRcNJJ6kQwK1XKIO/NYvS9tKhGspMk3TIcjvWnQZ8zli0rvaqlh Z6o/1ewTXT5sHHm41Vx+G9Te9pc9z6Nmxm2qlGO9W03NIuMf2u5OrBDvXE/yDN/WO0xFIqCyLz lAGBdqPsQBBtCzD1bFI1Cmu4j5IRPjuP1vC4NKcNfyckpg793WDxsjeXnWxpUiILW5O55pAKVD a3GFK6zA2yP5nhLFxzzZfTaT4X5K662PVsbVPmLBnRBBphc1DmzDMCyFK7IWLN3hxi8O/FHxGU e/pygjvYIRVkgLyUzj6WXf02 X-IronPort-MID: 16407274 X-IronPort-RemoteIP: 209.85.222.180 X-IronPort-SenderGroup: UNKNOWNLIST X-IronPort-MailFlowPolicy: $ACCEPTED X-IronPort-Reputation: 2.8 IronPort-PHdr: =?us-ascii?q?9a23=3AJ9D08B/vF8vD+v9uRHGN80YQeigqvan1NQcJ65?= =?us-ascii?q?0hzohDabmn44+7YhWN//hphU6TG5jd6rdEhuvavqTqVHYPp5qM4zgZaJIZcR?= =?us-ascii?q?gDhI0NmhA4RtafABjjLPOsb2o9RexNUVZk+zewNk0GUN3maQjqq2appSUXBg?= =?us-ascii?q?25MAN0IurvHYuHl8S6keD0/MT7bABBhT77arR3f12ttQuEkM4QjMN5L7opjB?= =?us-ascii?q?vEpnwdY+NN2WZhPk6ehT7578a0uYdgqmFe4qJ5scFHVqr+cuIzSrkBVmYcPm?= =?us-ascii?q?s45dPmuVz4dSXVtytOdGIQn1IIGQXB5QCgGIr3s276u+tx1S2QMNf5C7w5C3?= =?us-ascii?q?yk6O9wRRnkhT1iVXZx+XzLisF2kKNQoQ6w7x15zYnOZYiJNf14NqrDdNIeTG?= =?us-ascii?q?BFU45fTStESo+7aoIOCaIGM4M658Hlp1ZIrV25XCGjAeruznlDgXq3law23u?= =?us-ascii?q?I9EB3XiRQ6FoFGu3DVodPpcaYKBLrtne+YkHOZNakQgGelu+2qOlg7rPqBXK?= =?us-ascii?q?x9a5/LxE0mBlmDk1OR7IzoPj+Y0u4AqWfd4+czMIDnw2MhtQx1pSCig8k2jY?= =?us-ascii?q?yczJoVxxbEsyIg6IkwLNy8DkV8ZJT3dfkY/zHfLIZwTs44FitwuCt8yvsB4L?= =?us-ascii?q?a0eSELzNIswBuVOLSXNoOP5BzkTuOYJzx10WlkdLyIjBG36UG8y+f4W5Dugm?= =?us-ascii?q?xHpSdEjNTA80s1+UGMu5q/Q+Bmtge71DKGxlqV9+dFZEA5lKbWL5Qs2LF2mp?= =?us-ascii?q?dB+UjEGyb3ng3xgsr0Pg08+uXu66LgO53po5adM8l/jQS2Pqk1m8O5CPg1KU?= =?us-ascii?q?BUBzndqbn6jue5uxSpGP1DlbUun7PcsYzGKMh+xObxGAJT3os5ql6+AzqgzN?= =?us-ascii?q?UEjCwCJVNBdgiAituhMFXPLfbkSPan1g70wXE7mracZOenW8WVfR2h2P/7cL?= =?us-ascii?q?1w6lBR0l8pwNRW9sgSF7cAZfL+W0P8sNbVFBB/PwHnpoSvQNh7yI4aXnqCR6?= =?us-ascii?q?GDN6aH+0eI66QvZe7VTIAQsTf5bfMi4rS96B1x0U9YZqSv0ZYNPTqgHvkgIw?= =?us-ascii?q?OeOFLjh94AFSEBuQ90H6T6zVaFVzBUfXO7Wakxsyo6BIyRBoDGXomxgbaF0X?= =?us-ascii?q?TefNUediVcB1uLC3uta5ScVqJGdneJOsE42G9MRf27RoQmzx3rqALq1+8tML?= =?us-ascii?q?/P4iNB0PCrnNltu7+IyFdrpGQyVZjClTnKFT08n3tUFWFqmvok+goklA/Fie?= =?us-ascii?q?8h0rRZDYABua0PC19gc8aal6sgU7WQEkrAZovbFgjgGIn3R2FpCIp2mYdGYl?= =?us-ascii?q?4hSYr4yEmfmXP7WflN0OXbTJ0srvCDgz6ofZs7kzCek/B/6jtuCspXaT//3v?= =?us-ascii?q?45rleMQd6PywLDzu6rbfhOhXGWsj7SkSzW+hkfCVA4UL2ZDypHNw2G8JKgvB?= =?us-ascii?q?OEF/j3VtFFekNA0ZLQcPIULIC5ywwXHrG7f42PK2OpxzXqXEjOnOjdKtGwPT?= =?us-ascii?q?1ahXSVHkEAl0pKpyS8OAMzBzmsryflNBI1Tgy9RUTq/KE+sn6/R15uiRyMbg?= =?us-ascii?q?hh2ru59xofiOaTDf8ejPoCv286pjN4EUzYvZqeAsecpwdnYKRXYM8sqFZB22?= =?us-ascii?q?XDsgVhP5umZ6l8j18aeg5zsgvgzRJyQolHlMErqjstwm8QYeqA10hdcjqDwZ?= =?us-ascii?q?3qErjeK2235RP2LqCPigmY39GR9aMCrv8/rhSrvQ2kEFYj72Qy09RR1Cj5hN?= =?us-ascii?q?2CBw4TXJTtF0cvokIi9veKP29nvdmSjC00YuGuvzTP2swkHr4/xxKpbo0ZLa?= =?us-ascii?q?WFUQ//EsEXA8KjMuNsl1X6C3BMdO1U6qMwONurMvWc36v+dv5gkXSmy2MeyI?= =?us-ascii?q?9420OIsSF7T6SbuvRNi+HdxQaBWzrm2R25tdvrnIlfeTwINm+2yCyhHY0II6?= =?us-ascii?q?MrLd5NBmCpLMm6gN55gtS+PhwQvE7mDFQA1sizfBOUZFGoxgxc23Mcpnm/kD?= =?us-ascii?q?e5xTh5ymB7nu+kxCXLht/aWl8CM29PSnNliA61c4exhtEeGkOvalpwzUf31Q?= =?us-ascii?q?PB36Fe4Z9HASzLW04RJnr5KmhjVu27sb/QO5cSuqNtij1eVaGHWX7fSrP5pE?= =?us-ascii?q?FEgSbqHm8b3TNiMj/z6s2/kBt9h2aQan10qSiBdA=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0DMAQAPN6FcgLTeVdFjHgEGBwaBUwc?= =?us-ascii?q?LAYINKjVcJAQLJ4QOYjuCXo9LKSAJBoExiUoDcoRggyuFd4F7EIRsAoU3Ggc?= =?us-ascii?q?BBDIHDQEBAwEBCQEDAQEUAQEJDQkIGwwlDIVBCgIEAQEhHQEbHgMMBgMCAwE?= =?us-ascii?q?HNwICIgERAQUBHAUBDIUGAQMIDYx/kAw8ix2BEgUBF4J6BYQwChknDV+BOAI?= =?us-ascii?q?GEoEdizN6FYEHg3UuPodOglcDgSsBpB4GAQKBapF2Gos5iHOIQ5ZjDyGBMwW?= =?us-ascii?q?CAjMaI4EBbYFOggqDboptKDCQWwEB?= X-IronPort-AV: E=Sophos;i="5.60,294,1549926000"; d="scan'208,217";a="16407274" X-MGA-submission: =?us-ascii?q?MDHKRiCcDfclxvV2cFTGlfDiQOMMUKidINmJH6?= =?us-ascii?q?WtIqNUb0TAKgqQc42G1jU4AkjQ5EFafSAIMe/iegBJfbbqvDonxmXuNo?= =?us-ascii?q?T1P20Ls0Z006k8R7yIRYjWcMXXWsuZ8af9+HivJLHVkresjmziOVZYiJ?= =?us-ascii?q?YQ/J3P8YY2EgfhJr1D7vnkIw=3D=3D?= Received: from mail-qk1-f180.google.com ([209.85.222.180]) by relay2.uni-heidelberg.de with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2019 23:58:15 +0200 Received: by mail-qk1-f180.google.com with SMTP id z76so4462250qkb.12 for ; Sun, 31 Mar 2019 14:58:14 -0700 (PDT) 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=wpq6qE6PBonqnFi6+eYMUIT6QU/asNzjfyqNwF9EFYs=; b=RWoy4e//SYcEoADQ7F+C1I/kzLQ+5FohbIvLVmqSakCziPCTRrUfQzHoNVn1+Oos+T UtIDLJzv6Mdrwh4vseGlQX/ppftp85Si1k7zDLFznM/4xBizMc0xaimvQJVRW2R4S5dj N+YyDMt/YNkkMytMqw12+Ol+J9nYOKUFdgySWBojvjI/w1oG2afSoytP4Ps9mLUNhVR4 pai1MjYBIg+icYTQI1eYx0kuti2KhAqdxo3li4kpvuXKVQGYKjhxkDXa4Dj2cZQzRywv +CCHDLS5f1OiR8FMuOm6orVdok99unMS+WzKDOzGc/3C7fcW7un0IQTO2lKHyL25Onij Yh8g== X-Gm-Message-State: APjAAAUQa3hJHCe1UxYsTYOjMTqOXiTyWrG4i+FDEUBvu5myOCFT7lzR Jn76cv4xmnx4zdsRSVkVwhJKHV1dRNsuD5ct2cNwcGVi X-Google-Smtp-Source: APXvYqzAKN/4vwN2D1oRnrOVuabKunbVhKDI2m//ai9KGMD47y/Ee/Kqf4BEWfunR8wJ11oNynDRv6jQUfUArpcPFbA= X-Received: by 2002:a37:484b:: with SMTP id v72mr1946152qka.354.1554069493068; Sun, 31 Mar 2019 14:58:13 -0700 (PDT) MIME-Version: 1.0 References: <856ff273317abf46dda9ce8c6fb0d6bd8d22472b.camel@sipsolutions.net> Content-Type: multipart/alternative; boundary="00000000000017389d05856b00c8" Message-ID: Date: Sun, 31 Mar 2019 18:57:32 -0300 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Phelype Oleinik Subject: Re: Rescanning first token of environment when no optional argument is given To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <856ff273317abf46dda9ce8c6fb0d6bd8d22472b.camel@sipsolutions.net> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: Envelope-To: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=V3; X-Spam-Flag: NO X-UI-Filterresults: notjunk:1;V03:K0:0mqGgbbYvSU=:/fLI3QZabwIkWrnpBVQ/UvSoSB bUYKTxK4QIuYZrW8yKEGDvldpU1CJMCv2Mc9i3bNguRqbfKnP7o/gAQ51t+EGBPNOwiF+ybm5 tMvqXeHO5P+eRmla1uuwdrk3YBc6WTvNxloUwSfbUiDNLzV9Nc8cTcpMK9gaPd45LdjbLWwPk qMee+mYgdQirfP09xf1XnKEn0tkY+H2x0S6l2TZbKiMCcvfkpabEz6yvrdpGV+g+GjiHRStqg mfgM+qrzlKrWj54yTzaiIJuAXolgYp+cTNskvuCXJTzg11TXwldzYR3KXcjlCjGi3YdkgoVE5 4inJbUw+7QaNJobElQYwfRKoXti1gXsThDWQdMGBU1XiTDCohjabr3hO3HIcrpk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v23ub9MpHMHKbFxsLc2cofvSkIkfe9vHYExoOJQecUbG4IFpUn3G92OhUlWSiG DYP4+ZbZmoiynFxQiY+C+YR1Zie6kJ919AejHG9R4QT5ScWy6KEwALUVV9BQYor8JSg7LLgRL iISKA2LImSZLqANz039wFp1SZdfaeXnoKyrffMeRlR+OM5PwDCvlL0zlAzJvaWCh4JYXgvXNq U9dYsxK21mtB8Apz6SaDCcIxD8RP9Ww0LbdP8rHcMXQeMsKNLZylFJ5JHKYrn0MLvGoNX2yoG fjUXpgAHoQ== X-Scanned-By: MIMEDefang 2.78 on 81.169.212.23 Status: R X-Status: X-Keywords: X-UID: 8170 --00000000000017389d05856b00c8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Benjamin, If you can't switch the catcode of & before looking for the optional argument, as David suggests, you can use the ! argument modifier to disallow a space token before the first =E2=80=9C[=E2=80=9D: \NewDocumentEnvironment { sdapsarray } { !o } in which case: \begin{sdapsarray} & b \end{sdapsarray} will work as expected, but: \begin{sdapsarray} [] % note the space before the [] & b \end{sdapsarray} and: \begin{sdapsarray} [] & b \end{sdapsarray} won't see the optional argument anymore. Best, Phelype --00000000000017389d05856b00c8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi= Benjamin,

If you can't switch the catcode= of & before looking for the
optional argument, as David sugg= ests, you can use the !
argument modifier to disallow a space tok= en before the
first =E2=80=9C[=E2=80=9D:

\NewDocumentEnvironment { sdapsarray } { !o }

in = which case:

\begin{sdapsarray}
=C2=A0 & b
\end{sdapsarray}=

will work as expected, but:

\begin{= sdapsarray} [] % note the space before the []
=C2=A0 & b
\end{sda= psarray}

and:

\begin{sdapsarray= }
=C2=A0 []
=C2=A0 & b
\end{sdapsarray}

<= /div>
won't see the optional argument anymore.

=
Best,

Phelype
--00000000000017389d05856b00c8--