mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
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.
This commit is contained in:
parent
48a73a9e05
commit
ab47e48dcc
@ -297,21 +297,18 @@ InsetLayout TOC:Listings
|
|||||||
End
|
End
|
||||||
|
|
||||||
InsetLayout TOC:MintedListings
|
InsetLayout TOC:MintedListings
|
||||||
# We need the [[List of Listings]] context, since "Listings" is also
|
# "List of Listings" is the name of the "List of listings"
|
||||||
# the name of the inset and translated differently.
|
# in minted.sty so it must be used here as well.
|
||||||
# "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.
|
|
||||||
BabelPreamble
|
BabelPreamble
|
||||||
\addto\captions$$lang{\renewcommand{\listoflistingscaption}{_(Listings[[List of Listings]])}}
|
\addto\captions$$lang{\renewcommand{\listoflistingscaption}{_(List of Listings)}}
|
||||||
EndBabelPreamble
|
EndBabelPreamble
|
||||||
# The command does not need to be defined in LangPreamble, since
|
# The command does not need to be defined in LangPreamble, since
|
||||||
# minted.sty does that already. However it needs to be redefined
|
# minted.sty does that already. However it needs to be redefined
|
||||||
# in order to be used for non-english single-language documents.
|
# in order to be used for non-english single-language documents.
|
||||||
LangPreamble
|
LangPreamble
|
||||||
\renewcommand{\listoflistingscaption}{_(Listings[[List of Listings]])}
|
\renewcommand{\listoflistingscaption}{_(List of Listings)}
|
||||||
EndLangPreamble
|
EndLangPreamble
|
||||||
FixedWidthPreambleEncoding true
|
FixedWidthPreambleEncoding false
|
||||||
HTMLTag h2
|
HTMLTag h2
|
||||||
HTMLStyle
|
HTMLStyle
|
||||||
div.lyxtoc-flat {
|
div.lyxtoc-flat {
|
||||||
@ -383,7 +380,7 @@ InsetLayout MintedListings
|
|||||||
LangPreamble
|
LangPreamble
|
||||||
\renewcommand{\listingscaption}{_(Listing)}
|
\renewcommand{\listingscaption}{_(Listing)}
|
||||||
EndLangPreamble
|
EndLangPreamble
|
||||||
FixedWidthPreambleEncoding true
|
FixedWidthPreambleEncoding false
|
||||||
End
|
End
|
||||||
|
|
||||||
InsetLayout Branch
|
InsetLayout Branch
|
||||||
|
Loading…
Reference in New Issue
Block a user