Added some elements in the TR onto:

- optional TOC's
- front-matter
This commit is contained in:
Burkhart Wolff 2018-11-27 12:53:02 +01:00
parent 8628ca81ab
commit 3955d5d8f9
2 changed files with 11 additions and 5 deletions

View File

@ -13,8 +13,9 @@ doc_class subtitle =
-- \<open>adding a contribution list and checking that it is cited as well in tech as in conclusion. ? \<close> -- \<open>adding a contribution list and checking that it is cited as well in tech as in conclusion. ? \<close>
doc_class author = doc_class author =
email :: "string" email :: "string" <= "''''"
orcid :: "string" http_site :: "string" <= "''''"
orcid :: "string" <= "''''"
affiliation :: "string" affiliation :: "string"
doc_class abstract = doc_class abstract =

View File

@ -4,8 +4,11 @@ theory technical_report
imports "scholarly_paper" imports "scholarly_paper"
begin begin
doc_class table_of_content = doc_class table_of_contents =
level :: int <= 3 depth :: int <= 3
doc_class front_matter =
style :: string
doc_class "chapter" = text_section + doc_class "chapter" = text_section +
style :: string style :: string
@ -16,11 +19,13 @@ doc_class report =
accepts "(title ~~ accepts "(title ~~
\<lbrakk>subtitle\<rbrakk> ~~ \<lbrakk>subtitle\<rbrakk> ~~
\<lbrace>author\<rbrace>\<^sup>+ ~~ \<lbrace>author\<rbrace>\<^sup>+ ~~
\<lbrakk>front_matter\<rbrakk> ~~
abstract ~~ abstract ~~
chapter ~~ \<lbrakk>table_of_contents\<rbrakk> ~~
introduction ~~ introduction ~~
\<lbrace>technical || example\<rbrace>\<^sup>+ ~~ \<lbrace>technical || example\<rbrace>\<^sup>+ ~~
conclusion ~~ conclusion ~~
\<lbrakk>table_of_contents\<rbrakk> ~~
bibliography)" bibliography)"
end end