]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/preamble.cpp
tex2lyx: support for wrapped floats and all their possible options
[lyx.git] / src / tex2lyx / preamble.cpp
index 964d062ada03464bc9abb07479e98f73bb6c8e29..7ba86a243032885d2e75642af0664903eac25ae3 100644 (file)
@@ -571,9 +571,11 @@ void handle_package(Parser &p, string const & name, string const & opts,
 
        else if (name == "fontenc") {
                h_fontencoding = getStringFromVector(options, ",");
-               // as of version LyX 2.0 "T1" is equal to the setting "global"
-               if (h_fontencoding == "T1")
+               /* We could do the following for better round trip support,
+                * but this makes the document less portable, so I skip it:
+               if (h_fontencoding == lyxrc.fontenc)
                        h_fontencoding = "global";
+               */
                options.clear();
        }
 
@@ -649,6 +651,9 @@ void handle_package(Parser &p, string const & name, string const & opts,
        else if (name == "rotfloat")
                ; // ignore this
 
+       else if (name == "wrapfig")
+               ; // ignore this
+
        else if (is_known(name, known_languages))
                h_language = name;