Revision de55fb2c
Von Marei Peischl vor fast 5 Jahren hinzugefügt
kiviletter.sty | ||
---|---|---|
126 | 126 |
\seq_new:N \l_kivi_PricingTable_seq |
127 | 127 |
\seq_new:N \g_kivi_extraDescription_seq |
128 | 128 |
\newcommand{\FakeTable}[1]{ |
129 |
\kivi_save_LT@boxes: |
|
130 |
\box_gset_eq:NN \LT@lastfoot \c_empty_box |
|
131 |
\box_gset_eq:NN \LT@foot \c_empty_box |
|
132 |
\endPricingTabular |
|
129 |
\par |
|
130 |
\CalcTabCols |
|
133 | 131 |
\seq_set_split:Nnn \l_kivi_PricingTable_seq {\tabularnewline} {#1} |
134 | 132 |
\begingroup |
135 | 133 |
\setlength{\tabcolsep}{\g_kivi_tabcolsep_dim} |
136 | 134 |
\seq_map_inline:Nn \l_kivi_PricingTable_seq { |
137 | 135 |
\seq_gclear:N \g_kivi_extraDescription_seq |
138 |
\tabular{@{}p{\g_kivi_tab_pos_dim}p{\g_kivi_tab_id_dim}p{\g_kivi_tab_desc_dim}>{\raggedleft\arraybackslash}p{\g_kivi_tab_num_dim}*2{P<{\,\currency}}@{}}
|
|
136 |
\exp_args:NnV \use:n {\tabular[t]}\g_kivi_Pricing_colspec_tl
|
|
139 | 137 |
##1 |
140 | 138 |
\endtabular |
141 | 139 |
\seq_if_empty:NTF \g_kivi_extraDescription_seq |
142 | 140 |
{\par\nointerlineskip} |
143 | 141 |
{\par\nointerlineskip |
144 |
\begin{tcolorbox}[left~skip=\dim_eval:n {\g_kivi_tab_pos_dim+ \g_kivi_tab_id_dim +4\tabcolsep},right~skip=\dim_eval:n {\g_kivi_tab_num_dim+ 2\g_kivi_tab_price_dim +6\tabcolsep}, breakable, blank] |
|
145 |
\seq_use:Nn \g_kivi_extraDescription_seq {\newline} |
|
146 |
\end{tcolorbox} |
|
142 |
\begin{tcolorbox}[ |
|
143 |
empty, |
|
144 |
left=\dim_eval:n {\g_kivi_tab_pos_dim+ \g_kivi_tab_id_dim +4\g_kivi_tabcolsep_dim}, |
|
145 |
right=\dim_eval:n {\g_kivi_tab_num_dim+ 2\g_kivi_tab_price_dim +6\g_kivi_tabcolsep_dim},top=0pt,bottom=0pt, |
|
146 |
boxsep=0pt, |
|
147 |
breakable, |
|
148 |
lines~before~break=1, |
|
149 |
] |
|
150 |
\seq_use:Nn \g_kivi_extraDescription_seq {\\} |
|
151 |
\end{tcolorbox} |
|
152 |
\nointerlineskip |
|
147 | 153 |
} |
148 | 154 |
} |
149 | 155 |
\endgroup |
150 |
\PricingTabular |
|
151 |
\kivi_restore_LT@boxes: |
|
152 | 156 |
} |
153 | 157 |
|
154 | 158 |
|
155 | 159 |
\tl_new:N \g_kivi_Pricing_colspec_tl |
156 |
\tl_gset:Nn \g_kivi_Pricing_colspec_tl {@{}p{\g_kivi_tab_pos_dim}p{\g_kivi_tab_id_dim}p{\g_kivi_tab_desc_dim}>{\raggedleft\arraybackslash}p{\g_kivi_tab_num_dim}*2{P<{\,\currency}}@{}}
|
|
160 |
\tl_gset:Nn \g_kivi_Pricing_colspec_tl {@{}p{\g_kivi_tab_pos_dim}p{\g_kivi_tab_id_dim}p{\g_kivi_tab_desc_dim}>{\raggedleft\arraybackslash}p{\g_kivi_tab_num_dim}*2{P}@{}} |
|
157 | 161 |
|
158 | 162 |
|
159 | 163 |
\clist_map_inline:nn {head, foot, firsthead, lastfoot} {%TODO reduce |
Auch abrufbar als: Unified diff
improve FakeTable and tcolorbox options