From ddfe3a4eaf95167482e923d4da3de2917a7dbfbb Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 7 Apr 2016 20:49:10 +0000 Subject: stex (7apr16) git-svn-id: svn://tug.org/texlive/trunk@40320 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/stex/sref/sref.sty.ltxml | 56 ---------------------- 1 file changed, 56 deletions(-) delete mode 100644 Master/texmf-dist/tex/latex/stex/sref/sref.sty.ltxml (limited to 'Master/texmf-dist/tex/latex/stex/sref/sref.sty.ltxml') 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[]{}', - ""); -DefConstructor('\srefs[]{}', - ""); -DefConstructor('\srefl[]{}', - ""); -DefConstructor('\spageref{}', - ""); -DefConstructor('\makeextrefs{}',''); -DefConstructor('\extref[]{}{}', - ""); -DefConstructor('\theextref',''); -DefConstructor('\extpageref[]{}{}', - ""); -DefConstructor('\theextref',''); -DefConstructor('\extrefstyle{}{}',""); -DefConstructor('\extrefstyle{}{}',""); -DefConstructor('\inputrefs{}{}',''); -DefEnvironment('{sequation} OptionalKeyVals', - "" - . "" - . "#body" - . "" - . "", - 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'," ", -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}{}', - "#body"); -1; -- cgit v1.2.3