Bug#752773: Bug report: the new listings.sty yields failures
Dear Jobst,
here at Debian we got a bug report concerning the latest listings
package, and I can confirm that it is the same on TeX Live
original.
The minimal file that worked with previous version but not
anymore is:
--------------------
\documentclass{article}
\usepackage{listings}
\newcommand\foo{\lstinline{t}}
\begin{document}
\begin{tabular}{l}
\foo
\end{tabular}
\end{document}
--------------------
The error is:
! Missing { inserted.
<inserted text>
{
l.7 \end{tabular}
?
The original reporter (in Cc) also provided an analysis:
> \newcommand\lstinline[1][]{%
> \leavevmode\bgroup % \hbox\bgroup --> \bgroup
> \def\lst@boxpos{b}%
> \lsthk@PreSet\lstset{flexiblecolumns,#1}%
> \lsthk@TextStyle
> \@ifnextchar\bgroup{%
> \ifnum`{=0}\fi%
> \afterassignment\lst@InlineG \let\@let@token}%
> \lstinline@}
>
> and it is the "\ifnum`{=0}\fi%" line (added in this new version) that
> triggers the error.
Thanks for your great work and all the best
Norbert
------------------------------------------------------------------------
PREINING, Norbert http://www.preining.info
JAIST, Japan TeX Live & Debian Developer
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
------------------------------------------------------------------------
Reply to: