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

Denis Bitouzé dbitouze at wanadoo.fr
Sun Apr 8 12:17:18 CEST 2018


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---

Here is the `pdftex' version used:

  ┌────
  │ $ pdflatex                                                                                                                                                                                                                             1 ↵
  │ This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=pdflatex)
  │  restricted \write18 enabled.
  └────

Here is my file list:

  ┌────
  │  *File List*
  │     book.cls    2014/09/29 v1.4h Standard LaTeX document class
  │     bk10.clo    2014/09/29 v1.4h Standard LaTeX file (size option)
  │  kpfonts.sty     2010/08/20 v3.31
  │ textcomp.sty    2017/04/05 v2.0i Standard LaTeX package
  │   ts1enc.def    2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
  │   ts1enc.dfu    2018/04/05 v1.2c UTF-8 support for inputenc
  │  amsmath.sty    2017/09/02 v2.17a AMS math features
  │  amstext.sty    2000/06/29 v2.01 AMS text
  │   amsgen.sty    1999/11/30 v2.0 generic functions
  │   amsbsy.sty    1999/11/29 v1.2d Bold Symbols
  │   amsopn.sty    2016/03/08 v2.02 operator names
  │ geometry.sty    2018/03/24 v5.7 Page Geometry
  │   keyval.sty    2014/10/28 v1.15 key=value parser (DPC)
  │    ifpdf.sty    2017/03/15 v3.2 Provides the ifpdf switch
  │   ifvtex.sty    2016/05/16 v1.6 Detect VTeX and its facilities (HO)
  │  ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional
  │   omljkp.fd    2006/08/15 v1.0
  │   omsjkp.fd    2006/08/15 v1.0
  │   omxjkp.fd    2006/08/15 v1.0
  │  ujkpexa.fd    2006/08/15 v1.0
  │   ts1cmr.fd    2014/09/29 v2.5h Standard LaTeX font definitions
  │   ot1jkp.fd    2007/08/30 Fontinst v1.928 font definitions for OT1/jkp.
  └────


> 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.

This fails:

  ┌────
  │ ! Undefined control sequence.
  │ <argument> 01\@nil 
  │                    994
  │ l.25 [1994/12/01]
  │                  % LaTeX date must be December 1994 or later
  └────

with the MCE:

--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---
-- 
Denis



More information about the tex-live mailing list