# HG changeset patch # User wenzelm # Date 1147821828 -7200 # Node ID 22b63524090590c95a5298864a92b2a7e5af97b2 # Parent 853f5a3cc06e5828a87db993400d1988638bddff const_syntax; diff -r 853f5a3cc06e -r 22b635240905 src/HOL/Library/LaTeXsugar.thy --- a/src/HOL/Library/LaTeXsugar.thy Wed May 17 01:23:46 2006 +0200 +++ b/src/HOL/Library/LaTeXsugar.thy Wed May 17 01:23:48 2006 +0200 @@ -10,9 +10,10 @@ begin (* LOGIC *) +const_syntax (latex output) + If ("(\<^raw:\textsf{>if\<^raw:}> (_)/ \<^raw:\textsf{>then\<^raw:}> (_)/ \<^raw:\textsf{>else\<^raw:}> (_))" 10) + syntax (latex output) - If :: "[bool, 'a, 'a] => 'a" - ("(\<^raw:\textsf{>if\<^raw:}> (_)/ \<^raw:\textsf{>then\<^raw:}> (_)/ \<^raw:\textsf{>else\<^raw:}> (_))" 10) "_Let" :: "[letbinds, 'a] => 'a" ("(\<^raw:\textsf{>let\<^raw:}> (_)/ \<^raw:\textsf{>in\<^raw:}> (_))" 10) @@ -51,16 +52,16 @@ (* LISTS *) (* Cons *) -syntax (latex) - Cons :: "'a \ 'a list \ 'a list" ("_\/_" [66,65] 65) +const_syntax (latex) + Cons ("_\/_" [66,65] 65) (* length *) -syntax (latex output) - length :: "'a list \ nat" ("|_|") +const_syntax (latex output) + length ("|_|") (* nth *) -syntax (latex output) - nth :: "'a list \ nat \ 'a" ("_\<^raw:\ensuremath{_{[\mathit{>_\<^raw:}]}}>" [1000,0] 1000) +const_syntax (latex output) + nth ("_\<^raw:\ensuremath{_{[\mathit{>_\<^raw:}]}}>" [1000,0] 1000) (* DUMMY *) consts DUMMY :: 'a ("\<^raw:\_>") diff -r 853f5a3cc06e -r 22b635240905 src/HOL/Library/OptionalSugar.thy --- a/src/HOL/Library/OptionalSugar.thy Wed May 17 01:23:46 2006 +0200 +++ b/src/HOL/Library/OptionalSugar.thy Wed May 17 01:23:48 2006 +0200 @@ -17,9 +17,9 @@ (* aligning equations *) -syntax (tab output) - "op =" :: "'a \ 'a \ 'a" ("(_) \<^raw:}\putisatab\isa{\ >=\<^raw:}\putisatab\isa{> (_)" [50,49] 50) - "==" :: "prop \ prop \ prop" ("(_) \<^raw:}\putisatab\isa{\ >\\<^raw:}\putisatab\isa{> (_)") +const_syntax (tab output) + "op =" ("(_) \<^raw:}\putisatab\isa{\ >=\<^raw:}\putisatab\isa{> (_)" [50,49] 50) + "==" ("(_) \<^raw:}\putisatab\isa{\ >\\<^raw:}\putisatab\isa{> (_)") (* Let *) translations