mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +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",
|
"courier", "lmtt", "luximono", "fourier", "lmodern", "mathpazo", "mathptmx",
|
||||||
"newcent", "tgcursor", "txtt", 0};
|
"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",
|
const char * const known_paper_sizes[] = { "a0paper", "b0paper", "c0paper",
|
||||||
"a1paper", "b1paper", "c1paper", "a2paper", "b2paper", "c2paper", "a3paper",
|
"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))
|
if (is_known(name, known_math_fonts))
|
||||||
h_font_math = name;
|
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")
|
if (name == "refstyle")
|
||||||
h_use_refstyle = "1";
|
h_use_refstyle = "1";
|
||||||
|
|
||||||
|
@ -68,7 +68,6 @@ Format LaTeX feature LyX feature
|
|||||||
\bottomtiebar
|
\bottomtiebar
|
||||||
439 MinionPro.sty \font_roman, \font_osf
|
439 MinionPro.sty \font_roman, \font_osf
|
||||||
440 MinionPro.sty, \font_math
|
440 MinionPro.sty, \font_math
|
||||||
442 newtxmath.sty, \font_math
|
|
||||||
443 unicode-math.sty InsetMath*
|
443 unicode-math.sty InsetMath*
|
||||||
444 libertine.sty, \font_osf, \font_sans
|
444 libertine.sty, \font_osf, \font_sans
|
||||||
libertine-legacy.sty
|
libertine-legacy.sty
|
||||||
@ -80,7 +79,6 @@ Format LaTeX feature LyX feature
|
|||||||
448
|
448
|
||||||
449 \item[<arg>] \begin_inset Argument item:<nr>
|
449 \item[<arg>] \begin_inset Argument item:<nr>
|
||||||
450 ugm LaTeX font, \font_roman, \font_osf,
|
450 ugm LaTeX font, \font_roman, \font_osf,
|
||||||
[garamondx]{newtxmath} \font_math
|
|
||||||
451 beamer overlay arguments InsetArgument
|
451 beamer overlay arguments InsetArgument
|
||||||
\command<arg>, \begin{env}<arg>
|
\command<arg>, \begin{env}<arg>
|
||||||
452 beamer block arguments InsetArgument
|
452 beamer block arguments InsetArgument
|
||||||
|
Loading…
Reference in New Issue
Block a user