forked from Isabelle_DOF/Isabelle_DOF
Kleine Korrekturen an scholerly …
This commit is contained in:
parent
4d3371705c
commit
49e3ec81f7
|
@ -28,12 +28,17 @@ section{*Inner Syntax Antiquotations: Syntax *}
|
|||
typedecl "typ"
|
||||
typedecl "term"
|
||||
typedecl "thm"
|
||||
typedecl "file"
|
||||
typedecl "http"
|
||||
typedecl "thy"
|
||||
|
||||
-- \<open> and others in the future : file, http, thy, ... \<close>
|
||||
|
||||
consts mk_typ :: "string \<Rightarrow> typ" ("@{typ _}")
|
||||
consts mk_term :: "string \<Rightarrow> term" ("@{term _}")
|
||||
consts mk_thm :: "string \<Rightarrow> thm" ("@{thm _}")
|
||||
consts mk_file :: "string \<Rightarrow> file" ("@{file _}")
|
||||
consts mk_thy :: "string \<Rightarrow> thy" ("@{thy _}")
|
||||
consts mk_docitem :: "string \<Rightarrow> 'a" ("@{docitem _}")
|
||||
|
||||
|
||||
|
|
|
@ -4,8 +4,6 @@ theory Article
|
|||
begin
|
||||
(* >> *)
|
||||
|
||||
ML{* val keywords = Thy_Header.get_keywords' @{context};
|
||||
*}
|
||||
|
||||
open_monitor*[onto::article]
|
||||
|
||||
|
|
|
@ -18,37 +18,34 @@ doc_class author =
|
|||
affiliation :: "string"
|
||||
|
||||
doc_class abstract =
|
||||
keywordlist :: "string list" <= "[]"
|
||||
|
||||
keywordlist :: "string list" <= "[]"
|
||||
principal_theorems :: "thm list"
|
||||
|
||||
doc_class text_section =
|
||||
main_author :: "author option" <= None
|
||||
|
||||
(*
|
||||
doc_class text_section =
|
||||
main_author :: "string option" <= None
|
||||
*)
|
||||
|
||||
doc_class introduction = text_section +
|
||||
comment :: string
|
||||
|
||||
doc_class technical = text_section +
|
||||
definition_list :: "string list" <= "[]"
|
||||
formula :: "thm list"
|
||||
formal_results :: "thm list"
|
||||
|
||||
text{* A very rough formatting style could be modeled as follows:*}
|
||||
|
||||
datatype mesure = points "int" | inch "int" | textwidth "int" (* given by the inverse of the integer *)
|
||||
datatype mesure = points "int"
|
||||
| inch "int" (* divised by 100 *)
|
||||
| cm "int" (* divised by 100 *)
|
||||
| textwidth "int" (* given in percent *)
|
||||
|
||||
datatype placement = left | center | right
|
||||
datatype alignment = left | center | right
|
||||
|
||||
doc_class figure = text_section +
|
||||
width :: "mesure option" <= "Some(textwidth 1)"
|
||||
height :: "mesure option" <= "Some(textwidth 1)"
|
||||
scale :: "int option" (* in per cent *)
|
||||
"file" :: string
|
||||
plmt :: placement
|
||||
caption :: string
|
||||
width :: "mesure option" <= "Some(textwidth 100)"
|
||||
height :: "mesure option" <= "Some(textwidth 100)"
|
||||
scale :: "int option" (* given in per cent *)
|
||||
"file" :: "file"
|
||||
plmt :: alignment <= center
|
||||
|
||||
(* something similar on tables ? Idea: rough abstraction of table attributes in LaTeX *)
|
||||
|
||||
|
|
Loading…
Reference in New Issue