mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
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:
parent
f91cd9d255
commit
72d110bb6e
@ -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.
|
||||
|
@ -1225,13 +1225,15 @@ 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])
|
||||
if rgx:
|
||||
newval = "false"
|
||||
val = m.group(1)
|
||||
if val != "MathML":
|
||||
newval = "true"
|
||||
if rgx:
|
||||
val = m.group(1)
|
||||
if val == "1" or val == "2":
|
||||
newval = "false"
|
||||
else:
|
||||
document.warning("Unable to match " + document.header[i])
|
||||
document.header[i] = "\\html_use_mathml " + newval
|
||||
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user