commit ab47e48dcc525ed30b4e89b782d2ce5c81ca01c5
Author: Enrico Forestieri <for...@lyx.org>
Date:   Sun Jun 11 10:38:44 2017 +0200

    Change the name of the "List of listings" for minted
    
    I actually checked that minted calls "List of Listings" the list of
    listings, contrarily to the listings package.
---
 lib/layouts/stdinsets.inc |   15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/lib/layouts/stdinsets.inc b/lib/layouts/stdinsets.inc
index 6ee56de..53949e5 100644
--- a/lib/layouts/stdinsets.inc
+++ b/lib/layouts/stdinsets.inc
@@ -297,21 +297,18 @@ InsetLayout TOC:Listings
 End
 
 InsetLayout TOC:MintedListings
-       # We need the [[List of Listings]] context, since "Listings" is also
-       # the name of the inset and translated differently.
-       # "Listings[[List of Listings]]" is the name of the "List of listings"
-       # ("Listings" is the predefined english name) in minted.sty so it
-       # must be used here as well.
+       # "List of Listings" is the name of the "List of listings"
+       # in minted.sty so it must be used here as well.
        BabelPreamble
-               
\addto\captions$$lang{\renewcommand{\listoflistingscaption}{_(Listings[[List of 
Listings]])}}
+               
\addto\captions$$lang{\renewcommand{\listoflistingscaption}{_(List of 
Listings)}}
        EndBabelPreamble
        # The command does not need to be defined in LangPreamble, since
        # minted.sty does that already. However it needs to be redefined
        # in order to be used for non-english single-language documents.
        LangPreamble
-               \renewcommand{\listoflistingscaption}{_(Listings[[List of 
Listings]])}
+               \renewcommand{\listoflistingscaption}{_(List of Listings)}
        EndLangPreamble
-       FixedWidthPreambleEncoding true
+       FixedWidthPreambleEncoding false
   HTMLTag h2
   HTMLStyle
     div.lyxtoc-flat {
@@ -383,7 +380,7 @@ InsetLayout MintedListings
        LangPreamble
                \renewcommand{\listingscaption}{_(Listing)}
        EndLangPreamble
-       FixedWidthPreambleEncoding true
+       FixedWidthPreambleEncoding false
 End
 
 InsetLayout Branch

Reply via email to