1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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}');
DefMacro('\inputassignment [] {}','\input{#2}');
DefEnvironment('{testheading}OptionalKeyVals:omdoc','');
DefConstructor('\testspace{}','');
DefConstructor('\testnewpage','');
DefConstructor('\testemptypage','');
1;
|