TeX-my-math 0.201.1.0 → 0.201.1.1
raw patch · 5 files changed
+9/−13 lines, 5 filesdep ~dumb-casPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: dumb-cas
API changes (from Hackage documentation)
- Math.LaTeX.Prelude: (%$>) :: (SymbolClass σ, SCConstraint σ c) => c -> c' -> CAS' γ s² s¹ SymbolD σ c -> CAS' γ s² s¹ SymbolD σ c'
+ Math.LaTeX.Prelude: (%$>) :: (SymbolClass σ, SCConstraint σ c) => (c -> c') -> CAS' γ s² s¹ SymbolD σ c -> CAS' γ s² s¹ SymbolD σ c'
- Math.LaTeX.Prelude: (&) :: () => a -> a -> b -> b
+ Math.LaTeX.Prelude: (&) :: () => a -> (a -> b) -> b
- Math.LaTeX.Prelude: continueExpr :: (Eq l, Monoid l) => AlgebraExpr' γ σ l -> AlgebraExpr' γ σ l -> AlgebraExpr' γ σ l -> AlgebraExpr' γ σ l -> AlgebraExpr' γ σ l -> AlgebraExpr' γ σ l -> AlgebraExpr' γ σ l
+ Math.LaTeX.Prelude: continueExpr :: (Eq l, Monoid l) => (AlgebraExpr' γ σ l -> AlgebraExpr' γ σ l -> AlgebraExpr' γ σ l) -> (AlgebraExpr' γ σ l -> AlgebraExpr' γ σ l) -> AlgebraExpr' γ σ l -> AlgebraExpr' γ σ l
Files
- CAS/Dumb/LaTeX/Symbols.hs +0/−4
- Math/LaTeX/Internal/MathExpr.hs +2/−2
- Math/LaTeX/Prelude.hs +1/−1
- TeX-my-math.cabal +2/−2
- test/PdfSnippets/MkSnippets.hs +4/−4
CAS/Dumb/LaTeX/Symbols.hs view
@@ -65,7 +65,6 @@ "abcdefghijklmnopqrstuvwxyz" <|> mapToLaTeXWith mathbf ['𝐚'..'𝐳'] ['a'..'z']-#if __GLASGOW_HASKELL__ > 802 <|> mapToLaTeXWith id ['𝐴'..'𝑍'] ['A'..'Z'] <|> mapToLaTeXWith mathbf ['𝐀'..'𝐙']@@ -76,18 +75,15 @@ ['A'..'Z'] <|> mapToLaTeXWith mathfrak "𝔄𝔅ℭ𝔇𝔈𝔉𝔊ℌℑ𝔍𝔎𝔏𝔐𝔑𝔒𝔓𝔔ℜ𝔖𝔗𝔘𝔙𝔚𝔛𝔜" "ABCDEFGHIJKLMNOPQRSTUVWXY"-#endif <|> fromAssocList (zip ['α', 'β', 'γ', 'δ', 'ε', 'ζ', 'η','θ', 'ϑ', 'ι', 'κ', 'λ' ] [alpha,beta,gamma,delta,varepsilon,zeta,eta,theta,vartheta,iota,kappa,lambda]) <|> fromAssocList (zip ['μ','ν','ξ','π','ρ','ϱ', 'σ', 'ς', 'τ','υ', 'ϕ','φ', 'χ','ψ', 'ω' ] [mu, nu, xi, pi, rho,varrho,sigma,varsigma,tau,upsilon,phi,varphi,chi,psi,omega])-#if __GLASGOW_HASKELL__ > 802 <|> fromAssocList (zip ['Γ', 'Δ', 'Θ', 'Λ', 'Ξ','Π','Σ', 'Υ', 'Φ', 'Ψ', 'Ω' ] [gammau,deltau,thetau,lambdau,xiu,piu,sigmau,upsilonu,phiu,psiu,omegau])-#endif <|> fromAssocList (zip ['+', '-', '*', '±', '∓' ] ["+", "-", raw"{\\cdot}", raw"{\\pm}", raw"{\\mp}"])
Math/LaTeX/Internal/MathExpr.hs view
@@ -162,7 +162,7 @@ (Fixity 4 InfixL) True [ ("⩵", [e|""LaTeX.=:""|])-#if __GLASGOW_HASKELL__ > 802+#if __GLASGOW_HASKELL__ > 801 , ("⸪=", [e|raw"{:=}"|]) , ("=⸪", [e|raw"{=:}"|]) #endif@@ -291,7 +291,7 @@ True [ ("␣", [e|raw"\\ "|]) , ("...", [e|raw"{\\ldots}"|])-#if __GLASGOW_HASKELL__ > 802+#if __GLASGOW_HASKELL__ > 801 , ("،", [e|raw","|]) , ("،..،", [e|raw",\\ldots,"|]) #endif
Math/LaTeX/Prelude.hs view
@@ -19,7 +19,7 @@ , (%$>), prime, LaTeX.bar, LaTeX.hat, LaTeX.vec, LaTeX.underline, LaTeX.tilde -- * Operators , (°), (⁀), (...)-#if __GLASGOW_HASKELL__ > 802+#if __GLASGOW_HASKELL__ > 801 , (،..،), (،), (⸪=), (=⸪) #endif , (␣), (+..+), (*..*), (×), (⊗), (∘), factorial
TeX-my-math.cabal view
@@ -1,5 +1,5 @@ Name: TeX-my-math-Version: 0.201.1.0+Version: 0.201.1.1 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>.@@ -44,7 +44,7 @@ Build-Depends: base>=4.8 && <4.11 , HaTeX>3.4 , vector-space- , dumb-cas >= 0.1 && < 0.2+ , dumb-cas >= 0.1.1.1 && < 0.2 , decimal-literals , text , void
test/PdfSnippets/MkSnippets.hs view
@@ -48,7 +48,7 @@ tests = testGroup "Tests" [ testGroup "Simple expressions" [ [mkLaTeXSnip| 𝑎 + 𝑏 * 𝑐 |] "a+b{\\cdot}c"-#if __GLASGOW_HASKELL__ > 802+#if __GLASGOW_HASKELL__ > 801 , [mkLaTeXSnip| 𝐴 * 𝐵 + 𝐶 |] "A{\\cdot}B+C" #endif , [mkLaTeXSnip| (𝑎 + 𝑏) * 𝑐 |] "\\left(a+b\\right){\\cdot}c"@@ -87,13 +87,13 @@ [ [mkLaTeXSnip| 𝑎◞𝑏 |] "a_{b}" , [mkLaTeXSnip| 𝑎◞◝(𝑏,𝑐) |] "a_{b}^{c}" , [mkLaTeXSnip| ψ◞"Foo" |] "\\psi{}_{\\mathrm{Foo}}"-#if __GLASGOW_HASKELL__ > 802+#if __GLASGOW_HASKELL__ > 801 , [mkLaTeXSnip| ψ◞𝐹⁀𝑜⁀𝑜 |] "\\psi{}_{Foo}" #endif ] , testGroup "Function application" [ [mkLaTeXSnip| 𝑓°𝑥 |] "f\\left(x\\right)"-#if __GLASGOW_HASKELL__ > 802+#if __GLASGOW_HASKELL__ > 801 , [mkLaTeXSnip| 𝑓°(𝑥،𝑦) |] "f\\left(x,y\\right)" #endif ]@@ -113,7 +113,7 @@ , [mkLaTeXSnip| 𝑎 ⪡ ρ |] "a<\\rho{}" , [mkLaTeXSnip| 𝑥 ⩵ 𝑦 ⩵ 𝑧 |] "x=y=z" , [mkLaTeXSnip| 𝑠 ⊂ 𝑡 ⊆ 𝑢 |] "s\\subset{}t\\subseteq{}u"-#if __GLASGOW_HASKELL__ > 802+#if __GLASGOW_HASKELL__ > 801 , [mkLaTeXSnip| 𝑝 ∈ ℚ ⊂ ℝ |] "p\\in{}\\mathbb{Q}\\subset{}\\mathbb{R}" #endif ]