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