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>
doc_class author =
email :: "string"
orcid :: "string"
email :: "string" <= "''''"
http_site :: "string" <= "''''"
orcid :: "string" <= "''''"
affiliation :: "string"
doc_class abstract =

View File

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