2010-03-18: Richard Heck <rgheck@comcast.net>
* Format incremented to 379: revise format 374
Replace boolean \html_use_mathml with \html_math_output,
- which at the moment can be: MathML, HTML, or Images.
+ which at the moment can be: MathML, HTML, Images, or LaTeX.
2010-02-12 Pavel Sanda <sanda@lyx.org>
* Format incremented to 378: support for revision InsetInfo.
i = find_token(document.header, "\\html_math_output", 0)
if i == -1:
return
- rgx = re.compile(r'\\html_math_output\s+(\w+)')
+ rgx = re.compile(r'\\html_math_output\s+(\d)')
m = rgx.match(document.header[i])
+ newval = "true"
if rgx:
- newval = "false"
val = m.group(1)
- if val != "MathML":
- newval = "true"
- document.header[i] = "\\html_use_mathml " + newval
+ if val == "1" or val == "2":
+ newval = "false"
+ else:
+ document.warning("Unable to match " + document.header[i])
+ document.header[i] = "\\html_use_mathml " + newval
##
enum MathOutput {
MathML,
HTML,
- Images
+ Images,
+ LaTeX
};
/// what to use for math output. present choices are above
MathOutput html_math_output;