tex2lyx: fix bug #7856

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39983 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2011-10-25 23:17:24 +00:00
parent 0bff66b8a5
commit e2d9adadaa

View 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";