summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/stex/assignment/assignment.sty.ltxml
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/stex/assignment/assignment.sty.ltxml')
-rw-r--r--Master/texmf-dist/tex/latex/stex/assignment/assignment.sty.ltxml29
1 files changed, 29 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/stex/assignment/assignment.sty.ltxml b/Master/texmf-dist/tex/latex/stex/assignment/assignment.sty.ltxml
new file mode 100644
index 00000000000..16f106d105a
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/stex/assignment/assignment.sty.ltxml
@@ -0,0 +1,29 @@
+# -*- CPERL -*-
+package LaTeXML::Package::Pool;
+use strict;
+use LaTeXML::Package;
+RequirePackage('problem');
+RegisterNamespace('assig'=>"http://omdoc.org/ontology/assignments#");
+RegisterDocumentNamespace('assig'=>"http://omdoc.org/ontology/assignments#");
+DefEnvironment('{assignment} OptionalKeyVals:assig',
+ "<omdoc:omgroup ?&KeyVal(#1,'id')(xml:id='&KeyVal(#1,'id')')() "
+ . "assig:dummy='for the namespace'"
+ . "?#locator(stex:srcref='#locator')()>"
+ . "<omdoc:metadata ?#locator(stex:srcref='#locator')()>"
+ . "<dc:title ?#locator(stex:srcref='#locator')()>"
+ . "Assignment ?&KeyVal(#1,'num')(&KeyVal(#1,'num').)()"
+ . "?&KeyVal(#1,'title')((&KeyVal(#1,'title')))"
+ . "</dc:title>"
+ . "?&KeyVal(#1,'given')(<omdoc:meta property='assig:given'>&KeyVal(#1,'given')</omdoc:meta>)()"
+ . "?&KeyVal(#1,'due')(<omdoc:meta property='assig:due'>&KeyVal(#1,'due')</omdoc:meta>)()"
+ . "?&KeyVal(#1,'pts')(<omdoc:meta property='assig:pts'>&KeyVal(#1,'pts')</omdoc:meta>)()"
+ . "</omdoc:metadata>"
+ . "#body"
+ ."</omdoc:omgroup>\n");
+DefMacro('\includeassignment [] {}','\input{#2}');
+DefConstructor('\CourseTitle{}','');
+DefConstructor('\testheading{}','');
+DefConstructor('\testspace{}','');
+DefConstructor('\testnewpage','');
+DefConstructor('\testemptypage','');
+1;