]> git.lyx.org Git - features.git/commitdiff
tex2lyx: support for eulervm
authorUwe Stöhr <uwestoehr@lyx.org>
Mon, 11 Feb 2013 01:34:03 +0000 (02:34 +0100)
committerUwe Stöhr <uwestoehr@lyx.org>
Mon, 11 Feb 2013 01:34:03 +0000 (02:34 +0100)
src/tex2lyx/Preamble.cpp
src/tex2lyx/TODO.txt

index b8ce4f3cd44a3b5fbf834741f626c4f085a479b4..1e14cef7072137777407a7d1191870f625d630d9 100644 (file)
@@ -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" ||
index 704e2b515dd7af531929eae9699e5eb9c2047257..d45296944c94c64b3d9301e43f13f0ba900c7450 100644 (file)
@@ -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