summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/stex/omdoc.cls.ltxml
blob: e197af2a37d4ccb4f467f68ec8ff4bd5ae0cdd36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -*- CPERL -*-
package LaTeXML::Package::Pool;
use strict;
use LaTeXML::Package;
LoadClass('article');
RegisterNamespace('omdoc'=>"http://www.mathweb.org/omdoc"); # OMDoc namespace
RegisterNamespace(om=>"http://www.openmath.org/OpenMath");
RegisterNamespace('m'=>"http://www.w3.org/1998/Math/MathML");
RegisterNamespace('dc'=>"http://purl.org/dc/elements/1.1/");
RegisterNamespace('cc'=>"http://creativecommons.org/ns");
RelaxNGSchema('/Users/kohlhase/stex/rnc/omdoc+ltxml',
        '#default'=>"http://www.mathweb.org/omdoc",
        'om'=>"http://www.openmath.org/OpenMath",
        'm'=>"http://www.w3.org/1998/Math/MathML",
        'dc'=>"http://purl.org/dc/elements/1.1/",
        'cc'=>"http://creativecommons.org/ns",
        'ltx'=>"http://dlmf.nist.gov/LaTeXML");
RequirePackage('omdoc');
DefEnvironment('{document}','<omdoc:omdoc>#body</omdoc:omdoc>',
       beforeDigest=> sub { AssignValue(inPreamble=>0); },
       afterDigest=> sub { $_[0]->getGullet->flush; return; });
1;