Added basic support for chapter*.

This commit is contained in:
Achim D. Brucker 2018-10-30 01:29:15 +00:00
parent 55e8f84c77
commit a90e4e6a3f
2 changed files with 12 additions and 1 deletions

View File

@ -19,7 +19,7 @@ theory Isa_DOF (* Isabelle Document Ontology Framework *)
keywords "+=" ":="
and "title*" "subtitle*"
"section*" "subsection*" "subsubsection*"
"chapter*" "section*" "subsection*" "subsubsection*"
"text*"
"paragraph*" "subparagraph*"
"figure*"
@ -980,6 +980,11 @@ val _ =
(attributes -- Parse.opt_target -- Parse.document_source --| semi
>> enriched_document_command {markdown = false});
val _ =
Outer_Syntax.command ("chapter*", @{here}) "section heading"
(attributes -- Parse.opt_target -- Parse.document_source --| semi
>> enriched_document_command {markdown = false});
val _ =
Outer_Syntax.command ("section*", @{here}) "section heading"
(attributes -- Parse.opt_target -- Parse.document_source --| semi

View File

@ -134,6 +134,12 @@
\newkeycommand\isaDofDeclareReferenceTextSection[label=,type=]{}
\newkeycommand\isaDofDeclareReferenceFigure[label=,type=]{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% begin: chapter*
\NewEnviron{isamarkupchapter*}[1][]{\isaDof[env={chapter},#1]{\BODY}}
% end: chapter*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% begin: section*
\NewEnviron{isamarkupsection*}[1][]{\isaDof[env={section},#1]{\BODY}}