summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/stex/sref/sref.sty.ltxml
blob: 2157be90a8a2c0f69fcc525ffdd63030b51a7cc0 (plain)
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;