From: Enrico Forestieri Date: Sat, 10 Jun 2017 19:00:43 +0000 (+0200) Subject: Was forgetting to add the caption to the list of listings X-Git-Tag: 2.3.0beta1~279 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c5c480bb3c3d99a70e4b3cc6336fda171b080c15;hp=3dfa1cb417fe909adb96311500bc00e7f8306fd6;p=features.git Was forgetting to add the caption to the list of listings --- diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp index bf8cf24f07..54cf237eb5 100644 --- a/src/LaTeXFeatures.cpp +++ b/src/LaTeXFeatures.cpp @@ -423,6 +423,8 @@ static docstring const lyxmintcaption_def = from_ascii( "\\long\\def\\lyxmintcaption[#1]#2{%\n" " \\ifx#1t\\vskip\\baselineskip\\fi%\n" " \\refstepcounter{listing}\\noindent%\n" + " \\addcontentsline{lol}{listing}%\n" + " {\\protect\\numberline{\\thelisting}{\\ignorespaces #2}}%\n" " \\setbox\\@tempboxa\\hbox{\\listingscaption~\\thelisting: #2}%\n" " \\ifdim \\wd\\@tempboxa >\\linewidth%\n" " \\parbox[t]{\\linewidth}{\\unhbox\\@tempboxa}\\else%\n"