/usr/share/perl5/LaTeXML/Package/deluxetable.sty.ltxml is in latexml 0.8.2-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 | # -*- mode: Perl -*-
# /=====================================================================\ #
# | deluxetable.sty.ltxml | #
# |=====================================================================| #
# | Part of LaTeXML: | #
# | Public domain software, produced as part of work done by the | #
# | United States Government & not subject to copyright in the US. | #
# |---------------------------------------------------------------------| #
# | Thanks to the arXMLiv group for initial implementation | #
# | http://arxmliv.kwarc.info/ | #
# | Released to the Public Domain | #
# |---------------------------------------------------------------------| #
# | 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;
#======================================================================
# 2.15.1 The deluxetable Environment
# \begin{deluxetable}{cols}
# preamble
# \startdata
# data
# \enddata
# \tablenotetext,\tablecomments,\tablerefs
# \end{deluxetable}
DefMacro('\dummytable', '\refstepcounter{table}');
DefMacroI(T_CS('\begin{deluxetable}'), "{}",
'\set@deluxetable@template{#1}\def\@deluxetable@header{}\begin{table}');
DefMacroI(T_CS('\end{deluxetable}'), undef, '\end{table}');
DefMacroI(T_CS('\begin{deluxetable*}'), "{}",
'\set@deluxetable@template{#1}\def\@deluxetable@header{}\begin{table}');
DefMacroI(T_CS('\end{deluxetable*}'), undef, '\end{table}');
DefMacro('\set@deluxetable@template AlignmentTemplate', sub {
AssignValue('@deluxetable@template', $_[1]); });
DefMacro('\startdata', '\bgroup\@deluxetable@bindings\@@deluxetabular\@start@alignment\hline\hline\@deluxetable@header');
DefMacro('\enddata', '\\\\\hline\@finish@alignment\@end@deluxetabular\egroup');
DefPrimitive('\@deluxetable@bindings', sub {
tabularBindings(LookupValue('@deluxetable@template')); });
DefConstructor('\@@deluxetabular DigestedBody',
'#1',
reversion => '\begin{tabular}[#1]{#2}#3\end{tabular}',
beforeDigest => sub { $_[0]->bgroup; },
mode => 'text');
DefPrimitive('\@end@deluxetabular', sub { $_[0]->egroup; });
#======================================================================
# 2.15.2 Preamble to the deluxetable
DefMacro('\tabletypesize{}', ''); # Ignorable
DefMacro('\rotate', ''); # Ignorable ?
DefMacro('\tabletail{}', ''); # analog to head? but its ignored!!
DefMacro('\tablewidth{Dimension}', ''); # Ignorable?
DefMacro('\tableheadfrac{}', ''); # Ignorable
DefMacro('\tablenum{}', '\def\thetable{#1}');
# Note: This needs an UnRefStepCounter('table');
DefMacro('\tablecolumns{Number}', ''); # Ignorable ???
Let('\tablecaption', '\caption');
DefMacro('\tablehead{}',
'\def\@deluxetable@header{\@tabular@begin@heading#1\\\\\hline\@tabular@end@heading}');
DefMacro('\colhead{}',
'\multicolumn{1}{c}{#1}');
DefMacro('\nl', '\\\\[0pt]'); # Obsolete form
DefMacro('\nextline', '\\\\[0pt]'); # Obsolete form
DefMacro('\tablevspace', '\\\\[0pt]'); # Obsolete form
DefMacro('\tablebreak', '\\\\[0pt]'); # Obsolete form
#======================================================================
# 2.15.3 Content of deluxetable
DefMacro('\tablebreak', ''); # Ignorable; we're not splitting tables.
DefMacro('\nodata', ''); # Ignorable
DefMacro('\cutinhead{}', '\hline\multicolumn{\@alignment@ncolumns}{c}{#1}\\\\\hline');
DefMacro('\sidehead{}', '\hline\multicolumn{\@alignment@ncolumns}{l}{#1}\\\\\hline');
DefMacro('\tableline', '\hline');
DefConstructor('\tablenotemark{}',
"<ltx:note role='footnotemark' mark='#1'></ltx:note>",
mode => 'text');
DefConstructor('\tablenotetext{}{}',
"<ltx:note role='footnotetext' mark='#1'>#2</ltx:note>",
mode => 'text');
DefMacro('\tablerefs{}', 'References. -- #1');
DefMacro('\tablecomments{}', 'Note. -- #1');
#======================================================================
# Other esoterica
# Not sure here, probably needs some css magic?
DefMacro('\ulap{}', '#1');
DefMacro('\dlap{}', '#1');
# MISSING, but any usage here would fail, anyway...
# \appdef, \appgdef, \prepdef
#======================================================================
1;
|