mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
lyx_2_0.py: fixes for the mathdots conversion/reversion routines
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35287 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
59d550f894
commit
35846ee63a
@ -2058,7 +2058,7 @@ def revert_mathrsfs(document):
|
||||
|
||||
|
||||
def convert_mathdots(document):
|
||||
" Load mathdots if used in the document "
|
||||
" Load mathdots automatically "
|
||||
while True:
|
||||
i = find_token(document.header, "\\use_esint" , 0)
|
||||
if i != -1:
|
||||
@ -2073,7 +2073,7 @@ def revert_mathdots(document):
|
||||
if i != -1:
|
||||
# use \@ifundefined to catch also the "auto" case
|
||||
add_to_preamble(document, ["% this command was inserted by lyx2lyx"])
|
||||
add_to_preamble(document, ["\\@ifundefined{iddots}{\\usepackage{mathdots}}"])
|
||||
add_to_preamble(document, ["\\@ifundefined{iddots}{\\usepackage{mathdots}}\n"])
|
||||
del document.header[i]
|
||||
break
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user