Debian Codegraph @

texmf-dist/tex/latex/lwarp/lwarp-ctable.sty

raw
1 %%
2 %% This is file `lwarp-ctable.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `ctable')
8 %% This is a generated file.
9 %% Copyright 2016-2026 Brian Dunn
10 %%
11 %% This work may be distributed and/or modified under the
12 %% conditions of the LaTeX Project Public License, either version 1.3
13 %% of this license or (at your option) any later version.
14 %% The latest version of this license is in
15 %% http://www.latex-project.org/lppl.txt
16 %% and version 1.3 or later is part of all distributions of LaTeX
17 %% version 2005/12/01 or later.
18 \LWR@ProvidesPackagePass{ctable}[2015/10/17]
19 \newcommand{\LWR@HTML@ctable}[4][]{%
20 \let\@CTtaborfig \@dfltCTtaborfig
21 \let\@CTalign \@dfltCTalign
22 \let\@CTsideways \@dfltCTsideways
23 \let\@CTcontinued \empty
24 \let\@CTpos \@dfltCTpos
25 \let\@CTcaption \empty
26 \let\@CTcap \undefined
27 \let\@CTlabel \empty
28 \let\@CTbotcap \@dfltCTbotcap
29 \let\@CTstarred \@dfltCTstarred
30 \let\@CTsuper \@dfltCTsuper
31 \let\@CTnotespar \@dfltCTnotespar
32 \let\@CTdoinside \@dfltCTdoinside
33 \let\@CTbgopacity \@dfltCTbgopacity
34 \@CTframerule \@dfltCTframerule
35 \@CTcaptionskip \@dfltCTcaptionskip
36 \@CTframesep \@dfltCTframesep
37 \@CTwidth \@dfltCTwidth
38 \@CTmaxwidth \@dfltCTmaxwidth
39 \@CTmincapwidth \@dfltCTmincapwidth
40 \@CTfooterwidth \@dfltCTfooterwidth
41 \def\@CTfgactual {@dfltCTframefg}%
42 \def\@CTbgactual {@dfltCTframebg}%
43 \def\@CTbeg {\begin{\@CTsideways\@CTtaborfig\@CTstarred}}%
44 \def\@CTbegin {\@CTbeg}%
45 \def\@CTend {\end{\@CTsideways\@CTtaborfig\@CTstarred}}%
46 \setkeys{CT}{#1}%
47 \ifx\@CTcap\undefined\let\@CTcap\@CTcaption\fi
48 \ifx\@CTcap\empty
49 \if@CTcaptionloaded\else
50 \PackageWarningNoLine{lwarp-ctable}{\MessageBreak
51 An empty cap= option prevents lot/loc entry only\MessageBreak
52 if the caption package is loaded!}
53 \fi
54 \fi
55 \if@CTinmemoir\else
56 \ifx\@CTbotcap\undefined
57 \PackageError{lwarp-ctable}{\MessageBreak
58 You can, currently, use the sidecap option only with\MessageBreak
59 memoir documents. Use topcap or botcap only}
60 {}
61 \fi
62 \fi
63 \ifdim\@CTwidth=0pt\else
64 \ifdim\@CTmaxwidth=0pt\else
65 \PackageError{lwarp-ctable}{\MessageBreak
66 You may not use the width and maxwidth options together\MessageBreak
67 Use either width or maxwidth}
68 {}
69 \fi
70 \fi
71 \ifx\@CTpos\empty
72 \ifx\@CTsideways\empty\else
73 \PackageError{lwarp-ctable}{\MessageBreak
74 You may not use the pos and sideways options together\MessageBreak
75 Rotated tables and figures are always typeset on a separate page}
76 {}
77 \fi
78 \fi
79 \ifx\@CTcaption\empty
80 \ifx\@CTlabel\empty\else
81 \PackageError{lwarp-ctable}{\MessageBreak
82 You may not label a captionless table\MessageBreak
83 Such a label can't be referenced}
84 {}
85 \fi
86 \fi
87 \@CTbegin
88 \ifx\@CTcontinued\empty\else\addtocounter{\@CTtaborfig}{-1}\fi
89 \@CTalign
90 \begin{center}
91 \setlength{\fboxrule}{\@CTframerule}
92 \setlength{\fboxsep}{\@CTframesep}
93 \LWR@forceminwidth{\fboxrule}% lwarp
94 \convertcolorspec{named}{\@CTbgactual}{HTML}\LWR@tempcolor% lwarp
95 \begin{BlockClass}[% lwarp
96 border:
97 \LWR@printlength{\LWR@atleastonept}
98 solid
99 \LWR@colorstyle{named}{\@CTfgactual} ; %
100 padding:\LWR@printlength{\fboxsep} ; %
101 \ifdefstring{\LWR@tempcolor}{FFFFFF}{}{%
102 background: \LWR@colorstyle{named}{\@CTbgactual} ; %
103 }%
104 ]{fminipage}% lwarp
105 \ifx\@CTbotcap\@CTfalse\@CTCaption\vskip\@CTcaptionskip\fi
106 \ifx\@CTbotcap\undefined%
107 \begin{sidecaption}[\@CTcap]{\@CTcaption}[\@CTlabel]
108 \fi
109 \@CTdoinside
110 \begin{tabularx}{\linewidth}{#2}% lwarp
111 #4%
112 \end{tabularx}% lwarp
113 \def\@CTfootnotes{#3}%
114 \ifx#3\empty\else{% append footnotes, if any
115 \begin{BlockClass}{tnotes}% lwarp
116 #3
117 \end{BlockClass}% lwarp
118 }
119 \fi
120 \ifx\@CTbotcap\undefined\end{sidecaption}\fi
121 \ifx\@CTbotcap\@CTtrue\vskip\@CTcaptionskip\@CTCaption\fi
122 \end{BlockClass}
123 \end{center}
124 \@CTend
125 }
126 \LWR@formatted{ctable}
127 \LetLtxMacro\FL\toprule
128 \newcommand{\LWR@HTML@tmark}[1][a]{%
129 \textsuperscript{\textrm{\textit{#1}}}
130 }
131 \LWR@formatted{tmark}
132
133 \newcommand{\LWR@HTML@tnote}[2][a]{%
134 \tmark[#1]\,#2\par
135 }
136 \LWR@formatted{tnote}
137
138 \endinput
139 %%
140 %% End of file `lwarp-ctable.sty'.