Skip to content

Tick labels have weird minus signs #43

@jdujava

Description

@jdujava

Describe the bug

Trying out the first Usage Example in the blog post results in tick labels with weird minus signs. As far as I know, I have properly installed all necessary fonts (whole Latin Modern family).

Using MaTeX to generate all tick labels is a possible workaround, but isn't very convenient. Do you have any idea how to nudge Mathematica to properly use Latin Modern font in the tick labels?

To Reproduce

Needs["MaTeX`"]
texStyle = {FontFamily -> "Latin Modern Roman", FontSize -> 12};
contour = 
 ContourPlot[x^2 + y^4 == 1, {x, -1.2, 1.2}, {y, -1.2, 1.2}, 
  BaseStyle -> texStyle, 
  Epilog -> {Arrow[{{0.1, 0.3}, {0.5, 0.80}}], 
    Inset[MaTeX["x^2+y^4=1", Magnification -> 2], {0.1, 0.3}, 
     Scaled[{0.5, 1}]]}]

results in (same weird minus signs persist when exported to PDF):
image

Additional information

  • MaTeX version: 1.7.10
  • Mathematica version: 14.1
  • OS version: Arch Linux

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