mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
41dcd49980
lyx2lyx sets all new math packages to off when converting from old formats.
This is correct if any command which would cause an automatic package loading
exists in the document. However, it is wrong if no command exists: This leads
to problems if later a command is added (bug #9069), which is especially
annoying for templates.
The fix consists of two parts:
1) convert_use_package() considers now the used commands like
revert_use_package(), and uses them to decide whether to set the package to
auto or off.
2) convert_undertilde() and revert_undertilde() use a slightly adjusted copy of
convert_use_package() and revert_use_package(), so that the bug is also
fixed for undertilde. We cannot use the latter functions directly, because
of "\usepackage undertilde" vs. "\use_undertilde".
(cherry picked from commit
|
||
---|---|---|
.. | ||
bind | ||
commands | ||
doc | ||
examples | ||
fonts | ||
images | ||
kbd | ||
layouts | ||
lyx2lyx | ||
scripts | ||
templates | ||
tex | ||
ui | ||
.gitignore | ||
autocorrect | ||
build-listerrors | ||
chkconfig.ltx | ||
configure.py | ||
CREDITS | ||
encodings | ||
external_templates | ||
generate_contributions.py | ||
languages | ||
layouttranslations | ||
layouttranslations.review | ||
Makefile.am | ||
symbols | ||
syntax.default | ||
unicodesymbols |