mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Was forgetting to add the caption to the list of listings
This commit is contained in:
parent
3dfa1cb417
commit
c5c480bb3c
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user