IndexPrint and Nomencl were not fully latexified.

Do not treat them as non-verbatim in conversion. This keeps math $...$
as math.

There will be problems with characters that are outside the given
encoding, but as long as there is no way to convert them to the
respective LaTeX macros from within lyx2lyx, I don't know how to solve
this.
This commit is contained in:
Juergen Spitzmueller 2017-04-29 13:54:01 +02:00
parent de990f72e1
commit f943897d85

View File

@ -1550,9 +1550,6 @@ command_insets = ["bibitem", "citation", "href", "index_print", "nomenclature"]
def convert_literalparam(document):
" Add param literal "
# These already had some sort of latexify method
latexified_insets = ["href", "index_print", "nomenclature"]
for inset in command_insets:
i = 0
while True:
@ -1566,7 +1563,8 @@ def convert_literalparam(document):
continue
while i < j and document.body[i].strip() != '':
i += 1
if inset in latexified_insets:
# href is already fully latexified. Here we can switch off literal.
if inset == "href":
document.body.insert(i, "literal \"false\"")
else:
document.body.insert(i, "literal \"true\"")