From: Enrico Tassi Date: Tue, 16 Dec 2008 09:00:31 +0000 (+0000) Subject: auto expansion of \tex macros added as a switch in the edit menu X-Git-Tag: make_still_working~4387 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=e325b771a3283acdb371cdc6f1f1929c0a0db3a1;p=helm.git auto expansion of \tex macros added as a switch in the edit menu --- diff --git a/helm/software/matita/matita.glade b/helm/software/matita/matita.glade index 4739e14f8..11a7321d6 100644 --- a/helm/software/matita/matita.glade +++ b/helm/software/matita/matita.glade @@ -1022,6 +1022,15 @@ True + + + True + Automatically expands TeX macros to their corresponding UTF-8 symbol + Auto-expand TeX Macros + True + True + + True @@ -2398,6 +2407,59 @@ 3 2 5 + + + True + 0 + Find: + + + + + + + + + True + 0 + Replace with: + + + 1 + 2 + + + + + + + True + True + True + True + True + * + + + 1 + 2 + + + + + + True + True + * + + + 1 + 2 + 1 + 2 + + + True @@ -2496,59 +2558,6 @@ 5 - - - True - True - * - - - 1 - 2 - 1 - 2 - - - - - - True - True - True - True - True - * - - - 1 - 2 - - - - - - True - 0 - Replace with: - - - 1 - 2 - - - - - - - True - 0 - Find: - - - - - - diff --git a/helm/software/matita/matitaGui.ml b/helm/software/matita/matitaGui.ml index ed5582a16..7965b20e4 100644 --- a/helm/software/matita/matitaGui.ml +++ b/helm/software/matita/matitaGui.ml @@ -650,7 +650,7 @@ class gui () = connect_menu_item main#ligatureButton self#nextSimilarSymbol; ignore(source_buffer#connect#after#insert_text ~callback:(fun iter str -> - if false && str = " " then + if main#menuitemAutoAltL#active && str = " " then ignore(self#expand_virtual_if_any iter " "))); ignore (findRepl#findEntry#connect#activate find_forward); (* interface lockers *)