]> git.lyx.org Git - lyx.git/commitdiff
Amend 13ee0bc8cd1025
authorJuergen Spitzmueller <spitz@lyx.org>
Wed, 21 Aug 2024 15:54:06 +0000 (17:54 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Wed, 21 Aug 2024 15:54:06 +0000 (17:54 +0200)
Improve tex2lyx handling

src/tex2lyx/Preamble.cpp

index c21a97abbe1879d52141a00a19bb4c0aaa70ea9d..cb57d9115c93c0685244e44e978a26b0d1db75f6 100644 (file)
@@ -1786,10 +1786,13 @@ void Preamble::handle_package(Parser &p, string const & name,
                        h_use_nomentbl = true;
                        options.erase(it);
                }
-               if (!options.empty())
-                       // Fixme: add PackageOptions to local layout
-                       warning_message("Ignoring options '" + join(options, ",")
-                                       + "' of package " + name + '.');
+               // Add the package options to the global document options
+               if (!options.empty()) {
+                       if (h_options.empty())
+                               h_options = join(options, ",");
+                       else
+                               h_options += ',' + join(options, ",");
+               }
        }
 
        else if (name == "geometry")