summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/stex/sref/sref.sty.ltxml
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/stex/sref/sref.sty.ltxml')
-rw-r--r--Master/texmf-dist/tex/latex/stex/sref/sref.sty.ltxml33
1 files changed, 33 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/stex/sref/sref.sty.ltxml b/Master/texmf-dist/tex/latex/stex/sref/sref.sty.ltxml
new file mode 100644
index 00000000000..2157be90a8a
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/stex/sref/sref.sty.ltxml
@@ -0,0 +1,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;