Skip to content

odd spacing with LaTeXStrings with \textrm #439

@lmiq

Description

@lmiq

example:

julia> using GR, LaTeXStrings

julia> x = rand(10)
       y = rand(10)
       plot(x[1:10], y, xlabel=L"\textrm{This is } \alpha")

image

adding tildes ~ solves the lack of spacing between words, but there is still an odd spacing between the captial T and the text that follows:

julia> x = rand(10)
       y = rand(10)
       plot(x[1:10], y, xlabel=L"\textrm{This~is~}\alpha")

image

(jl_6ruBxL) pkg> st
      Status `/tmp/jl_6ruBxL/Project.toml`
  [28b8d3ca] GR v0.62.1

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