tex2lyx: support for libertine-type1

This commit is contained in:
Uwe Stöhr 2013-02-11 01:56:47 +01:00
parent 6a3acd336b
commit d27dac3efc
2 changed files with 11 additions and 3 deletions

View File

@ -124,8 +124,8 @@ const char * const known_old_language_packages[] = {"french", "frenchle",
char const * const known_fontsizes[] = { "10pt", "11pt", "12pt", 0 };
const char * const known_roman_fonts[] = { "ae", "beraserif", "bookman",
"ccfonts", "chancery", "charter", "cmr", "fourier", "garamondx", "lmodern",
"mathdesign", "mathpazo", "mathptmx", "newcent", "utopia", 0};
"ccfonts", "chancery", "charter", "cmr", "fourier", "garamondx", "libertine-type1",
"lmodern", "mathdesign", "mathpazo", "mathptmx", "newcent", "utopia", 0};
const char * const known_sans_fonts[] = { "avant", "berasans", "cmbr", "cmss",
"helvet", "kurier", "kurierl", "lmss", 0};
@ -675,6 +675,14 @@ void Preamble::handle_package(Parser &p, string const & name,
h_font_osf = "true";
}
if (name == "libertine-type1") {
h_font_roman = "libertine";
if (opts == "lining")
h_font_osf = "false";
else
h_font_osf = "true";
}
if (name == "mathdesign") {
if (opts.find("charter") != string::npos)
h_font_roman = "md-charter";

View File

@ -61,7 +61,7 @@ Format LaTeX feature LyX feature
411 support for polyglossia \language_package (the cases of no package, of babel and of custom package is supported)
415 undertilde.sty fonts
427 tipa.sty \begin{IPA}, \textipa InsetTIPA
434 libertine-type1, libertine.sty, \font_osf, \font_roman
434 libertine.sty, \font_osf, \font_roman
libertine-legacy.sty
435 txtt LaTeX font \font_typewriter
437 TeX Gyre LaTeX fonts \font_*