From a1a317967e13f16a1d8f535afc5334bcbed6adb1 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Sun, 20 Oct 2024 04:20:51 -0400 Subject: [PATCH] Handle compound unicode --- src/latexify_recipes.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/latexify_recipes.jl b/src/latexify_recipes.jl index 7fa8eb8ee..4f5925dc3 100644 --- a/src/latexify_recipes.jl +++ b/src/latexify_recipes.jl @@ -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