Add a math-as-LaTeX option, and fix some issues with lyx2lyx.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33801 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-03-19 15:02:12 +00:00
parent f91cd9d255
commit 72d110bb6e
3 changed files with 10 additions and 7 deletions

View File

@ -4,7 +4,7 @@ LyX file-format changes
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.

View File

@ -1225,14 +1225,16 @@ def revert_math_output(document):
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
##

View File

@ -378,7 +378,8 @@ public:
enum MathOutput {
MathML,
HTML,
Images
Images,
LaTeX
};
/// what to use for math output. present choices are above
MathOutput html_math_output;