From c5c480bb3c3d99a70e4b3cc6336fda171b080c15 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sat, 10 Jun 2017 21:00:43 +0200 Subject: [PATCH 1/1] Was forgetting to add the caption to the list of listings --- src/LaTeXFeatures.cpp | 2 ++ 1 file changed, 2 insertions(+) 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" -- 2.39.2