diff options
author | Karl Berry <karl@freefriends.org> | 2016-04-07 20:49:10 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-04-07 20:49:10 +0000 |
commit | ddfe3a4eaf95167482e923d4da3de2917a7dbfbb (patch) | |
tree | 0acc1bb60b37392451f5e79e00c33c487c19abcf /Master/texmf-dist/tex/latex/stex/problem/problem.sty.ltxml | |
parent | a04ae5a947a6b06bc717719f6ad63e6de5cb5af6 (diff) |
stex (7apr16)
git-svn-id: svn://tug.org/texlive/trunk@40320 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/stex/problem/problem.sty.ltxml')
-rw-r--r-- | Master/texmf-dist/tex/latex/stex/problem/problem.sty.ltxml | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/Master/texmf-dist/tex/latex/stex/problem/problem.sty.ltxml b/Master/texmf-dist/tex/latex/stex/problem/problem.sty.ltxml deleted file mode 100644 index 85fb12e7bbe..00000000000 --- a/Master/texmf-dist/tex/latex/stex/problem/problem.sty.ltxml +++ /dev/null @@ -1,75 +0,0 @@ -RawTeX(' -\newif\ifexnotes\exnotesfalse -\newif\ifhints\hintsfalse -\newif\ifsolutions\solutionsfalse -\newif\ifpts\ptsfalse -\newif\ifmin\minfalse -\newif\ifboxed\boxedfalse -\newif\ifextract\extractfalse -'); -# -*- CPERL -*- -package LaTeXML::Package::Pool; -use strict; -use LaTeXML::Package; -RequirePackage('sref'); -RegisterNamespace('prob'=>"http://omdoc.org/ontology/problems#"); -RegisterDocumentNamespace('prob'=>"http://omdoc.org/ontology/problems#"); -DefEnvironment('{problem} OptionalKeyVals:problem', - "<omdoc:exercise ?&KeyVal(#1,'id')(xml:id='&KeyVal(#1,'id')')()>" - . "?&KeyVal(#1,'title')(<dc:title>&KeyVal(#1,'title')</dc:title>)()" - . "?&KeyVal(#1,'min')(" - . "<omdoc:meta property='prob:solvedinminutes' prob:dummy='for the namespace'>" - . "&KeyVal(#1,'min')" - . "</omdoc:meta>)()" - . "?&KeyVal(#1,'pts')(" - . "<omdoc:meta property='prob:points' prob:dummy='for the namespace'>" - . "&KeyVal(#1,'pts')" - . "</omdoc:meta>)()" - . "<omdoc:CMP><omdoc:p>#body" - ."</omdoc:exercise>", - afterDigest => sub { - my ($stomach,$kv)=@_; - my $kvi = LookupValue('inclprob'); - my @keys = qw(id title min pts); - my @vals = $kvi && map($kvi->getValue($_), @keys); - foreach my $i(0..$#vals) { - $kv->setValue($keys[$i],$vals[$i]) if $vals[$i]; - } - return;});#$ -DefKeyVal('soln','id','Semiverbatim'); -DefKeyVal('soln','height','Semiverbatim'); -DefKeyVal('soln','for','Semiverbatim'); -DefEnvironment('{solution} OptionalKeyVals:soln', - "<omdoc:solution ?&KeyVals(#1,'for')(for='&KeyVal(#1,'for')')()>" - . "#body" - . "</omdoc:solution>"); -DefEnvironment('{exnote}',"<omdoc:hint><omdoc:CMP><omdoc:p>#body</omdoc:hint>"); -DefEnvironment('{hint}',"<omdoc:hint><omdoc:CMP><omdoc:p>#body</omdoc:hint>"); -DefConstructor('\pts{}',""); -DefConstructor('\min{}',""); -DefKeyVal('prob','pts','Semiverbatim'); -DefKeyVal('prob','min','Semiverbatim'); -DefKeyVal('prob','title','Semiverbatim'); -DefConstructor('\includeproblem OptionalKeyVals:prob Semiverbatim', - "<omdoc:ref type='cite' xref='#2'>" - . "?&KeyVal(#1,'title')(<dc:title>&KeyVal(#1,'title')</dc:title>)()" - . "?&KeyVal(#1,'min')(" - . "<omdoc:meta property='prob:solvedinminutes' prob:dummy='for the namespace'>" - . "&KeyVal(#1,'min')" - . "</omdoc:meta>)()" - . "?&KeyVal(#1,'pts')(" - . "<omdoc:meta property='prob:points' prob:dummy='for the namespace'>" - . "&KeyVal(#1,'pts')" - . "</omdoc:meta>)()" - ."</omdoc:ref>", - afterDigest => sub{ - my ($stomach,$kv) = @_; - AssignValue('inclprob',$kv) if $kv; - }); -Tag('omdoc:exercise',afterOpen=>\&numberIt); -Tag('omdoc:solution',afterOpen=>\&numberIt); -Tag('omdoc:hint',afterOpen=>\&numberIt); -Tag('omdoc:exercise',afterOpen=>\&numberIt,afterClose=>\&locateIt); -Tag('omdoc:solution',afterOpen=>\&numberIt,afterClose=>\&locateIt); -Tag('omdoc:hint',afterOpen=>\&numberIt,afterClose=>\&locateIt); -1; |