texmath 0.6.5.1 → 0.6.5.2
raw patch · 5 files changed
+62/−2 lines, 5 files
Files
- Text/TeXMath/Parser.hs +2/−1
- tests/notin.omml +36/−0
- tests/notin.tex +3/−0
- tests/notin.xhtml +19/−0
- texmath.cabal +2/−1
Text/TeXMath/Parser.hs view
@@ -433,7 +433,7 @@ texSymbol :: TP Exp texSymbol = try $ do- negated <- (symbol "\\not" >> return True) <|> return False+ negated <- (try (symbol "\\not") >> return True) <|> return False sym <- operator <|> command case M.lookup sym symbols of Just s -> if negated then neg s else return s@@ -446,6 +446,7 @@ "\x2283" -> return "\x2285" "\x2286" -> return "\x2288" "\x2287" -> return "\x2289"+ "\x2208" -> return "\x2209" _ -> pzero neg _ = pzero
+ tests/notin.omml view
@@ -0,0 +1,36 @@+<?xml version='1.0' ?>+<m:oMathPara>+ <m:oMathParaPr>+ <m:jc m:val="center" />+ </m:oMathParaPr>+ <m:oMath>+ <m:r>+ <m:rPr />+ <m:t>x</m:t>+ </m:r>+ <m:r>+ <m:rPr />+ <m:t>∈</m:t>+ </m:r>+ <m:r>+ <m:rPr />+ <m:t>y</m:t>+ </m:r>+ <m:r>+ <m:rPr />+ <m:t>∧</m:t>+ </m:r>+ <m:r>+ <m:rPr />+ <m:t>x</m:t>+ </m:r>+ <m:r>+ <m:rPr />+ <m:t>∉</m:t>+ </m:r>+ <m:r>+ <m:rPr />+ <m:t>y</m:t>+ </m:r>+ </m:oMath>+</m:oMathPara>
+ tests/notin.tex view
@@ -0,0 +1,3 @@+x \in y+\wedge+x \not\in y
+ tests/notin.xhtml view
@@ -0,0 +1,19 @@+<?xml version='1.0' ?>+<html xmlns="http://www.w3.org/1999/xhtml">+ <head>+ <meta content="application/xhtml+xml; charset=UTF-8" http-equiv="Content-Type" />+ </head>+ <body>+ <math display="block" xmlns="http://www.w3.org/1998/Math/MathML">+ <mrow>+ <mi>x</mi>+ <mo>∈</mo>+ <mi>y</mi>+ <mo>∧</mo>+ <mi>x</mi>+ <mo>∉</mo>+ <mi>y</mi>+ </mrow>+ </math>+ </body>+</html>
texmath.cabal view
@@ -1,5 +1,5 @@ Name: texmath-Version: 0.6.5.1+Version: 0.6.5.2 Cabal-Version: >= 1.6 Build-type: Custom Synopsis: Conversion of LaTeX math formulas to MathML or OMML.@@ -63,6 +63,7 @@ tests/macros.tex, tests/macros.xhtml, tests/macros.omml, tests/subsup.tex, tests/subsup.xhtml, tests/subsup.omml, tests/stackrel.tex, tests/stackrel.xhtml, tests/stackrel.omml,+ tests/notin.tex, tests/notin.xhtml, tests/notin.omml, tests/labels.tex, tests/labels.xhtml, tests/labels.omml Source-repository head