src/HOL/Library/LaTeXsugar.thy
changeset 19674 22b635240905
parent 16110 c423bb89186d
child 21210 c17fd2df4e9e
     1.1 --- a/src/HOL/Library/LaTeXsugar.thy	Wed May 17 01:23:46 2006 +0200
     1.2 +++ b/src/HOL/Library/LaTeXsugar.thy	Wed May 17 01:23:48 2006 +0200
     1.3 @@ -10,9 +10,10 @@
     1.4  begin
     1.5  
     1.6  (* LOGIC *)
     1.7 +const_syntax (latex output)
     1.8 +  If  ("(\<^raw:\textsf{>if\<^raw:}> (_)/ \<^raw:\textsf{>then\<^raw:}> (_)/ \<^raw:\textsf{>else\<^raw:}> (_))" 10)
     1.9 +
    1.10  syntax (latex output)
    1.11 -  If            :: "[bool, 'a, 'a] => 'a"
    1.12 -  ("(\<^raw:\textsf{>if\<^raw:}> (_)/ \<^raw:\textsf{>then\<^raw:}> (_)/ \<^raw:\textsf{>else\<^raw:}> (_))" 10)
    1.13  
    1.14    "_Let"        :: "[letbinds, 'a] => 'a"
    1.15    ("(\<^raw:\textsf{>let\<^raw:}> (_)/ \<^raw:\textsf{>in\<^raw:}> (_))" 10)
    1.16 @@ -51,16 +52,16 @@
    1.17  (* LISTS *)
    1.18  
    1.19  (* Cons *)
    1.20 -syntax (latex)
    1.21 -  Cons :: "'a \<Rightarrow> 'a list \<Rightarrow> 'a list" ("_\<cdot>/_" [66,65] 65)
    1.22 +const_syntax (latex)
    1.23 +  Cons  ("_\<cdot>/_" [66,65] 65)
    1.24  
    1.25  (* length *)
    1.26 -syntax (latex output)
    1.27 -  length :: "'a list \<Rightarrow> nat" ("|_|")
    1.28 +const_syntax (latex output)
    1.29 +  length  ("|_|")
    1.30  
    1.31  (* nth *)
    1.32 -syntax (latex output)
    1.33 -  nth :: "'a list \<Rightarrow> nat \<Rightarrow> 'a" ("_\<^raw:\ensuremath{_{[\mathit{>_\<^raw:}]}}>" [1000,0] 1000)
    1.34 +const_syntax (latex output)
    1.35 +  nth  ("_\<^raw:\ensuremath{_{[\mathit{>_\<^raw:}]}}>" [1000,0] 1000)
    1.36  
    1.37  (* DUMMY *)
    1.38  consts DUMMY :: 'a ("\<^raw:\_>")