The branch, master, has been updated. - Log -----------------------------------------------------------------
commit 87fe26e5ebc3325767c44c8ed9865fd40f563330 Author: Uwe Stöhr <[email protected]> Date: Mon Feb 11 02:34:03 2013 +0100 tex2lyx: support for eulervm diff --git a/src/tex2lyx/Preamble.cpp b/src/tex2lyx/Preamble.cpp index b8ce4f3..1e14cef 100644 --- a/src/tex2lyx/Preamble.cpp +++ b/src/tex2lyx/Preamble.cpp @@ -138,6 +138,8 @@ 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_paper_sizes[] = { "a0paper", "b0paper", "c0paper", "a1paper", "b1paper", "c1paper", "a2paper", "b2paper", "c2paper", "a3paper", "b3paper", "c3paper", "a4paper", "b4paper", "c4paper", "a5paper", "b5paper", @@ -732,13 +734,17 @@ void Preamble::handle_package(Parser &p, string const & name, if (name == "eco") h_font_osf = "true"; + // math fonts + if (is_known(name, known_math_fonts)) + h_font_math = name; + if (name == "refstyle") h_use_refstyle = "1"; // after the detection and handling of special cases, we can remove the // fonts, otherwise they would appear in the preamble, see bug #7856 if (is_known(name, known_roman_fonts) || is_known(name, known_sans_fonts) - || is_known(name, known_typewriter_fonts)) + || is_known(name, known_typewriter_fonts) || is_known(name, known_math_fonts)) ; else if (name == "amsmath" || name == "amssymb" || diff --git a/src/tex2lyx/TODO.txt b/src/tex2lyx/TODO.txt index 704e2b5..d452969 100644 --- a/src/tex2lyx/TODO.txt +++ b/src/tex2lyx/TODO.txt @@ -67,7 +67,7 @@ Format LaTeX feature LyX feature \tone{12}, \tone{454}, \toptiebar, \bottomtiebar 439 MinionPro.sty \font_roman, \font_osf -440 MinionPro.sty, eulervm.sty \font_math +440 MinionPro.sty, \font_math 442 newtxmath.sty, \font_math 443 unicode-math.sty InsetMath* 444 libertine.sty, \font_osf, \font_sans ----------------------------------------------------------------------- Summary of changes: src/tex2lyx/Preamble.cpp | 8 +++++++- src/tex2lyx/TODO.txt | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) hooks/post-receive -- The LyX Source Repository
