]> git.lyx.org Git - lyx.git/commit
Allow captions also on non-floating minted listings
authorEnrico Forestieri <forenr@lyx.org>
Sat, 10 Jun 2017 16:43:23 +0000 (18:43 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Sat, 10 Jun 2017 16:43:23 +0000 (18:43 +0200)
commit3dfa1cb417fe909adb96311500bc00e7f8306fd6
tree7496e8cfb07426cee0d48dfa453dc7afc3d16c09
parentf34f0c1db4238d06655b5e7bff292daad881c6c8
Allow captions also on non-floating minted listings

Minted provides for captions only with floating listings. However,
listings always allows captions, and our machinery is geared accordingly.
So, instead of discriminating the floating and non-floating cases,
always allow for captions with minted, too. When minted does not provide
for a caption, we will provide one.
In the child document case the caption will always be before the listing,
while for the inset case the caption will be before the listing if it
is entered as the first line, after the listing otherwise.
src/LaTeXFeatures.cpp
src/insets/InsetInclude.cpp
src/insets/InsetListings.cpp