slight correction of the template, and addition of SML template instance in DOF-technical_report. Does not work for test-case in 05_Implementation (Commented out)
Isabelle_DOF/Isabelle_DOF/pipeline/head There was a failure building this commit
Details
Isabelle_DOF/Isabelle_DOF/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
ef93285ec7
commit
1470776428
|
@ -41,20 +41,20 @@ text\<open>
|
|||
IDE support.
|
||||
\<close>
|
||||
|
||||
(* should be text* *)
|
||||
text
|
||||
\<open>
|
||||
|
||||
\begin{sml}
|
||||
structure Data = Generic_Data
|
||||
(* should work as text*, but doesn't. *)
|
||||
(*
|
||||
text*[xxx::SML]
|
||||
\<open>structure Data = Generic_Data
|
||||
( type T = docobj_tab * docclass_tab * ...
|
||||
val empty = (initial_docobj_tab, initial_docclass_tab, ...)
|
||||
val extend = I
|
||||
fun merge((d1,c1,...),(d2,c2,...)) = (merge_docobj_tab (d1,d2,...),
|
||||
merge_docclass_tab(c1,c2,...))
|
||||
);
|
||||
\end{sml}
|
||||
\<close>
|
||||
*)
|
||||
|
||||
|
||||
|
||||
section\<open>\isadof: A User-Defined Plugin in Isabelle/Isar\<close>
|
||||
text\<open>
|
||||
|
|
|
@ -652,7 +652,7 @@ fun print_docclass_template cid ctxt =
|
|||
|filter_overrides ((ln,s)::S) = (ln,s):: filter_overrides(filter(fn(_,s')=> s<>s')S)
|
||||
val hierarchy = map (fn(ln,s)=>ln^"."^s)(filter_overrides(flatten_hrchy brute_hierarchy))
|
||||
val args = String.concatWith "=%\n , " (" label=,type":: hierarchy);
|
||||
val template = "\\newisadof{"^cid_long^"}%\n["^args^"][1]\n{%\n#1%\n}\n\n";
|
||||
val template = "\\newisadof{"^cid_long^"}%\n["^args^"=%\n][1]\n{%\n#1%\n}\n\n";
|
||||
in writeln template end;
|
||||
|
||||
|
||||
|
|
|
@ -33,3 +33,22 @@
|
|||
% \usepackage{xcolor}
|
||||
% \usepackage{lstisadof-manual}
|
||||
|
||||
\newisadof{text.technical_report.SML}%
|
||||
[ label=,type=%
|
||||
, Isa_COL.text_element.level=%
|
||||
, Isa_COL.text_element.referentiable=%
|
||||
, Isa_COL.text_element.variants=%
|
||||
, scholarly_paper.text_section.main_author=%
|
||||
, scholarly_paper.text_section.fixme_list=%
|
||||
, scholarly_paper.technical.definition_list=%
|
||||
, scholarly_paper.technical.status=%
|
||||
, scholarly_paper.technical.formal_results=%
|
||||
, technical_report.code.checked=%
|
||||
, technical_report.code.caption=%
|
||||
]
|
||||
[1]
|
||||
{%
|
||||
\begin{sml}%
|
||||
#1
|
||||
\end{sml}%
|
||||
}
|
||||
|
|
|
@ -59,6 +59,7 @@ doc_class "ISAR" = code +
|
|||
doc_class "LATEX" = code +
|
||||
checked :: bool <= "False"
|
||||
|
||||
print_doc_class_template "SML" (* just a sample *)
|
||||
|
||||
|
||||
doc_class report =
|
||||
|
|
Loading…
Reference in New Issue