tex2lyx: support for garamondx

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

View File

@ -124,7 +124,7 @@ 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", "lmodern",
"ccfonts", "chancery", "charter", "cmr", "fourier", "garamondx", "lmodern",
"mathdesign", "mathpazo", "mathptmx", "newcent", "utopia", 0};
const char * const known_sans_fonts[] = { "avant", "berasans", "cmbr", "cmss",
@ -669,8 +669,13 @@ void Preamble::handle_package(Parser &p, string const & name,
h_font_sc = "true";
}
if (name == "garamondx") {
h_font_roman = "garamondx";
if (opts == "osfI")
h_font_osf = "true";
}
if (name == "mathdesign") {
// when font uses real small capitals
if (opts.find("charter") != string::npos)
h_font_roman = "md-charter";
if (opts.find("garamond") != string::npos)

View File

@ -81,7 +81,7 @@ Format LaTeX feature LyX feature
447
448
449 \item[<arg>] \begin_inset Argument item:<nr>
450 garamondx.sty, ugm LaTeX font, \font_roman, \font_osf,
450 ugm LaTeX font, \font_roman, \font_osf,
[garamondx]{newtxmath} \font_math
451 beamer overlay arguments InsetArgument
\command<arg>, \begin{env}<arg>