]> git.lyx.org Git - features.git/commitdiff
tex2lyx: fix bug #7856
authorUwe Stöhr <uwestoehr@web.de>
Tue, 25 Oct 2011 23:17:24 +0000 (23:17 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Tue, 25 Oct 2011 23:17:24 +0000 (23:17 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39983 a592a061-630c-0410-9148-cb99ea01b6c8

src/tex2lyx/preamble.cpp

index ded4a6d68d84d28bb5876ef79986983031bfd2a4..4114d6df3287003495ea53b4ae9012dfe156a9f7 100644 (file)
@@ -523,6 +523,12 @@ void handle_package(Parser &p, string const & name, string const & opts,
        if (name == "eco")
                h_font_osf = "true";
 
+       // 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))
+               ;
+
        else if (name == "amsmath" || name == "amssymb")
                h_use_amsmath = "2";