lyx_mirror/src/tex2lyx
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 0b54650f0e)
2019-06-19 17:23:26 +02:00
..
test tex2lyx: improve module support 2019-06-19 17:23:26 +02:00
.gitignore
boost.cpp tex2lyx does not use LYXERR, but basic cerr stream 2013-05-31 11:38:41 +02:00
CMakeLists.txt Adapt the cmake-build-system to the reworked biblatex handling 2017-01-13 13:17:12 +01:00
Context.cpp tex2lyx: More work on beamer support 2018-03-17 13:49:13 +01:00
Context.h tex2lyx: add support for LaTeXParam 2018-03-17 13:54:02 +01:00
dummy_impl.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
Makefile.am Add -headerpad_max_install_names option to linker calls and make run path configuration consistent. 2018-09-22 20:33:41 +02:00
math.cpp
Parser.cpp tex2lyx: add support for LaTeXParam 2018-03-17 13:54:02 +01:00
Parser.h tex2lyx: add support for LaTeXParam 2018-03-17 13:54:02 +01:00
Preamble.cpp tex2lyx: improve module support 2019-06-19 17:23:26 +02:00
Preamble.h tex2lyx: improve module support 2019-06-19 17:23:26 +02:00
table.cpp tex2lyx: support decimal alignment in tables 2018-09-11 08:03:23 +02:00
tex2lyx.1in Fix whitespace in some more files. 2017-07-03 14:46:27 -04:00
tex2lyx.cpp tex2lyx: improve module support 2019-06-19 17:23:26 +02:00
tex2lyx.h tex2lyx: Add support for horizontal longtabular alignment 2018-09-10 16:31:46 +02:00
text.cpp tex2lyx: support for plural and capitalized refstyle 2018-09-11 08:07:03 +02:00
TODO.txt tex2lyx: support for plural and capitalized refstyle 2018-09-11 08:07:03 +02:00