Juergen Spitzmueller 4cf56383ca tex2lyx: improve module support
The current heuristics only considered modules with styles that defined
a searched command in their preamble, and only for commands/environments
that were defined in the document's preamble. This limited the module
support drastically.

The new heuristics also checks for commands coming from packages. If the
command is not (re-)defined in the document preamble, it checks modules
that provide a style with a matching LaTeXName, checks for their
requirements and matches those with the packages loaded by the document.

If no module provides a searched style, but we found modules that load
packages that are loaded in the imported tex file, and if those packages
are not auto-loaded by LyX anyway, we also load this module.

fixes: #11259, part of #8229
(cherry picked from commit 0b54650f0e7f1eae39f93444cac6c8525811975b)
2019-06-19 17:23:26 +02:00
..
2017-06-17 02:23:00 +02:00
2018-03-17 14:36:45 +01:00
2018-03-12 09:19:17 +01:00
2018-03-12 09:19:17 +01:00
2018-03-17 14:36:45 +01:00
2018-03-17 14:36:45 +01:00
2017-06-17 19:35:10 +02:00
2017-06-17 02:23:00 +02:00