mirror of https://github.com/mpastell/Weave.jl
fix bug
parent
12e148af18
commit
3dfe817584
|
@ -210,12 +210,12 @@ end
|
||||||
function unicode2tex(docformat::TexFormat, s, escape = false)
|
function unicode2tex(docformat::TexFormat, s, escape = false)
|
||||||
# Check whether to convert at all and return input if not4
|
# Check whether to convert at all and return input if not4
|
||||||
docformat.keep_unicode && return s
|
docformat.keep_unicode && return s
|
||||||
starter = docformat.escape_starter
|
starter = docformat.start_escape
|
||||||
closer = docformat.escape_closer
|
closer = docformat.close_escape
|
||||||
for key in keys(latex_symbols)
|
for key in keys(latex_symbols)
|
||||||
body = "\\ensuremath{$(texify(key))}"
|
body = "\\ensuremath{$(texify(key))}"
|
||||||
target = escape ? string(starter, body, closer) : body
|
target = escape ? string(starter, body, closer) : body
|
||||||
s = replace(s, latex_symbols[key] => body)
|
s = replace(s, latex_symbols[key] => target)
|
||||||
end
|
end
|
||||||
return s
|
return s
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue