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

Joseph Wright joseph.wright at morningstar2.co.uk
Sun Apr 8 12:26:15 CEST 2018


On 08/04/2018 11:17, Denis Bitouzé wrote:
> Le 08/04/18 à 10h13, Joseph Wright a écrit :
> 
>> 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.
> 
> Sorry to not have read this thread more carefully. In fact, I sent this
> message because, since the this morning TL 2018's update, I'm facing the
> same error message as Vladimir:
> 
>    ┌────
>    │ ! Missing = inserted for \ifnum.
>    │ <to be read again>
>    │                    2
>    │ l.18 \usepackage
>    │                 {geometry}
>    │ ? h
>    │ I was expecting to see `<', `=', or `>'. Didn't.
>    └────
> 
> but even without spurious spaces, for instance with the following MCE:
> 
> --8<---------------cut here---------------start------------->8---
> \documentclass{article}
> \usepackage[noDcommand]{kpfonts}
> \usepackage{geometry}
> \begin{document}
> Foo.
> \end{document}
> --8<---------------cut here---------------end--------------->8---

kpfonts has a space after "[" in the package code: it's one of only two 
packages that do in TeX Live.


> 
> --8<---------------cut here---------------start------------->8---
> \documentclass{article}
> \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
> \usepackage[noDcommand]{kpfonts}
> \usepackage{geometry}
> \begin{document}
> Foo.
> \end{document}
> --8<---------------cut here---------------end--------------->8---

Did say I'd not tested it fully: I'll work on it.

Joseph




More information about the tex-live mailing list