From 6d4c63a0ff7d44e4e361fc4aeca8028a77d39568 Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Mon, 23 Jun 2008 15:06:12 +0000 Subject: [PATCH] add \\ in front of tex macros --- helm/software/components/syntax_extensions/utf8Macro.ml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/helm/software/components/syntax_extensions/utf8Macro.ml b/helm/software/components/syntax_extensions/utf8Macro.ml index 00e10f183..c95282d58 100644 --- a/helm/software/components/syntax_extensions/utf8Macro.ml +++ b/helm/software/components/syntax_extensions/utf8Macro.ml @@ -45,7 +45,10 @@ let tex_of_unicode s = if s = " " then [""] else try - let alt = Hashtbl.find_all Utf8MacroTable.utf82macro s in + let alt = + List.map (fun x -> "\\"^x) + (Hashtbl.find_all Utf8MacroTable.utf82macro s) + in List.sort (fun x y -> Pervasives.compare (String.length x) (String.length y)) alt -- 2.39.5