SVG in Equations

Support the new "svg" environment from itex2MML 1.3.
This commit is contained in:
Jacques Distler 2007-10-22 22:24:25 -05:00
parent 36f55fc9aa
commit a92b593949
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,6 @@
% Because of conflicts, \space and \mathop are converted to % Because of conflicts, \space and \mathop are converted to
% \itexspace and \operatorname during preprocessing. % \itexspace and \operatorname during preprocessing.
% \over is simply unsupported.
% itex: \space{ht}{dp}{wd} % itex: \space{ht}{dp}{wd}
% %

View file

@ -3,7 +3,8 @@ class String
def fix_latex def fix_latex
if #{html_math_engine} == 'itex2mml' if #{html_math_engine} == 'itex2mml'
s = self.gsub("\\mathop{", "\\operatorname{") s = self.gsub("\\mathop{", "\\operatorname{")
s.gsub("\\space{", "\\itexspace{") s.gsub!(/\\begin{svg}.*?\\end{svg}/m, " ")
s.gsub("\\space{", "\\itexspace{")
else else
self self
end end