TeX-my-math 0.202.1.0 → 0.202.2.0
raw patch · 4 files changed
+11/−5 lines, 4 files
Files
- Math/LaTeX/Internal/MathExpr.hs +6/−2
- Math/LaTeX/Prelude.hs +2/−1
- TeX-my-math.cabal +2/−2
- test/PdfSnippets/MkSnippets.hs +1/−0
Math/LaTeX/Internal/MathExpr.hs view
@@ -436,6 +436,10 @@ type Scalar (LaTeXMath σ) = LaTeXMath σ (*^) = (*) -instance LaTeXSymbol σ => InnerSpace (LaTeXMath σ) where- l <.> r = encapsulation (raw"\\left\\langle{") (raw"}\\right\\rangle")+infix 7 <،>+(<،>) :: MathsInfix+l <،> r = encapsulation (raw"\\left\\langle{") (raw"}\\right\\rangle") $ opN 0 (raw",") l r++instance LaTeXSymbol σ => InnerSpace (LaTeXMath σ) where+ (<.>) = (<،>)
Math/LaTeX/Prelude.hs view
@@ -30,7 +30,8 @@ #if __GLASGOW_HASKELL__ > 801 , (،..،), (،), (⸪=), (=⸪) #endif- , (␣), (+..+), (*..*), (×), (∗), (⋆), (⊗), (∘), factorial+ , (␣), (+..+), (*..*), (×), (∗), (⋆), (<،>)+ , (⊗), (∘), factorial , (◝), (◝⁀), (◞), (◞◝), (|◞), (|◝), (|◞◝) , (⩵), (≡), (⩵!), (≠), (⪡), (⪢), (≤), (≥), (≪), (≫), (∝), (⟂), (∥), (₌₌) , (=→), (←=), (≈), (∼), (≃), (≅)
TeX-my-math.cabal view
@@ -1,5 +1,5 @@ Name: TeX-my-math-Version: 0.202.1.0+Version: 0.202.2.0 Category: math Synopsis: Render general Haskell math to LaTeX. Or: math typesetting with high signal-to-noise–ratio. Description: For tl;dr: look at <https://github.com/leftaroundabout/Symbolic-math-HaTeX/blob/master/EXAMPLES.md>.@@ -42,7 +42,7 @@ Library Build-Depends: base>=4.8 && <4.14- , HaTeX>3.22.3.0+ , HaTeX>=3.22.3.0 , vector-space , dumb-cas >= 0.2.1 && < 0.3 , decimal-literals
test/PdfSnippets/MkSnippets.hs view
@@ -142,6 +142,7 @@ [ [mkLaTeXSnip| 𝑎 + 𝑏 |] "a+b" , [mkLaTeXSnip| 𝑎 - 𝑏 |] "a-b" , [mkLaTeXSnip| 𝑎 * 𝑏 |] "a{\\cdot}b"+ , [mkLaTeXSnip| 𝑎 <،> 𝑏 |] "\\left\\langle{a,b}\\right\\rangle" , [mkLaTeXSnip| 𝑎 × 𝑏 |] "a\\times{}b" , [mkLaTeXSnip| 𝑎 ± 𝑏 |] "a\\pm{}b" , [mkLaTeXSnip| 𝑎 ∓ 𝑏 |] "a\\mp{}b"