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/sref/sref.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/sref/sref.sty.ltxml')
-rw-r--r-- | Master/texmf-dist/tex/latex/stex/sref/sref.sty.ltxml | 56 |
1 files changed, 0 insertions, 56 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 deleted file mode 100644 index 5d888c6715a..00000000000 --- a/Master/texmf-dist/tex/latex/stex/sref/sref.sty.ltxml +++ /dev/null @@ -1,56 +0,0 @@ -package LaTeXML::Package::Pool; -use strict; -use LaTeXML::Package; -DeclareOption('extrefs',''); -RequirePackage('metakeys'); -sub withhash {'#';} -DefConstructor('\sref[]{}', - "<omdoc:oref href='&withhash()#2'/>"); -DefConstructor('\srefs[]{}', - "<omdoc:oref href='&withhash()#2'/>"); -DefConstructor('\srefl[]{}', - "<omdoc:oref href='&withhash()#2'/>"); -DefConstructor('\spageref{}', - "<omdoc:oref href='&withhash()#1'/>"); -DefConstructor('\makeextrefs{}',''); -DefConstructor('\extref[]{}{}', - "<omdoc:oref href='#2@#3'/>"); -DefConstructor('\theextref',''); -DefConstructor('\extpageref[]{}{}', - "<omdoc:oref href='#2@#3'/>"); -DefConstructor('\theextref',''); -DefConstructor('\extrefstyle{}{}',""); -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*}'); -DefMacro('\withcite{}{}','\begin{withcitation}{#1}#2\citeit\end{withcitation}'); -DefConstructor('\citeit',"<omdoc:citation/> ", -afterConstruct => sub { - my ($document,$whatsit) = @_; - # LibXML acrobatics, since we can't talk about the xml:id prior to construction's end - # (and please do correct me if this is inaccurate) - my $node = $document->getNode; - my ($citenode) = $document->findnodes('preceding-sibling::omdoc:citation',$node); - my ($phrase_parent) = $document->findnodes('ancestor::ltx:text[@xml:id]',$node); - return unless (defined $phrase_parent) && (defined $citenode); - my $id = $phrase_parent->getAttribute('xml:id'); - my $refs = $phrase_parent->getAttribute('citeit-refs'); - $phrase_parent->removeAttribute('citeit-refs'); - $citenode->setAttribute('for',$id); - $citenode->setAttribute('refs',$refs); -});#$ -DefEnvironment('{withcitation}{}', - "<ltx:text citeit-refs='#1'>#body</ltx:text>"); -1; |