mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
tex2lyx: support for newtxmath
This commit is contained in:
parent
87fe26e5eb
commit
a9504b8060
@ -138,7 +138,7 @@ const char * const known_typewriter_fonts[] = { "beramono", "cmtl", "cmtt",
|
||||
"courier", "lmtt", "luximono", "fourier", "lmodern", "mathpazo", "mathptmx",
|
||||
"newcent", "tgcursor", "txtt", 0};
|
||||
|
||||
const char * const known_math_fonts[] = { "eulervm", 0};
|
||||
const char * const known_math_fonts[] = { "eulervm", "newtxmath", 0};
|
||||
|
||||
const char * const known_paper_sizes[] = { "a0paper", "b0paper", "c0paper",
|
||||
"a1paper", "b1paper", "c1paper", "a2paper", "b2paper", "c2paper", "a3paper",
|
||||
@ -738,6 +738,17 @@ void Preamble::handle_package(Parser &p, string const & name,
|
||||
if (is_known(name, known_math_fonts))
|
||||
h_font_math = name;
|
||||
|
||||
if (name == "newtxmath") {
|
||||
if (opts.empty())
|
||||
h_font_math = "newtxmath";
|
||||
else if (opts == "garamondx")
|
||||
h_font_math = "garamondx-ntxm";
|
||||
else if (opts == "libertine")
|
||||
h_font_math = "libertine-ntxm";
|
||||
else if (opts == "minion")
|
||||
h_font_math = "minion-ntxm";
|
||||
}
|
||||
|
||||
if (name == "refstyle")
|
||||
h_use_refstyle = "1";
|
||||
|
||||
|
@ -68,7 +68,6 @@ Format LaTeX feature LyX feature
|
||||
\bottomtiebar
|
||||
439 MinionPro.sty \font_roman, \font_osf
|
||||
440 MinionPro.sty, \font_math
|
||||
442 newtxmath.sty, \font_math
|
||||
443 unicode-math.sty InsetMath*
|
||||
444 libertine.sty, \font_osf, \font_sans
|
||||
libertine-legacy.sty
|
||||
@ -80,7 +79,6 @@ Format LaTeX feature LyX feature
|
||||
448
|
||||
449 \item[<arg>] \begin_inset Argument item:<nr>
|
||||
450 ugm LaTeX font, \font_roman, \font_osf,
|
||||
[garamondx]{newtxmath} \font_math
|
||||
451 beamer overlay arguments InsetArgument
|
||||
\command<arg>, \begin{env}<arg>
|
||||
452 beamer block arguments InsetArgument
|
||||
|
Loading…
Reference in New Issue
Block a user