"}\n"
"\\@mparswitchtrue\n");
+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"
+ " \\hbox to\\linewidth{\\hfil\\box\\@tempboxa\\hfil}\\fi%\n"
+ " \\ifx#1b\\vskip\\baselineskip\\fi\n"
+ "}\n");
+
/////////////////////////////////////////////////////////////////////
//
return snip.release();
}
-} //anon namespace
+} // namespace
void LaTeXFeatures::addPreambleSnippet(TexString ts, bool allow_dupes)
"todonotes",
"forest",
"varwidth",
+ "footnote",
+ "tablefootnote",
};
char const * bibliofeatures[] = {
int const nb_simplefeatures = sizeof(simplefeatures) / sizeof(char const *);
-}
+} // namespace
string const LaTeXFeatures::getColorOptions() const
if (mustProvide("rtloutputdblcol"))
macros << rtloutputdblcol_def;
+ if (mustProvide("lyxmintcaption"))
+ macros << lyxmintcaption_def;
+
return macros.release();
}
return from_utf8(preamble);
}
-}
+} // namespace
docstring const LaTeXFeatures::getTClassI18nPreamble(bool use_babel,