<property name="visible">True</property>
<property name="label" translatable="yes">Paste Unicode as TeX</property>
<property name="use_underline">True</property>
- <property name="active">True</property>
+ <property name="active">False</property>
</widget>
</child>
<child>
~callback:(fun enabled ->
Helm_registry.set_bool "matita.paste_unicode_as_tex" enabled);
if not (Helm_registry.has "matita.paste_unicode_as_tex") then
- Helm_registry.set_bool "matita.paste_unicode_as_tex" true;
+ Helm_registry.set_bool "matita.paste_unicode_as_tex" false;
main#unicodeAsTexMenuItem#set_active
(Helm_registry.get_bool "matita.paste_unicode_as_tex");
(* log *)
(Cic.CurrentProof ("xxx",menv,proof_term,ty,[],[]))
in
ApplyTransformation.txt_of_cic_object
- ~map_unicode_to_tex:false
+ ~map_unicode_to_tex:(Helm_registry.get_bool
+ "matita.paste_unicode_as_tex")
~skip_thm_and_qed:true
~skip_initial_lambdas:how_many_lambdas
80 GrafiteAst.Declarative "" obj
Pcre.qreplace ~templ:"?" ~pat:"orrible_hack_[0-9]+"
(strip_comments
(ApplyTransformation.txt_of_cic_object
- ~map_unicode_to_tex:false
+ ~map_unicode_to_tex:(Helm_registry.get_bool
+ "matita.paste_unicode_as_tex")
~skip_thm_and_qed:true
~skip_initial_lambdas:how_many_lambdas
80 (GrafiteAst.Procedural None) "" obj))
| TA.Inline (_,style,suri,prefix) ->
let str =
ApplyTransformation.txt_of_inline_macro
- ~map_unicode_to_tex:false style suri prefix
+ ~map_unicode_to_tex:(Helm_registry.get_bool
+ "matita.paste_unicode_as_tex")
+ style suri prefix
in
[], str, String.length parsed_text