mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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:
parent
de990f72e1
commit
f943897d85
@ -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\"")
|
||||
|
Loading…
Reference in New Issue
Block a user