Skip to content

How do I scale the rendered equation to match the surrounding text? #23

@OskarPersson

Description

@OskarPersson

Changing the font size doesn't affect the rendered equation:

import SwiftUI
import LaTeXSwiftUI

@main
struct iOSApp: App {
    var body: some Scene {
        WindowGroup {
            LaTeX("Solve the following: $(9-2)^2\\cdot9^2$")
            LaTeX("Solve the following: $(9-2)^2\\cdot9^2$").font(.system(size: 8))
        }
    }
}

Simulator Screenshot - iPhone 14 Pro - 2023-08-29 at 20 50 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions