mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
Fix bug #7610 (wrong latex flavor flag set by pref2pref).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38976 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
54b626b8e0
commit
dd8ed95a0c
@ -71,9 +71,17 @@ def latex_flavor(line):
|
|||||||
conv = m.group(1)
|
conv = m.group(1)
|
||||||
fmat = m.group(2)
|
fmat = m.group(2)
|
||||||
args = m.group(3)
|
args = m.group(3)
|
||||||
flavor = "pdflatex"
|
conv2fl = {
|
||||||
if conv in ("platex", "xetex", "luatex"):
|
"luatex": "lualatex",
|
||||||
|
"pplatex": "latex",
|
||||||
|
"xetex": "xelatex",
|
||||||
|
}
|
||||||
|
if conv in conv2fl.keys():
|
||||||
|
flavor = conv2fl[conv]
|
||||||
|
else:
|
||||||
flavor = conv
|
flavor = conv
|
||||||
|
if flavor == "latex":
|
||||||
|
return no_match
|
||||||
return (True,
|
return (True,
|
||||||
"\\converter \"%s\" \"%s\" \"%s\" \"latex=%s\"" % (conv, fmat, args, flavor))
|
"\\converter \"%s\" \"%s\" \"%s\" \"latex=%s\"" % (conv, fmat, args, flavor))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user