/usr/share/perl5/LaTeXML/Post/PurgeXMath.pm is in latexml 0.7.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 | # /=====================================================================\ #
# | LaTeXML::Post::PurgeXMath | #
# | Postprocessor to purge the intermedate parsed math | #
# |=====================================================================| #
# | 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::Post::PurgeXMath;
use strict;
use base qw(LaTeXML::Post);
# ================================================================================
sub process {
my($self,$doc)=@_;
if(my @math = $doc->findnodes('//ltx:XMath')){
$self->Progress($doc,"Removing ".scalar(@math)." Intermediate XMath nodes");
$doc->removeNodes(@math); }
$doc; }
# ================================================================================
1;
|