Bug#998240: Bug#954916: another breakage due to LaTeX changes?
Hi Joseph, last year you helped fixing a strange lgrind.dtx file: On Wed, 25 Mar 2020, Joseph Wright wrote: > On 25/03/2020 11:03, Enrico Gregorio wrote: > > > Where can we find lgrind.dtx? > > http://mirrors.ctan.org/support/lgrind/lgrind.dtx > The structure of the .dtx is ... unusual. It's got the \begin{document} in > the 'input' stage and the \end{document} 'as normal'. The result is "%" ends > up with the 'wrong' catcode, which is where the issue arises: what should be > a comment in the .def is not any longer. It can be fixed by making the .dtx > 'normal', i.e. moving the \begin{document} line, but I'm not sure if that is > an acceptable fix. You send a simple patch, and that worked all nicely till TeX Live 2021, and now the same lgrind.dtx (patched version is attached) fails again. The error message is comes from this part of the code: % The meta-symbols and their meanings are: % \begin{description} % \item[\$] The end of a line % \item[\^] The beginning of a line % \item[$\backslash$d] A delimiter (space, tab, newline, start of line) % \item[$\backslash$a] Matches any string of symbols (like `.*' in lex) *** And the error is: [8] ! Missing } inserted. } l.540 % \item[\^] The beginning of a line ? X Any suggestion again? As said, it was working till Dezember 2020 ;-) All the best Norbert -- PREINING Norbert https://www.preining.info Fujitsu Research + IFMGA Guide + TU Wien + TeX Live + Debian Dev GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13 % \iffalse % % This is LGrind.DTX. This was written by: % % - Van Jacobson, Lawrence Berkeley Laboratory (based on %vgrind by Dave Presotto & William Joy of UC Berkeley), %the original written for \TeX. % - Jerry Leichter of Yale University, modifications for \LaTeX. % - George V. Reilly of Brown University, renamed to lgrind % - Michael Piefel, Humboldt-University Berlin, for \LaTeXe %and a thousand little changes % % \fi % \iffalse %% Based on Van Jacobson's ``tgrindmac'', a macro package for TeX. %% Modified, 1987 by Jerry Leichter. Put '@' in all internal names. %% Modified, 1991 by George Reilly. Changed name from tgrind to lgrind. %% Modified, 1995 by Michael Piefel. Made it work with \LaTeXe. %% -1999Hundreds of bells and whistles. No changelog here. % %<*dtx> \ProvidesFile{lgrind.dtx} [2002/01/28 v3.67 LGrind environment and supporting stuff] % %\NeedsTeXFormat{LaTeX2e}[1996/06/01] %\ProvidesPackage{lgrind} % [2002/01/28 v3.67 LGrind environment and supporting stuff] %<*driver> \NeedsTeXFormat{LaTeX2e}[1996/06/01] \documentclass{ltxdoc} \CodelineIndex \RecordChanges \begin{document} \DocInput{lgrind.dtx} \end{document} % % \fi % % \newcommand{\LG}{\textsf{LGrind}} % \newcommand{\NFSS}{\textsf{NFSS}} % \frenchspacing % % \GetFileInfo{lgrind.dtx} % \title{The \LG{} package\thanks{This file % has version number \fileversion, last % revised \filedate.}} % \author{Various Artists} % \date{\filedate} % \maketitle % % \CheckSum{679} % % \begin{abstract} % The \LG{} package is a pretty printer for source % code. It evolved from vgrind, supported \TeX{} (tgrind) and % \LaTeX{} and now finally \LaTeXe, in particular \NFSS. % \end{abstract} % % \changes{v1.0}{1985/02/10}{Written} % \changes{v2.0}{1991/09/06}{Upgrade to \LaTeX2.09} % \changes{v3.0}{1995/09/24}{Upgrade to \LaTeXe} % % \section{Introduction} % \subsection{What is it?} % The \LG{} package consists of three files: % \begin{itemize} % \item \texttt{lgrind} or \texttt{lgrind.exe} is the executable. It will % convert an \LaTeX-File with embedded listings or a source code file % into a lot of macro-calls. % \item \texttt{lgrind.sty} provides the environments and macros to make % the produced mess readable. % \item \texttt{lgrindef} contains the information % needed to tell keywords from comments, comments from strings \dots % \end{itemize} % % \subsection{Who is to blame?} % \LG{} is not the work of a single one. The program is based on % \textsf{vgrind} by Dave Presotto \& William Joy of UC Berkeley. % % Van Jacobson wrote \textsf{tgrind} for \TeX. Jerry Leichter % of Yale University modified it for \LaTeX. George V. Reilly of % Brown University changed the name to lgrind and added the % program-text-within-comments and @-within-\LaTeX{} features, % and finally % Michael Piefel of the Humboldt-University Berlin converted it to % work under \LaTeXe, i.\,e. with \NFSS, and improved the documentation. % % However, there have been many contributors who supported the development; in % particular the range of supported languages is mainly due to them. % Unfortunately I do not know all of them, but my thanks go to everybody. % A special Thank You to % Torsten Sch\"utze for his OS/2 support and many and various hints. % % \section{\LG{} -- grind nice program listings} % % \begin{tabbing} % \texttt{lgrind} \= \texttt{[-s] [-e]
Bug#954916: another breakage due to LaTeX changes?
On 25/03/2020 20:32, Norbert Preining wrote: Hi Joseph, See attached Thanks (although order was reversed ;-) Should we upload that to CTAN? Best Norbert You can go for it; CTAN might not allow ... Joseph
Bug#954916: another breakage due to LaTeX changes?
Hi Joseph, > See attached Thanks (although order was reversed ;-) Should we upload that to CTAN? Best Norbert -- PREINING Norbert https://www.preining.info Accelia Inc. + IFMGA ProGuide + TU Wien + JAIST + TeX Live + Debian Dev GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
Bug#954916: another breakage due to LaTeX changes?
Control: reassign -1 src:lgrind Control: tags -1 + patch Am 25.03.2020 um 15:57 teilte Joseph Wright mit: > On 25/03/2020 11:24, Norbert Preining wrote: >> On Wed, 25 Mar 2020, Joseph Wright wrote: >>> 'normal', i.e. moving the \begin{document} line, but I'm not sure if >>> that is >>> an acceptable fix. >> >> Can you send a patch? > > See attached > Reassign. patch is reverted, needs to be applied using patch -R . Hilmar -- sigfault #206401 http://counter.li.org signature.asc Description: OpenPGP digital signature
Bug#954916: another breakage due to LaTeX changes?
On 25/03/2020 11:24, Norbert Preining wrote: On Wed, 25 Mar 2020, Joseph Wright wrote: The structure of the .dtx is ... unusual. It's got the \begin{document} in Yes, this is what I saw, too, but it was working before ;-) 'normal', i.e. moving the \begin{document} line, but I'm not sure if that is an acceptable fix. Can you send a patch? Thanks Best Norbert See attached Joseph --- lgrind.dtx 2020-03-25 14:56:20.117715900 + +++ lgrind-orig.dtx 2020-03-25 14:55:18.313276900 + @@ -20,17 +20,16 @@ % %<*dtx> \ProvidesFile{lgrind.dtx} - [2020/03/25 v3.68 LGrind environment and supporting stuff] + [2002/01/28 v3.67 LGrind environment and supporting stuff] % %\NeedsTeXFormat{LaTeX2e}[1996/06/01] %\ProvidesPackage{lgrind} -% [2020/03/25 v3.68 LGrind environment and supporting stuff] +% [2002/01/28 v3.67 LGrind environment and supporting stuff] %<*driver> \NeedsTeXFormat{LaTeX2e}[1996/06/01] \documentclass{ltxdoc} \CodelineIndex \RecordChanges -\begin{document} \DocInput{lgrind.dtx} \end{document} % @@ -41,6 +40,7 @@ % \frenchspacing % % \GetFileInfo{lgrind.dtx} +% \begin{document} % \title{The \LG{} package\thanks{This file % has version number \fileversion, last % revised \filedate.}}
Bug#954916: another breakage due to LaTeX changes?
On Wed, 25 Mar 2020, Joseph Wright wrote: > The structure of the .dtx is ... unusual. It's got the \begin{document} in Yes, this is what I saw, too, but it was working before ;-) > 'normal', i.e. moving the \begin{document} line, but I'm not sure if that is > an acceptable fix. Can you send a patch? Thanks Best Norbert -- PREINING Norbert https://www.preining.info Accelia Inc. + IFMGA ProGuide + TU Wien + JAIST + TeX Live + Debian Dev GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
Bug#954916: another breakage due to LaTeX changes?
On Wed, 25 Mar 2020, Joseph Wright wrote: > Where can we find lgrind.dtx? It was attached ... Norbert -- PREINING Norbert https://www.preining.info Accelia Inc. + IFMGA ProGuide + TU Wien + JAIST + TeX Live + Debian Dev GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
Bug#954916: another breakage due to LaTeX changes?
On 25/03/2020 11:03, Enrico Gregorio wrote: On 25 Mar 2020, at 11:57 , Joseph Wright wrote: Hi Norbert, Where can we find lgrind.dtx? http://mirrors.ctan.org/support/lgrind/lgrind.dtx Ciao Enrico The structure of the .dtx is ... unusual. It's got the \begin{document} in the 'input' stage and the \end{document} 'as normal'. The result is "%" ends up with the 'wrong' catcode, which is where the issue arises: what should be a comment in the .def is not any longer. It can be fixed by making the .dtx 'normal', i.e. moving the \begin{document} line, but I'm not sure if that is an acceptable fix. Joseph
Bug#954916: another breakage due to LaTeX changes?
> On 25 Mar 2020, at 11:57 , Joseph Wright > wrote: > > Hi Norbert, > > Where can we find lgrind.dtx? http://mirrors.ctan.org/support/lgrind/lgrind.dtx Ciao Enrico
Bug#954916: another breakage due to LaTeX changes?
On 25/03/2020 10:47, Norbert Preining wrote: Hi all, in particular LaTeX group, it seems that some old documents (.dtx) don't translate anymore correctly. That might be simply a bug in the old code, but maybe some oversight in the LaTeX code. The attached lgrind.dtx was used and always properly build up to recent changes (2020 LaTeX), but now fails with LaTeX2e <2020-02-02> patch level 5 L3 programming layer <2020-02-25> (/usr/share/texlive/texmf-dist/tex/latex/base/ltxdoc.cls Document Class: ltxdoc 2019/09/16 v2.0y Standard LaTeX documentation class (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls Document Class: article 2019/12/20 v1.4l Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo)) (/usr/share/texlive/texmf-dist/tex/latex/base/doc.sty (/usr/share/texlive/texmf-dist/tex/latex/tools/multicol.sty))) Writing index file lgrind.idx Writing glossary file lgrind.glo (./lgrind.dtx (/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-dvips.def ! LaTeX Error: Missing \begin{document}. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.2 %% T his is file `l3backend-dvips.def', ? ! Emergency stop. Since it contains the l3backend-dvipds.def that was recently introduced, I assume there is some breakage with recent LaTeX. Any comments? Please keep Cc, thanks! All the best Norbert Hi Norbert, Where can we find lgrind.dtx? Joseph
Bug#954916: another breakage due to LaTeX changes?
Hi all, in particular LaTeX group, it seems that some old documents (.dtx) don't translate anymore correctly. That might be simply a bug in the old code, but maybe some oversight in the LaTeX code. The attached lgrind.dtx was used and always properly build up to recent changes (2020 LaTeX), but now fails with > LaTeX2e <2020-02-02> patch level 5 > L3 programming layer <2020-02-25> > (/usr/share/texlive/texmf-dist/tex/latex/base/ltxdoc.cls > Document Class: ltxdoc 2019/09/16 v2.0y Standard LaTeX documentation class > (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls > Document Class: article 2019/12/20 v1.4l Standard LaTeX document class > (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo)) > (/usr/share/texlive/texmf-dist/tex/latex/base/doc.sty > (/usr/share/texlive/texmf-dist/tex/latex/tools/multicol.sty))) > Writing index file lgrind.idx > Writing glossary file lgrind.glo > (./lgrind.dtx > (/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-dvips.def > > ! LaTeX Error: Missing \begin{document}. > > See the LaTeX manual or LaTeX Companion for explanation. > Type H for immediate help. > ... > > l.2 %% T > his is file `l3backend-dvips.def', > ? > ! Emergency stop. Since it contains the l3backend-dvipds.def that was recently introduced, I assume there is some breakage with recent LaTeX. Any comments? Please keep Cc, thanks! All the best Norbert -- PREINING Norbert https://www.preining.info Accelia Inc. + IFMGA ProGuide + TU Wien + JAIST + TeX Live + Debian Dev GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13 % \iffalse % % This is LGrind.DTX. This was written by: % % - Van Jacobson, Lawrence Berkeley Laboratory (based on %vgrind by Dave Presotto & William Joy of UC Berkeley), %the original written for \TeX. % - Jerry Leichter of Yale University, modifications for \LaTeX. % - George V. Reilly of Brown University, renamed to lgrind % - Michael Piefel, Humboldt-University Berlin, for \LaTeXe %and a thousand little changes % % \fi % \iffalse %% Based on Van Jacobson's ``tgrindmac'', a macro package for TeX. %% Modified, 1987 by Jerry Leichter. Put '@' in all internal names. %% Modified, 1991 by George Reilly. Changed name from tgrind to lgrind. %% Modified, 1995 by Michael Piefel. Made it work with \LaTeXe. %% -1999Hundreds of bells and whistles. No changelog here. % %<*dtx> \ProvidesFile{lgrind.dtx} [2002/01/28 v3.67 LGrind environment and supporting stuff] % %\NeedsTeXFormat{LaTeX2e}[1996/06/01] %\ProvidesPackage{lgrind} % [2002/01/28 v3.67 LGrind environment and supporting stuff] %<*driver> \NeedsTeXFormat{LaTeX2e}[1996/06/01] \documentclass{ltxdoc} \CodelineIndex \RecordChanges \DocInput{lgrind.dtx} \end{document} % % \fi % % \newcommand{\LG}{\textsf{LGrind}} % \newcommand{\NFSS}{\textsf{NFSS}} % \frenchspacing % % \GetFileInfo{lgrind.dtx} % \begin{document} % \title{The \LG{} package\thanks{This file % has version number \fileversion, last % revised \filedate.}} % \author{Various Artists} % \date{\filedate} % \maketitle % % \CheckSum{679} % % \begin{abstract} % The \LG{} package is a pretty printer for source % code. It evolved from vgrind, supported \TeX{} (tgrind) and % \LaTeX{} and now finally \LaTeXe, in particular \NFSS. % \end{abstract} % % \changes{v1.0}{1985/02/10}{Written} % \changes{v2.0}{1991/09/06}{Upgrade to \LaTeX2.09} % \changes{v3.0}{1995/09/24}{Upgrade to \LaTeXe} % % \section{Introduction} % \subsection{What is it?} % The \LG{} package consists of three files: % \begin{itemize} % \item \texttt{lgrind} or \texttt{lgrind.exe} is the executable. It will % convert an \LaTeX-File with embedded listings or a source code file % into a lot of macro-calls. % \item \texttt{lgrind.sty} provides the environments and macros to make % the produced mess readable. % \item \texttt{lgrindef} contains the information % needed to tell keywords from comments, comments from strings \dots % \end{itemize} % % \subsection{Who is to blame?} % \LG{} is not the work of a single one. The program is based on % \textsf{vgrind} by Dave Presotto \& William Joy of UC Berkeley. % % Van Jacobson wrote \textsf{tgrind} for \TeX. Jerry Leichter % of Yale University modified it for \LaTeX. George V. Reilly of % Brown University changed the name to lgrind and added the % program-text-within-comments and @-within-\LaTeX{} features, % and finally % Michael Piefel of the Humboldt-University Berlin converted it to % work under \LaTeXe, i.\,e. with \NFSS, and improved the documentation. % % However, there have been many contributors who supported the development; in % particular the range of supported languages is mainly due to them. % Unfortunately I do not know all of them, but my thanks go to everybody. % A special Thank You to % Torsten Sch\"utze for his