SVG in Equations
Support the new "svg" environment from itex2MML 1.3.
This commit is contained in:
parent
36f55fc9aa
commit
a92b593949
|
@ -35,7 +35,6 @@
|
|||
|
||||
% Because of conflicts, \space and \mathop are converted to
|
||||
% \itexspace and \operatorname during preprocessing.
|
||||
% \over is simply unsupported.
|
||||
|
||||
% itex: \space{ht}{dp}{wd}
|
||||
%
|
||||
|
|
|
@ -3,7 +3,8 @@ class String
|
|||
def fix_latex
|
||||
if #{html_math_engine} == 'itex2mml'
|
||||
s = self.gsub("\\mathop{", "\\operatorname{")
|
||||
s.gsub("\\space{", "\\itexspace{")
|
||||
s.gsub!(/\\begin{svg}.*?\\end{svg}/m, " ")
|
||||
s.gsub("\\space{", "\\itexspace{")
|
||||
else
|
||||
self
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue