Skip to content

Commit

Permalink
Handle compound unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Oct 20, 2024
1 parent bff9903 commit a1a3179
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/latexify_recipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ function _toexpr(O)
if issym(O)
sym = string(nameof(O))
sym = replace(sym, NAMESPACE_SEPARATOR => ".")
sym = Latexify.unicode2latex(sym)
sym = replace(sym, "_"=>"\\_")
if length(sym) > 1
return LaTeXString(string("\\texttt", "{", sym, "}"))
else
Expand Down

0 comments on commit a1a3179

Please sign in to comment.