1
# /=====================================================================\ #
2
# | booktabs | #
3
# | Implementation for LaTeXML | #
4
# |=====================================================================| #
5
# | Part of LaTeXML: | #
6
# | Public domain software, produced as part of work done by the | #
7
# | United States Government & not subject to copyright in the US. | #
8
# |---------------------------------------------------------------------| #
9
# | Bruce Miller <bruce.miller@nist.gov> #_# | #
10
# | http://dlmf.nist.gov/LaTeXML/ (o o) | #
11
# \=========================================================ooo==U==ooo=/ #
12
package LaTeXML::Package::Pool;
13
use strict;
14
use warnings;
15
use LaTeXML::Package;
16
17
# Adjust thickness of rules?
18
# Except for the encodings of hline as t (normal) or T (thin)
19
# there's currently no support for variable thickness.
20
21
# \toprule[thickness] doubled
22
DefMacro('\toprule[Dimension]', '\hline\hline');
23
# \midrule[thickness]
24
DefMacro('\midrule[Dimension]', '\hline');
25
# \bottomrule[thickness] doubled
26
DefMacro('\bottomrule[Dimension]', '\hline\hline');
27
28
# \cmidrule[thickness](trim){col-col}
29
DefMacro('\@afterfi Until:\fi', '\fi#1');
30
DefMacro('\cmidrule[]',
31
'\@ifnextchar({\ifx.#1.\expandafter\ltx@@cmidrule\else\@afterfi\ltx@@cmidrule[#1]\fi}'
32
. '{\ifx.#1.\expandafter\ltx@cmidrule\else\@afterfi\ltx@cmidrule[#1]\fi}');
33
34
DefMacro('\ltx@@cmidrule[Dimension] Match:( Until:){}', '\cline{#3}');
35
DefMacro('\ltx@cmidrule[Dimension]{}', '\cline{#2}');
36
37
# add vspace
38
DefMacro('\addlinespace[Dimension]', '');
39
40
# adjust spacing to make double line
41
DefMacro('\morecmidrules', '');
42
43
# \specialrule{thickness}{above}{below}
44
DefMacro('\specialrule{Dimension}{Dimension}{Dimension}', '\hline');
45
46
#======================================================================
47
1;