Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by h1439878.stratoserver.net (8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id u34GucrP002430 for ; Mon, 4 Apr 2016 18:56:39 +0200 Received: from relay.uni-heidelberg.de ([129.206.100.212]) by mx-ha.gmx.net (mxgmx011) with ESMTPS (Nemesis) id 0LoIKv-1bT2CX2929-00gDyY for ; Mon, 04 Apr 2016 18:56:32 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id u34Gsf3X010347 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 4 Apr 2016 18:54:41 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id u34AtSTv007588; Mon, 4 Apr 2016 18:54:40 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 13536118 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 4 Apr 2016 18:54:40 +0200 Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id u34GseDL003005 for ; Mon, 4 Apr 2016 18:54:40 +0200 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id u34GsZ4E010304 for ; Mon, 4 Apr 2016 18:54:37 +0200 Received: from mittelbach-online.de ([91.15.245.71]) by mrelayeu.kundenserver.de (mreue003) with ESMTPSA (Nemesis) id 0M0e3W-1bgajl1MUw-00uskO for ; Mon, 04 Apr 2016 18:54:35 +0200 Received: from [192.168.123.104] (falco.fritz.box [192.168.123.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: frank) by mittelbach-online.de (Postfix) with ESMTPSA id C3AF562C002D for ; Mon, 4 Apr 2016 18:54:30 +0200 (CEST) References: <57029370.4090909@free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-MailScanner-ID: C3AF562C002D.A43B8 X-MailScanner: Not scanned: please contact your Internet E-Mail Service Provider for details X-MailScanner-SpamScore: s X-MailScanner-From: frank.mittelbach@latex-project.org X-Spam-Status: No X-Provags-ID: V03:K0:gHzGJaFrH/yUWqbTKBmnU2S9tg4Wgds0WC5ck+DUQOma0P5u0Nv N4zjfM5L/2os9cTNWnfvam0wCR0StjuxOXJFjld0JzKUJa9WRzmgIcbl0Z0lC+DmoH4s4dG w4jmJN5pYbVsrlUa8F8mGF8R5Nlyyukp1B7t1yahCeSC5wNybig9OpeaO0bN4Ln9DmYAiFq OoQ0EELlJzbz9JyoAdtCQ== Message-ID: <57029C43.8090605@latex-project.org> Date: Mon, 4 Apr 2016 18:54:27 +0200 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Frank Mittelbach Subject: Re: Bug in \NewDocumentEnvironment To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <57029370.4090909@free.fr> 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-GMX-Antivirus: 0 (no virus found) X-UI-Filterresults: notjunk:1;V01:K0:kuGxH/iESAw=:SCwO+tOC1sCXDhvUAbxpD7lf2X PTXjz6+aOuR6tLZl+Mc96Dzh5YVvDr4Gdrayhq/bHDBI3T5beRHAbRiE4YW9A2P9f7b/6QFVq GxkszuNYlGFFwnMjcLfgw7rb7iqYbVknYWXZonsPsJqtJJfNfJUFe22ZvCFopDkxsiVfZMNEa KASu9NNoBulUpp38h24Cu0l5iq0rZY01njJh8f4qLrK4OgPDpkzqbHlowQuYjdCWtuW7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LHa7yMl+XT2 X-Scanned-By: MIMEDefang 2.71 on 85.214.41.38 Status: R X-Status: X-Keywords: X-UID: 7923 guess this is a case of \protected being harmful Am 04.04.2016 um 18:16 schrieb Julien RIVAUD (_FrnchFrgg_): > \NewDocumentEnvironment{foo}{m}{% > \begin{tabular}{#1}% > }{% > \end{tabular}% > } > > \begin{document} > > \fbox{ > \begin{foo}{ccc} > \hline > Test & a & b \\ > \hline > \end{foo} > } > > \fbox{ > \begin{tabular}{ccc} > \hline > Test & a & b \\ > \hline > \end{tabular} > } > > \end{document} > > The first and second \fbox-es should produce the same output, but don't: > the foo environment starts a second line at closing time, before the > control is passed to the author-supplied closing code. actually that's not equiv, equiv would be something like defining "baz" \newenvironment{baz}[1]{% \begin{tabular}{#1}% }{% \end{tabular}% } but yes, same difference reason is the following difference in processing: \show\endfoo \show\endbaz > \endfoo=\protected macro: ->\environment foo end aux . l.10 \show\endfoo ? > \endbaz=\long macro: ->\end {tabular}. l.17 \show\endbaz the \protected hides the \crcr inside \endtabular. Now it may be that the protected is needed for other reasons (hope not) but perhaps it is just overprotection .. let Joseph say :-) frank