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
30
31
32
33
|
package LaTeXML::Package::Pool;
use strict;
use LaTeXML::Package;
DeclareOption('extrefs','');
RequirePackage('omd');
DefConstructor('\sref[]{}',
"Section <omdoc:ref type='cite' xref='#2'/>");
DefConstructor('\srefs[]{}',
"Section <omdoc:ref type='cite' xref='#2'/>");
DefConstructor('\srefl[]{}',
"Section <omdoc:ref type='cite' xref='#2'/>");
DefConstructor('\spageref[]{}',
"Section <omdoc:ref type='cite' xref='#2'/>");
DefConstructor('\makeextrefs{}','');
DefConstructor('\extref[]{}',
"Section <omdoc:ref type='cite' xref='#2'/>");
DefConstructor('\theextref','');
DefConstructor('\extrefstyle{}{}',"");
DefConstructor('\inputrefs{}{}','');
DefEnvironment('{sequation} OptionalKeyVals',
"<ltx:equation "
. "?&KeyVal(#1,'id')(xml:id='&KeyVal(#1,'id')' "
. "refnum='#refnum')(xml:id='#id')>"
. "<ltx:Math mode='display'>"
. "<ltx:XMath>#body</ltx:XMath>"
. "</ltx:Math>"
. "</ltx:equation>",
mode=>'display_math',
properties=> sub { RefStepCounter('equation') },
locked=>1);
DefMacro('\seqnarray OptionalKeyVals','\begin{eqnarray*}');
DefMacro('\endseqnarray','\end{eqnarray*}');
1;
|