Overview of LaTeXSwiftUI capabilities
mainLaTeXSwiftUI is a package that renders TeX and LaTeX equations using MathJaxSwift (powered by MathJax).
Key Capabilities:
- Renders inline and block math-mode equations.
- Supports
\text{}within equations. - Supports numbered block equations.
- Supports various environments like
\begin{align},\begin{cases},\begin{array}, etc. - Provides VoiceOver accessibility via the Speech Rule Engine (SRE).
- Supports CJK and non-Latin script scaling via
.script(). - Automatically scales with system Dynamic Type settings.
- Allows rendering to
UIImage/NSImagewithout a SwiftUI view.
Limitations:
- Does not render full LaTeX documents.
- Does not render text-mode macros (only math-mode macros).
Requirements:
- Swift 6.0
- iOS 15+, macOS 12+, or visionOS 1+