Revision c44fd93f
Von Marei Peischl vor fast 5 Jahren hinzugefügt
kiviletter.sty | ||
---|---|---|
81 | 81 |
\newcolumntype{P}{>{\raggedleft\arraybackslash}p{\g_kivi_tab_price_dim}} |
82 | 82 |
|
83 | 83 |
%\if@kivi@faketable |
84 |
\RequirePackage{environ} |
|
84 |
\RequirePackage{tcolorbox} |
|
85 |
\tcbuselibrary{breakable, skins} |
|
85 | 86 |
\seq_new:N \l_kivi_PricingTable_seq |
87 |
\seq_new:N \g_kivi_extraDescription_seq |
|
86 | 88 |
\newcommand{\FakeTable}[1]{ |
87 | 89 |
% \tl_set:No \l_tmpa_tl {\BODY} |
88 | 90 |
\endPricingTabular |
... | ... | |
90 | 92 |
\begingroup |
91 | 93 |
\setlength{\tabcolsep}{\g_kivi_tabcolsep_dim} |
92 | 94 |
\seq_map_inline:Nn \l_kivi_PricingTable_seq { |
95 |
\seq_gclear:N \g_kivi_extraDescription_seq |
|
93 | 96 |
\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}}@{}} |
94 | 97 |
##1 |
95 |
\endtabular\par\nointerlineskip |
|
98 |
\endtabular |
|
99 |
\seq_if_empty:NTF \g_kivi_extraDescription_seq |
|
100 |
{\par\nointerlineskip} |
|
101 |
{\par\nointerlineskip |
|
102 |
\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] |
|
103 |
\seq_use:N \g_kivi_extraDescription_seq {\newline} |
|
104 |
\end{tcolorbox} |
|
105 |
} |
|
96 | 106 |
} |
97 | 107 |
\endgroup |
98 | 108 |
\PricingTabular |
99 | 109 |
} |
110 |
|
|
111 |
\newcommand*{\ExtraDescription}[1]{\seq_gput_right:Nn \g_kivi_extraDescription_seq {#1}} |
|
100 | 112 |
%\else |
101 |
\newenvironment{PricingTabular}{ |
|
113 |
\newenvironment{PricingTabular}[1][]{
|
|
102 | 114 |
\begingroup |
103 | 115 |
\setlength{\tabcolsep}{\g_kivi_tabcolsep_dim} |
104 | 116 |
\CalcTabCols |
Auch abrufbar als: Unified diff
tcolorbox breakable