Improve tex2lyx handling
This commit is contained in:
Juergen Spitzmueller 2024-08-21 17:54:06 +02:00
parent 954be0907b
commit 47176ce34c

View File

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