This file is indexed.

/usr/share/perl5/LaTeXML/Package/amsrefs.sty.ltxml is in latexml 0.8.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# -*- CPERL -*-
# /=====================================================================\ #
# |  amsrefs                                                            | #
# | Implementation for LaTeXML                                          | #
# |=====================================================================| #
# | Part of LaTeXML:                                                    | #
# |  Public domain software, produced as part of work done by the       | #
# |  United States Government & not subject to copyright in the US.     | #
# |---------------------------------------------------------------------| #
# | Bruce Miller <bruce.miller@nist.gov>                        #_#     | #
# | http://dlmf.nist.gov/LaTeXML/                              (o o)    | #
# \=========================================================ooo==U==ooo=/ #
package LaTeXML::Package::Pool;
use strict;
use warnings;
use LaTeXML::Package;

#======================================================================
# Leverage the BibTeX implementation
#======================================================================
RequirePackage('BibTeX', type => 'pool');

# \bib{key}{type}{keyval pairs}

DefParameterType('BibURL', sub {
    my ($gullet) = @_;
    StartSemiverbatim();
    my @tokens = $gullet->readArg->unlist;
    EndSemiverbatim();
    my @cleaned = ();
    while (my $t = shift(@tokens)) {
      if ($t->equals(T_OTHER('%')) && @tokens && $tokens[0]->equals(Token("\n", CC_SPACE))) {
        shift(@tokens); }
      else {
        push(@cleaned, $t); } }
    Tokens(T_BEGIN, @cleaned, T_END); },
  semiverbatim => 1);

DefKeyVal('amsrefs', 'url', 'BibURL');

# \bib{key}{type}{keyval-pairs}
DefMacro('\bib{}{} RequiredKeyVals:amsrefs', sub {
    my ($gullet, $key, $type, $keyvals) = @_;
    $key = CleanBibKey(ToString($key));
    my @rawpairs = $keyvals->getPairs;
    my @fields;
    while (@rawpairs) {
      push(@fields, [lc(shift(@rawpairs)), ToString(shift(@rawpairs))]); }
    AssignValue('BIBENTRY@' . NormalizeBibKey($key)
        => LaTeXML::Pre::BibTeX::Entry->new(ToString($type), $key, [@fields], [@fields]));
    Invocation(T_CS('\ProcessBibTeXEntry'), T_OTHER($key)); });

#======================================================================
# Someday may want to try to decipher, but ...
DefMacro('\BibSpec{}{}', Tokens());

# ?
Let('\cites', '\cite');
#======================================================================
DefEnvironment('{bibdiv}',
  "<ltx:bibliography xml:id='#id' "
    . "bibstyle='#bibstyle' citestyle='#citestyle' sort='#sort'>"
    . "<ltx:title font='#titlefont' _force_font='1'>#title</ltx:title>"
    . "#body"
    . "</ltx:bibliography>",
  afterDigestBegin => sub { beginBibliography($_[1]); });

DefEnvironment('{biblist}', "<ltx:biblist>#body</ltx:biblist>");

#======================================================================
# Other Defns (presumably from textcmds?)

DefConstructor('\MR{}',
  "<ltx:ref href='#href' class='ltx_mathreviews'>MathReviews</ltx:ref>",
  properties => sub {
    my $mr = ToString($_[1]);
    # Patch up old-style MathReviews numbers
    $mr =~ s/\s+\\\#\s*/:/;
    (mr => $mr, href => "http://www.ams.org/mathscinet-getitem?mr=" . $mr); });

DefConstructor('\ndash', "\x{2013}");    # EN DASH
DefConstructor('\mdash', "\x{2014}");    # EM DASH
#**********************************************************************
1;