mo = rscales.search(xval)
if mo != None:
xval1 = mo.group(1)
- xval2 = mo.group(2)
if xval1 != "100":
# set correct scale option
fontmap[val].extend([fontinfo.scaleopt + "=" + format(float(xval1) / 100, '.2f')])
"""Revert ParaType font definitions to LaTeX"""
if not get_bool_value(document.header, "\\use_non_tex_fonts"):
- preamble = ""
i1 = find_token(document.header, "\\font_roman \"PTSerif-TLF\"", 0)
i2 = find_token(document.header, "\\font_sans \"default\"", 0)
i3 = find_token(document.header, "\\font_typewriter \"default\"", 0)
}
i = 0
- bibresources = []
while (True):
i = find_token(document.body, "\\begin_inset CommandInset bibtex", i+1)
if i == -1:
}
i = 0
- bibresources = []
while (True):
i = find_token(document.body, "\\begin_inset CommandInset bibtex", i+1)
if i == -1:
fontmap = dict()
fm = createFontMapping(['IBM'])
- ft = ""
if revert_fonts(document, fm, fontmap, True):
add_preamble_fonts(document, fontmap)
fontmap = dict()
fm = createFontMapping(['Adobe'])
- ft = ""
if revert_fonts(document, fm, fontmap, True):
add_preamble_fonts(document, fontmap)
premap[ppp[0]] = val
postlist = posttexts.split("\t")
postmap = dict()
- num = 1
for pp in postlist:
ppp = pp.split(" ", 1)
val = ""
insets = ["\\medspace{}", "\\thickspace{}"]
for inset in insets:
i = 0
- j = 0
i = find_token(document.body, "\\begin_inset space " + inset, i)
if i == -1:
continue
}
for inset in insets.keys():
i = 0
- j = 0
i = find_token(document.body, "\\begin_inset VSpace " + inset, i)
if i == -1:
continue
" Revert Libertinus sans and tt font definitions to LaTeX "
if find_token(document.header, "\\use_non_tex_fonts false", 0) != -1:
- preamble = ""
# first sf font
i = find_token(document.header, "\\font_sans \"LibertinusSans-LF\"", 0)
if i != -1:
# Now parse cells
m = i + 1
- lines = []
for row in range(nrows):
for col in range(ncols):
m = find_token(document.body, "<cell", m)