Was forgetting to add the caption to the list of listings

This commit is contained in:
Enrico Forestieri 2017-06-10 21:00:43 +02:00
parent 3dfa1cb417
commit c5c480bb3c

View File

@ -423,6 +423,8 @@ static docstring const lyxmintcaption_def = from_ascii(
"\\long\\def\\lyxmintcaption[#1]#2{%\n" "\\long\\def\\lyxmintcaption[#1]#2{%\n"
" \\ifx#1t\\vskip\\baselineskip\\fi%\n" " \\ifx#1t\\vskip\\baselineskip\\fi%\n"
" \\refstepcounter{listing}\\noindent%\n" " \\refstepcounter{listing}\\noindent%\n"
" \\addcontentsline{lol}{listing}%\n"
" {\\protect\\numberline{\\thelisting}{\\ignorespaces #2}}%\n"
" \\setbox\\@tempboxa\\hbox{\\listingscaption~\\thelisting: #2}%\n" " \\setbox\\@tempboxa\\hbox{\\listingscaption~\\thelisting: #2}%\n"
" \\ifdim \\wd\\@tempboxa >\\linewidth%\n" " \\ifdim \\wd\\@tempboxa >\\linewidth%\n"
" \\parbox[t]{\\linewidth}{\\unhbox\\@tempboxa}\\else%\n" " \\parbox[t]{\\linewidth}{\\unhbox\\@tempboxa}\\else%\n"