SwiftMath
SwiftMath copied to clipboard
SwiftMath provides a full Swift implementation of iosMath for displaying beautifully rendered math equations in iOS and MacOS applications. It typesets formulae written using LaTeX math mode in a UILa...
In LaTeX, one can remove unwanted spacing after a comma by writing "{,}" and is an important use in [cultures that use commas as decimal separators](https://en.wikipedia.org/wiki/Decimal_separator#Conventions_worldwide). This does not work...
Hello, Upon experimenting with \\color, I encountered the same issue as @OskarPersson in issue #15. The solution, \\textcolor{...}{...} (#16), has consistently caused my test SwiftUI project to crash. I have...
Is it possible to vertically align the text so that it always writes from the top left of a MTMathUILabel? I know you can use "MTEdgeInsets(top: 0, left: 0, bottom:...
I cloned [SwiftMathDemo](https://github.com/mgriebling/SwiftMathDemo) and try to render LaTex, code as below (this first of demoLabels is mine). ```swift struct ContentView: View { /// Set to *true* to preview the fonts...
I'm using the provided code to wrap SwiftMath in a SwiftUI View. But the default size of that view seems to be infinity in both directions, regardless of the actual...
`struct MathView: UIViewRepresentable { var equation: String var font: MathFont = .firaFont var textAlignment: MTTextAlignment = .left var fontSize: CGFloat = 20 var labelMode: MTMathUILabelMode = .display var insets: MTEdgeInsets...
When using MathView, the string "phi" is displayed literally instead of being converted into the Greek letter φ. eg code MathView(equation: "( phi(x, y, z) )") Actual Result ( phi(x,...
``` SwiftMath/Sources/SwiftMath/MathRender/MTMathListBuilder.swift:620:13 Cannot find 'mathColor' in scope ``` Looks like merging the fixes produced some new issue. 😂