This file is indexed.

/usr/share/perl5/LaTeXML/Package/slides.cls.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
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# -*- CPERL -*-
# /=====================================================================\ #
# |  slides                                                             | #
# | 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;

LoadPool('LaTeX');
#**********************************************************************
# Option handling
foreach my $option (qw(letterpaper legalpaper executivepaper a4paper a5paper b5paper
  landscape clock
  final draft titlepage notitlepage onecolumn twocolumn)) {
  DeclareOption($option, undef); }
DeclareOption('leqno', sub { AssignMapping('DOCUMENT_CLASSES', ltx_leqno => 1); });
DeclareOption('fleqn', sub { AssignMapping('DOCUMENT_CLASSES', ltx_fleqn => 1); });

ProcessOptions();

#**********************************************************************
# Document structure.
RelaxNGSchema("LaTeXML");

DefConditional('\if@bw');
DefConditional('\if@clock');
DefConditional('\if@makingslides');
DefConditional('\if@onlynotesw');
DefConditional('\if@onlyslidesw');
DefConditional('\if@titlepage');
DefConditional('\if@visible');
DefMacroI('\ifourteenpt',   undef, '13.82');
DefMacroI('\iseventeenpt',  undef, '16.59');
DefMacroI('\itwentypt',     undef, '19.907');
DefMacroI('\itwentyfourpt', undef, '23.89');
DefMacroI('\itwentyninept', undef, '28.66');
DefMacroI('\ithirtyfourpt', undef, '34.4');
DefMacroI('\ifortyonept',   undef, '41.28');
# ???
DefMacro('\newifg Token', '\newif#1');
DefConditional('\ifG@slidesw');
#DefConditional('\ifG@123');
# \@ifG,

# redefns
# \@@overline, \@frac, \@xoverline,
# \@xsqrt, \@xunderline, \@xysqrt, \@xyunderline,

# \@bphantom, \@hbphantom, \@vbphantom,
# \@smashboxa, \@smashboxb, \@smashboxc,
# \@hvsmash,

Let('\@topfil', '\vfil');
Let('\@botfil', '\vfil');

# \@ggobtoend, \@gobbletoend,
# \@mainsize, \@makefntext,
# \@mathbox, \@mmodetest,
# \@setfontsize@parms,
# \@setlimits,
# \@sl@ccdr,
# \@sl@getargs,

DefConstructor('\addtime Number', '<ltx:note>add time #1</ltx:note>');
DefConstructor('\settime Number', '<ltx:note>set time #1</ltx:note>');

# Hmm... should be saving the color and restoring upon visible.
# or better yet, should be an alpha channel in font!!!
# CSS3 has an opacity property (0--1)
DefPrimitiveI('\invisible', undef, undef, font => { opacity => 0 });    # ?
DefPrimitiveI('\visible',   undef, undef, font => { opacity => 1 });    # ?

DefPrimitive('\showfont', sub {
    my $font = LookupValue('font');
    print STDERR "\nFONT IS: " . Stringify($font) . "\n";
    return; });

RequirePackage('color');                                                # ?
# \@color, \@colorlist, \last@color,
DefMacro('\blackandwhite', '');
DefMacro('\colors{}',      '');                                         # ?
DefMacro('\colorslides{}', '');

DefMacroI('\setupcounters', undef, '');

DefMacroI('\ps@headings', undef, '');
DefMacroI('\ps@note',     undef, '');
DefMacroI('\ps@overlay',  undef, '');
DefMacroI('\ps@slide',    undef, '');
# \@doglnotelist, \@doglslidelist, \@donotelist, \@doslidelist,
# \@extraslide,

#**********************************************************************
# The core sectioning commands are defined in LaTeX.pm
# but the counter setup, etc, depends on article
NewCounter('slide', 'document', idprefix => 's', nested => ['overlay']);
NewCounter('overlay', 'slide',    idprefix => 'o');
NewCounter('note',    'document', idprefix => 'n');

DefMacro('\theslide',   '\arabic{slide}');
DefMacro('\thenote',    '\arabic{note}');
DefMacro('\theoverlay', '\theslide.\arabic{overlay}');

NewCounter('equation', 'document', idprefix => 'E');
DefMacro('\theequation', '\arabic{equation}');

NewCounter('@itemizei',   'document',    idprefix => 'I');
NewCounter('@itemizeii',  '@itemizei',   idprefix => 'I');
NewCounter('@itemizeiii', '@itemizeii',  idprefix => 'I');
NewCounter('@itemizeiv',  '@itemizeiii', idprefix => 'I');
NewCounter('@itemizev',   '@itemizeiv',  idprefix => 'I');
NewCounter('@itemizevi',  '@itemizev',   idprefix => 'I');

NewCounter('enumi',   '@itemizei',   idprefix => 'i');
NewCounter('enumii',  '@itemizeii',  idprefix => 'i');
NewCounter('enumiii', '@itemizeiii', idprefix => 'i');
NewCounter('enumiv',  '@itemizeiv',  idprefix => 'i');
# A couple of more levels, since we use these for ID's!
NewCounter('enumv',  '@itemizev',  idprefix => 'i');
NewCounter('enumvi', '@itemizevi', idprefix => 'i');

DefMacro('\theenumi',   '\arabic{enumi}');
DefMacro('\theenumii',  '\alph{enumii}');
DefMacro('\theenumiii', '\roman{enumiii}');
DefMacro('\theenumiv',  '\Alph{enumiv}');

#**********************************************************************

AssignValue(DOSLIDES => 1, 'global');
AssignValue(DONOTES  => 1, 'global');

DefPrimitiveI('\onlynotes', undef, sub {
    AssignValue(DONOTES  => 1, 'global');
    AssignValue(DOSLIDES => 0, 'global'); });

DefPrimitiveI('\onlyslides', undef, sub {
    AssignValue(DONOTES  => 0, 'global');
    AssignValue(DOSLIDES => 1, 'global'); });

DefEnvironment('{slide}',
  "<ltx:slide xml:id='#id' refnum='#refnum' frefnum='#frefnum' rrefnum='#rrefnum'>"
    . "#body"
    . "</ltx:slide>",
  properties => sub { (doslide => sub { LookupValue('DOSLIDES'); },
      RefStepCounter('slide')) });

DefEnvironment('{overlay}',
  "<ltx:slide xml:id='#id' refnum='#refnum' frefnum='#frefnum' rrefnum='#rrefnum'>"
    . "#body"
    . "</ltx:slide>",
  properties => sub { (doslide => sub { LookupValue('DOSLIDES'); },
      RefStepCounter('overlay')) });

DefEnvironment('{note}',
  "<ltx:note xml:id='#id' refnum='#refnum' frefnum='#frefnum' rrefnum='#rrefnum'>"
    . "#body"
    . "</ltx:note>",
  properties => sub { (doslide => sub { LookupValue('DONOTES'); },
      RefStepCounter('note')) });

#**********************************************************************
1;