Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 1057b87c

Von Marei Peischl vor mehr als 3 Jahren hinzugefügt

  • ID 1057b87c6a9dd54e1c51b17c55c5e9a66efbed81
  • Vorgänger a47d662b
  • Nachfolger 4ec81d44

marei: add colorbox variant without horizontal space

Unterschiede anzeigen:

templates/print/marei/kiviletter.sty
249 249
\seq_new:N \l_kivi_PricingTable_seq
250 250
\seq_new:N \l_kivi_columns_seq
251 251
\seq_new:N \g_kivi_extraDescription_seq
252
\dim_new:N \l__kivi_fboxsep_dim 
253
\dim_set:Nn \l__kivi_fboxsep_dim {\g_kivi_tabcolsep_dim}
254

  
255
%colorbox variant to only add vertical spacing
256
%based on colorbox definition from xcolor.sty
257
%% ----------------------------------------------------------------
258
%% Copyright (C) 2003-2016 by Dr. Uwe Kern <xcolor at ukern dot de>
259
%% ----------------------------------------------------------------
260
%% This variant of colorbox adds a space of \l__kivi_fboxsep_dim along the vertical axes but no horizontal space
261
\def\kivi@tabcolorbox#1#{\protect\kivi@tabcolor@box{#1}}
262

  
263
\def\kivi@tabcolor@box#1#2{
264
	\tl_if_empty:oTF {#2} 
265
		\kivi@nocolor@b@x
266
		\kivi@color@b@x
267
	\relax{\color#1{#2}}
268
}
269
\long\def\kivi@color@b@x#1#2#3%
270
{\leavevmode
271
	\setbox\z@\hbox{{\set@color#3}}%
272
	\dimen@\ht\z@\advance\dimen@\l__kivi_fboxsep_dim\ht\z@\dimen@
273
	\dimen@\dp\z@\advance\dimen@\l__kivi_fboxsep_dim\dp\z@\dimen@
274
	{#1{#2\color@block{\wd\z@}{\ht\z@}{\dp\z@}\box\z@}}}
275

  
276
\long\def\kivi@nocolor@b@x#1#2#3%
277
{\leavevmode
278
	\setbox\z@\hbox{#3}%
279
	\dimen@\ht\z@\advance\dimen@\l__kivi_fboxsep_dim\ht\z@\dimen@
280
	\dimen@\dp\z@\advance\dimen@\l__kivi_fboxsep_dim\dp\z@\dimen@
281
	{\box\z@}}
282

  
283
%%%
284

  
285

  
252 286
\newcommand{\FakeTable}[1]{
253 287
	\par
254 288
	\seq_set_split:Nnn \l_kivi_PricingTable_seq {\tabularnewline} {#1}

Auch abrufbar als: Unified diff