Skip to content

Inline LaTeX fails around Escaped Backslash #78

@LuckDuracell

Description

@LuckDuracell
LaTeX(text)
 .font(.caption)
 .dynamicTypeSize(.medium)
 .imageRenderingMode(.original)
 .errorMode(.rendered)
 .lineSpacing(1.7)
 .frame(width: 85*6.1, alignment: .topLeading)
 .fixedSize(horizontal: true, vertical: true)

This fails if text is "Normal Text: $\{0\}$ demo."

This does work with text like "Normal Text: $\{0 \}$ demo.", but oddly then the space is included in the rendered output, which breaks LaTeX convention.

I included this report here since it is through LaTeXSwiftUI but it actually seems to be tied to MathJaxSwift since I had to revert both packages in order to get rid of the issue.

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