[tex-live] Problem with latex package rev. 47330

Joseph Wright joseph.wright at morningstar2.co.uk
Sun Apr 8 11:13:45 CEST 2018


On 08/04/2018 09:46, Denis Bitouzé wrote:
> Le 08/04/18 à 07h46, Joseph Wright a écrit :
> 
>>> Seems that parsing of '\ProvidesPackage' and related commands was
>>> changed. I made small example that shows the problem (I made several
>>> small packages and they have '\ProvidesPackage' similar to one in
>>> example). I attached example file and example style.
>>
>> I'll raise with the team: the issue is that space between "[" and the start of
>> the date, which has never been documented as supported that I know of.
> 
> Is there a workaround or restoring the latex package to rev. 43813 is
> currently the only way to fix this problem?

As I've said, I think the underlying problem is that a space had never 
really be officially supported between "[" and the start of the date 
information. So 'fix the .sty file' is quite workable.

That said, we'll almost certainly adjust here to deal with the problem 
(it comes about from some defensive code that's been added to avoid a 
separate issue!). For me

\makeatletter
\def\@ifl at t@r#1#2{%
   \ifnum\expandafter\@parse at version\expandafter#1//00\@nil<%
         \expandafter\@parse at version\expandafter#2//00\@nil
     \expandafter\@secondoftwo
   \else
     \expandafter\@firstoftwo
   \fi}
\def\@parse at version#1{\@parse at version@0#1\@nil}
\def\@parse at version@#1/#2/#3#4#5\@nil{%
   \@parse at version@dash#1-#2-#3#4\@nil
}
\makeatother

looks viable to keep the new defensive behaviour and allow for a space: 
depending on views from the rest of the team this might go in today.

(I'll log an issue for this shortly.)

Joseph



More information about the tex-live mailing list