mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-14 04:21:56 +00:00
tex2lyx: support for mathdesign
This commit is contained in:
parent
e3a3797e2f
commit
c466916a25
@ -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", "lmodern", "mathpazo",
|
||||
"mathptmx", "newcent", "utopia", 0};
|
||||
"ccfonts", "chancery", "charter", "cmr", "fourier", "lmodern",
|
||||
"mathdesign", "mathpazo", "mathptmx", "newcent", "utopia", 0};
|
||||
|
||||
const char * const known_sans_fonts[] = { "avant", "berasans", "cmbr", "cmss",
|
||||
"helvet", "kurier", "kurierl", "lmss", 0};
|
||||
@ -669,6 +669,20 @@ void Preamble::handle_package(Parser &p, string const & name,
|
||||
h_font_sc = "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)
|
||||
h_font_roman = "md-garamond";
|
||||
if (opts.find("utopia") != string::npos)
|
||||
h_font_roman = "md-utopia";
|
||||
if (opts.find("expert") != string::npos) {
|
||||
h_font_sc = "true";
|
||||
h_font_osf = "true";
|
||||
}
|
||||
}
|
||||
|
||||
else if (name == "mathpazo")
|
||||
h_font_roman = "palatino";
|
||||
|
||||
|
@ -64,7 +64,6 @@ Format LaTeX feature LyX feature
|
||||
434 libertine-type1, libertine.sty, \font_osf, \font_roman
|
||||
libertine-legacy.sty
|
||||
435 txtt LaTeX font \font_typewriter
|
||||
436 mathdesign.sty \font_roman
|
||||
437 TeX Gyre LaTeX fonts \font_*
|
||||
438 \tone{51}, \tone{15}, \tone{45}, InsetTIPA
|
||||
\tone{12}, \tone{454}, \toptiebar,
|
||||
|
Loading…
x
Reference in New Issue
Block a user