The branch, master, has been updated. - Log -----------------------------------------------------------------
commit a9504b806015d9747949eae79c161cb21cdb3d32 Author: Uwe Stöhr <[email protected]> Date: Mon Feb 11 02:56:48 2013 +0100 tex2lyx: support for newtxmath diff --git a/src/tex2lyx/Preamble.cpp b/src/tex2lyx/Preamble.cpp index 1e14cef..7d71f33 100644 --- a/src/tex2lyx/Preamble.cpp +++ b/src/tex2lyx/Preamble.cpp @@ -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"; diff --git a/src/tex2lyx/TODO.txt b/src/tex2lyx/TODO.txt index d452969..ebaa56d 100644 --- a/src/tex2lyx/TODO.txt +++ b/src/tex2lyx/TODO.txt @@ -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 ----------------------------------------------------------------------- Summary of changes: src/tex2lyx/Preamble.cpp | 13 ++++++++++++- src/tex2lyx/TODO.txt | 2 -- 2 files changed, 12 insertions(+), 3 deletions(-) hooks/post-receive -- The LyX Source Repository
