]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.cpp
de.po: update
[lyx.git] / src / LaTeXFeatures.cpp
index bf8cf24f0744fdfec7856af72a829f7cb057863f..d4b0018b73dbe936743f71bc5a52c7fd7a603dfd 100644 (file)
@@ -423,6 +423,8 @@ static docstring const lyxmintcaption_def = from_ascii(
        "\\long\\def\\lyxmintcaption[#1]#2{%\n"
        "  \\ifx#1t\\vskip\\baselineskip\\fi%\n"
        "  \\refstepcounter{listing}\\noindent%\n"
+       "  \\addcontentsline{lol}{listing}%\n"
+       "  {\\protect\\numberline{\\thelisting}{\\ignorespaces #2}}%\n"
        "  \\setbox\\@tempboxa\\hbox{\\listingscaption~\\thelisting: #2}%\n"
        "  \\ifdim \\wd\\@tempboxa >\\linewidth%\n"
        "  \\parbox[t]{\\linewidth}{\\unhbox\\@tempboxa}\\else%\n"
@@ -680,7 +682,7 @@ TexString getSnippets(std::list<TexString> const & list)
        return snip.release();
 }
 
-} //anon namespace
+} // namespace
 
 
 void LaTeXFeatures::addPreambleSnippet(TexString ts, bool allow_dupes)
@@ -972,6 +974,8 @@ char const * simplefeatures[] = {
        "todonotes",
        "forest",
        "varwidth",
+       "footnote",
+       "tablefootnote",
 };
 
 char const * bibliofeatures[] = {
@@ -995,7 +999,7 @@ int const nb_bibliofeatures = sizeof(bibliofeatures) / sizeof(char const *);
 
 int const nb_simplefeatures = sizeof(simplefeatures) / sizeof(char const *);
 
-}
+} // namespace
 
 
 string const LaTeXFeatures::getColorOptions() const
@@ -1314,6 +1318,9 @@ TexString LaTeXFeatures::getMacros() const
                macros << getPreambleSnippets();
        }
 
+       if (mustProvide("xetexdashbreakstate"))
+               macros << "\\XeTeXdashbreakstate 0" << '\n';
+
        if (mustProvide("papersize")) {
                if (runparams_.flavor == OutputParams::LATEX
                    || runparams_.flavor == OutputParams::DVILUATEX)
@@ -1768,7 +1775,7 @@ docstring const i18npreamble(docstring const & templ, Language const * lang,
        return from_utf8(preamble);
 }
 
-}
+} // namespace
 
 
 docstring const LaTeXFeatures::getTClassI18nPreamble(bool use_babel,