LATEX-L Archives

Mailing list for the LaTeX3 project


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender: Mailing list for the LaTeX3 project <[log in to unmask]>
Date: Thu, 21 Apr 2016 14:08:40 -0400
Reply-To: Mailing list for the LaTeX3 project <[log in to unmask]>
Message-ID: <[log in to unmask]>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
In-Reply-To: <[log in to unmask]>
Content-Type: text/plain; charset=UTF-8
From: Bruno Le Floch <[log in to unmask]>
Parts/Attachments: text/plain (47 lines)
On 4/21/16, Lars Hellström <[log in to unmask]> wrote:
> Joseph Wright skrev 2016-04-20 22.18:
>> Hello all,
>> Submitted today a minor update to the usual bundle to address a couple
>> of issues during TL'16 pre-testing:
> [snip]
>> - Allow expansion of end-of-environment code such that e.g.
>>      \NewDocumentEnvironment{foo}{}{\begin{tabular}{\end{tabular}
>>    works as expected
> Unintentionally funny when you read it literally. "What could they have done
> to make /that/ work differently??" :-)
> Lars Hellström

True.  For those who don't know what we are talking about: to support
both the syntax with a trailing \\ and without, the LaTeX2e
\end{tabular} uses the TeX primitive \crcr.  So

       Test & test \\

       Test & test

both produce a single row.  Environments defined by xparse used to be
"\protected", which stops TeX from seeing \crcr right after \\, hence
made it believe that the row was not ended by \\ and made it add an
extra row.  Thus xparse's

      Test & test \\

used to produce two rows and now produces a single one, as expected.