X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FLaTeXFeatures.cpp;h=54cf237eb5a822441d2142240b81a8fd514a5964;hb=ab81c23656b59aa14c41b8acc45f0f3e410ed785;hp=bf8cf24f0744fdfec7856af72a829f7cb057863f;hpb=3dfa1cb417fe909adb96311500bc00e7f8306fd6;p=lyx.git 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"