blob: f6ec39b8f7b9c339c28a9cfaa76cd3f87430b155 (
plain)
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
|
%%
%% This is file `lwarp-ctable.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% lwarp.dtx (with options: `ctable')
%% This is a generated file.
%% Copyright 2016-2020 Brian Dunn
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
\LWR@ProvidesPackagePass{ctable}[2015/10/17]
\newcommand{\LWR@HTML@ctable}[4][]{%
\let\@CTtaborfig \@dfltCTtaborfig
\let\@CTalign \@dfltCTalign
\let\@CTsideways \@dfltCTsideways
\let\@CTcontinued \empty
\let\@CTpos \@dfltCTpos
\let\@CTcaption \empty
\let\@CTcap \undefined
\let\@CTlabel \empty
\let\@CTbotcap \@dfltCTbotcap
\let\@CTstarred \@dfltCTstarred
\let\@CTsuper \@dfltCTsuper
\let\@CTnotespar \@dfltCTnotespar
\let\@CTdoinside \@dfltCTdoinside
\let\@CTbgopacity \@dfltCTbgopacity
\@CTframerule \@dfltCTframerule
\@CTcaptionskip \@dfltCTcaptionskip
\@CTframesep \@dfltCTframesep
\@CTwidth \@dfltCTwidth
\@CTmaxwidth \@dfltCTmaxwidth
\@CTmincapwidth \@dfltCTmincapwidth
\@CTfooterwidth \@dfltCTfooterwidth
\def\@CTfgactual {@dfltCTframefg}%
\def\@CTbgactual {@dfltCTframebg}%
\def\@CTbeg {\begin{\@CTsideways\@CTtaborfig\@CTstarred}}%
\def\@CTbegin {\@CTbeg}%
\def\@CTend {\end{\@CTsideways\@CTtaborfig\@CTstarred}}%
\setkeys{CT}{#1}%
\ifx\@CTcap\undefined\let\@CTcap\@CTcaption\fi
\ifx\@CTcap\empty
\if@CTcaptionloaded\else
\PackageWarningNoLine{lwarp-ctable}{\MessageBreak
An empty cap= option prevents lot/loc entry only\MessageBreak
if the caption package is loaded!}
\fi
\fi
\if@CTinmemoir\else
\ifx\@CTbotcap\undefined
\PackageError{lwarp-ctable}{\MessageBreak
You can, currently, use the sidecap option only with\MessageBreak
memoir documents. Use topcap or botcap only}
{}
\fi
\fi
\ifdim\@CTwidth=0pt\else
\ifdim\@CTmaxwidth=0pt\else
\PackageError{lwarp-ctable}{\MessageBreak
You may not use the width and maxwidth options together\MessageBreak
Use either width or maxwidth}
{}
\fi
\fi
\ifx\@CTpos\empty
\ifx\@CTsideways\empty\else
\PackageError{lwarp-ctable}{\MessageBreak
You may not use the pos and sideways options together\MessageBreak
Rotated tables and figures are always typeset on a separate page}
{}
\fi
\fi
\ifx\@CTcaption\empty
\ifx\@CTlabel\empty\else
\PackageError{lwarp-ctable}{\MessageBreak
You may not label a captionless table\MessageBreak
Such a label can't be referenced}
{}
\fi
\fi
\@CTbegin
\ifx\@CTcontinued\empty\else\addtocounter{\@CTtaborfig}{-1}\fi
\@CTalign
\begin{center}
\setlength{\fboxrule}{\@CTframerule}
\setlength{\fboxsep}{\@CTframesep}
\LWR@forceminwidth{\fboxrule}% lwarp
\convertcolorspec{named}{\@CTbgactual}{HTML}\LWR@tempcolor% lwarp
\begin{BlockClass}[% lwarp
border:
\LWR@printlength{\LWR@atleastonept}
solid
\LWR@colorstyle{named}{\@CTfgactual} ; %
padding:\LWR@printlength{\fboxsep} ; %
\ifdefstring{\LWR@tempcolor}{FFFFFF}{}{%
background: \LWR@colorstyle{named}{\@CTbgactual} ; %
}%
]{fminipage}% lwarp
\ifx\@CTbotcap\@CTfalse\@CTCaption\vskip\@CTcaptionskip\fi
\ifx\@CTbotcap\undefined%
\begin{sidecaption}[\@CTcap]{\@CTcaption}[\@CTlabel]
\fi
\@CTdoinside
\begin{tabularx}{\linewidth}{#2}% lwarp
#4%
\end{tabularx}% lwarp
\def\@CTfootnotes{#3}%
\ifx#3\empty\else{% append footnotes, if any
\begin{BlockClass}{tnotes}% lwarp
#3
\end{BlockClass}% lwarp
}
\fi
\ifx\@CTbotcap\undefined\end{sidecaption}\fi
\ifx\@CTbotcap\@CTtrue\vskip\@CTcaptionskip\@CTCaption\fi
\end{BlockClass}
\end{center}
\@CTend
}
\LWR@formatted{ctable}
\LetLtxMacro\FL\toprule
\newcommand{\LWR@HTML@tmark}[1][a]{%
\textsuperscript{\textrm{\textit{#1}}}
}
\LWR@formatted{tmark}
\newcommand{\LWR@HTML@tnote}[2][a]{%
\tmark[#1]\,#2\par
}
\LWR@formatted{tnote}
\endinput
%%
%% End of file `lwarp-ctable.sty'.
|