[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#752773: Bug report: the new listings.sty yields failures



On Sun, 29 Jun 2014 10:07:31 +0900 Norbert Preining <preining@logic.at> wrote:
> Dear Jobst,
> 
> one more thing: On the TeX Live mailing list Qing Lee send a fix:
> 
> **********************8
> It seems that listings used brace trick in a wrong way since 2014/03/04 v1.5c:
> ...
>     % \lstthanks{Luc~Van~Eycken}{Luc.VanEycken@esat.kuleuven.be}{2014/01/22}
>     % reported, that the experimental implementation of |\lstinline| with
>     % braces instead of characters surrounding the source code resulted in an
>     % error if used in a tabular environment. He found that this error comes
>     % from the master counter (cf. appendix D (Dirty Tricks), item 5. (Brace
>     % hacks), of the TeXbook (p. 385-386)). Adding the following line remedies
>     % the wrong behaviour.
> 
> A quick fix is
> 
>     \makeatletter
>     \renewcommand\lstinline[1][]{%
>         \leavevmode\bgroup % \hbox\bgroup --> \bgroup
>           \def\lst@boxpos{b}%
>           \lsthk@PreSet\lstset{flexiblecolumns,#1}%
>           \lsthk@TextStyle
>           \ifnum\iffalse{\fi`}=\z@\fi
>           \@ifnextchar\bgroup{%
>             \ifnum`{=\z@}\fi%
>             \afterassignment\lst@InlineG \let\@let@token}{%
>             \ifnum`{=\z@}\fi\lstinline@}}
>     \makeatother
> Details: http://tex.stackexchange.com/a/10371
> 
> *********************

Has this been fixed in the meantime? Because it still triggers with

Package: texlive-latex-recommended
Version: 2014.20141024-2

Thanks.

-- 
Regards/Gruss,
    Boris.

Sent from a fat crate under my desk. Formatting is fine.
--


Reply to: