/usr/share/perl5/LaTeXML/Package/elsarticle.cls.ltxml is in latexml 0.8.1-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 | # -*- mode: Perl -*-
# /=====================================================================\ #
# | elsarticle.cls | #
# | 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;
# Generally ignorable options
foreach my $option (qw(preprint final review
authoryear number numbers longtitle
5p 3p 1p
times
12pt 11pt 10pt
oneside twoside onecolumn twocolumn
symbold ussrhead nameyear doublespacing reviewcopy)) {
DeclareOption($option, undef); }
DeclareOption('times', sub { AddToMacro(T_CS('\elsarticle.cls-hook'), '\RequirePackage{txfonts}'); });
DeclareOption("seceqn", sub { AssignValue('@seceqn' => 1); });
DeclareOption("secthm", sub { AssignValue('@secthm' => 1); });
DeclareOption("amsthm", sub { AssignValue('@amsthm' => 1); });
# Anything else is for article.
DeclareOption(undef, sub {
PassOptions('article', 'cls', ToString(Digest(T_CS('\CurrentOption')))); });
ProcessOptions();
LoadClass('article');
RequirePackage('elsart_support'); # Hopefully, this covers elsart & elsarticle
RequirePackage('graphicx');
RequirePackage('pifont');
RequirePackage('natbib');
# Redefine these, since in elsarticle, they two get optional arguments
# (not even sure what the intended effect is)
DefEnvironment('{enumerate}[]',
"<ltx:enumerate xml:id='#id'>#body</ltx:enumerate>",
properties => sub { beginItemize('enumerate', 'enum'); },
locked => 1, mode => 'text');
DefEnvironment('{itemize}[]',
"<ltx:itemize xml:id='#id'>#body</ltx:itemize>",
properties => sub { beginItemize('itemize', 'enum'); },
locked => 1, mode => 'text');
1;
|