Hi Norbert, would you consider getting this fix into a jessie update? Or allowing me to prepare one?
AIUI the corresponding change is http://tug.org/svn/texlive/trunk/Master/texmf-dist/tex/latex/listings/listings.sty?r1=35124&r2=37534 Thanks, Julien On Wed, Jul 1, 2015 at 01:52:31 +0200, Vincent Lefevre wrote: > On 2014-06-29 10:07:31 +0900, Norbert Preining 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.vaneyc...@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 > > > > ********************* > > The bug appears to be fixed in 2015.20150625-1 (\lstinline has changed, > but not in the way above): with my testcase, pdflatex no longer fails, > and the output is the same as with listings.sty 1.4. So, I'm closing > the bug. > > -- > Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> > 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> > Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon) -- Julien Cristau <julien.cris...@logilab.fr> Logilab http://www.logilab.fr/ Informatique scientifique & gestion de connaissances
signature.asc
Description: Digital signature