-
Notifications
You must be signed in to change notification settings - Fork 17
/
tabu.dtx
7839 lines (7815 loc) · 342 KB
/
tabu.dtx
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
% \iffalse meta-comment
% tabu : 2011/02/26 v2.8 - tabu: flexible LaTeX tabulars]
%
% 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
%
% This work consists of the main source file tabu.dtx
% and the derived files
% tabu.sty, tabu.pdf, tabu.ins
%
% Unpacking:
% (a) If tabu.ins is present:
% etex tabu.ins
% (b) Without tabu.ins:
% etex tabu.dtx
% (c) If you insist on using LaTeX
% latex \let\install=y\input{tabu.dtx}
% (quote the arguments according to the demands of your shell)
%
% Documentation:
% (pdf)latex tabu.dtx
% lppl copyright 2010-2011 by FC <[email protected]>
%<*ignore>
\begingroup
\def\x{LaTeX2e}%
\expandafter\endgroup
\ifcase 0\ifx\install y1\fi\expandafter
\ifx\csname processbatchFile\endcsname\relax\else1\fi
\ifx\fmtname\x\else 1\fi\relax
\else\csname fi\endcsname
%</ignore>
%<*install>
\input docstrip.tex
\Msg{************************************************************************}
\Msg{* Installation}
\Msg{* Package: 2011/02/26 v2.8 - tabu: Flexible LaTeX tabulars}
\Msg{************************************************************************}
\keepsilent
\askforoverwritefalse
\let\MetaPrefix \relax
\preamble
This is a generated file.
Copyright (FC) 2010-2011 - lppl
tabu : 2011/02/26 v2.8 - tabu : Flexible LaTeX tabulars
**********************************************************************************************
\string\begin{tabu} { preamble } => default target: \string\linewidth or \string\linegoal
\string\begin{tabu} to <dimen>{ preamble } => target specified
\string\begin{tabu} spread <dimen>{ preamble } => target relative to the ``natural width''
tabu works in text and in math modes.
X columns: automatic width ajustment + horizontal and vertical alignment
\string\begin{tabu} { X[4c] X[1c] X[-2ml] }
Horizontal lines and / or leaders:
\string\hline\string\hline => double horizontal line
\string\firsthline\string\hline => for nested tabulars
\string\lasthline\string\hline => for nested tabulars
\string\tabucline[line spec]{column-column} => ``funny'' lines (dash/leader)
Automatic lines / leaders :
\string\everyrow{\string\hline\string\hline}
Vertical lines and / or leaders:
\string\begin{tabu} { |[3pt red] X[4c] X[1c] X[-2ml] |[3pt blue] }
\string\begin{tabu} { |[3pt red] X[4c] X[1c] X[-2ml] |[3pt on 2pt off 4pt blue] }
Fixed vertical spacing adjustment:
\string\extrarowheight=<dimen> \string\extrarowdepth=<dimen>
or: \string\extrarowsep=<dimen> => may be prefixed by \string\global
Dynamic vertical spacing adjustment:
\string\abovetabulinesep=<dimen> \string\belowtabulinesep=<dimen>
or: \string\tabulinesep=<dimen> => may be prefixed by \string\global
delarray.sty shortcuts: in math and text modes
\string\begin{tabu} .... \string\({ preamble }\string\)
Algorithms reports:
\string\tracingtabu=1 \string\tracingtabu=2
**********************************************************************************************
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
This work consists of the main source file tabu.dtx
and the derived files
tabu.sty, tabu.pdf, tabu.ins
tabu : Flexible LaTeX tabulars
lppl copyright 2010-2011 by FC <[email protected]>
\endpreamble
\let\MetaPrefix \DoubleperCent
{
\catcode164=9
\generate{%
\file{tabu.ins}{\from{tabu.dtx}{install}}%
\file{tabu.sty}{\from{tabu.dtx}{package}}%
}
}
\askforoverwritefalse
\generate{%
\file{tabu.drv}{\from{tabu.dtx}{driver}}%
}
\obeyspaces
\Msg{************************************************************************}
\Msg{*}
\Msg{* To finish the installation you have to move the following}
\Msg{* file into a directory searched by TeX:}
\Msg{*}
\Msg{* tabu.sty}
\Msg{*}
\Msg{* To produce the documentation run the file `tabu.dtx'}
\Msg{* through LaTeX.}
\Msg{*}
\Msg{* Happy TeXing!}
\Msg{*}
\Msg{************************************************************************}
\endbatchfile
%</install>
%<*ignore>
\fi
%</ignore>
%<*driver>
\let\microtypeYN=y
\edef\thisfile{\jobname}
\def\thisinfo{Flexible \LaTeX{} tabulars (\FC)}
\def\thisdate{2011/02/26}
\def\thisversion{2.8}
\def\CTANbaseurl{http://www.ctan.org/tex-archive/macros/latex}
\def\CTANdisplay{CTAN:macros/latex}
\makeatletter\protected\def\CTANhref{\@ifstar\CTANhrefstar\CTANhrefnost}\makeatother
\newcommand*\CTANhrefstar[3][/contrib/]{\href{\CTANbaseurl#1#2}{#3}}
\newcommand*\CTANhrefnost[2][/contrib/]{\href{\CTANbaseurl#1#2}{\nolinkurl{\CTANdisplay#1#2}}}
\let\loadclass\LoadClass
\def\LoadClass#1{\loadclass[abstracton]{scrartcl}\let\scrmaketitle\maketitle\AtEndOfClass{\let\maketitle\scrmaketitle}}
{\makeatletter{\endlinechar`\^^J\obeyspaces
\gdef\ErrorUpdate#1=#2,{\@ifpackagelater{#1}{#2}{}{\let\CheckDate\errmessage\toks@\expandafter{\the\toks@
\thisfile-documentation: updates required !
package #1 must be later than #2
to compile this documentation.}}}}%
\gdef\CheckDate#1{{\let\CheckDate\relax\toks@{}\@for\x:=\thisfile=\thisdate,#1\do{\expandafter\ErrorUpdate\x,}\CheckDate\expandafter{\the\toks@}}}}
\AtBeginDocument{\CheckDate{interfaces=2011/02/12,linegoal=2011/02/25}}
\PassOptionsToPackage{svgnames,table}{xcolor}
\PassOptionsToPackage{hyperfootnotes}{hyperref}
\documentclass[a4paper,oneside]{ltxdoc}
\AtBeginDocument{\tracingnesting=1 \DeleteShortVerb{\|}\catcode164=14}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{ltxnew,etoolbox,geometry,graphicx,xcolor,needspace,ragged2e} % general tools
\usepackage{lmodern,bbding,hologo,relsize,moresize,manfnt,pifont,upgreek} % fonts
\usepackage[official]{eurosym} % font
\ifx y\microtypeYN %
\usepackage[expansion=all,stretch=20,shrink=60]{microtype}\fi % font (microtype)
\usepackage{xspace,tocloft,titlesec,fancyhdr,lastpage,enumitem,marginnote} % paragraphs & pages management
\usepackage{holtxdoc,bookmark,hypbmsec,enumitem-zref} % hyper-links
\usepackage{array,delarray,longtable,colortbl,multirow,makecell,booktabs} % tabulars
\usepackage{tabularx}\tracingtabularx % tabularx
\usepackage{amsmath,amsopn} % mathematics \DeclareMathOperator in amsopn
\usepackage[a]{esvect} % mathematics : for nice vectors arrows
\usepackage{numprint,xfrac,siunitx} % numbers / units / fractions
\usepackage{embedfile} % .dtx enclosed in .pdf
\usepackage{fancyvrb}\fvset{gobble=0,listparameters={\topsep=0pt}} % verbatim
\usepackage{interfaces} % interfaces (à tester aussi avant \documentclass)
\usetikz{basic,chains,positioning} % pgf / TikZ
\usepackage{nccfoots} % \Footnote{marker}{text}
\usepackage{embedfile}
\RequirePackage{amsopn,amsmath}%
\RequirePackage[a]{esvect}% for vectors
\DeclareMathOperator*\Div{div}
\DeclareMathOperator*\Rot{\vv{\text{rot}}}
\DeclareMathOperator*\Min{Min}
\DeclareMathOperator*\Max{Max}
\newrobustcmd*\dpartial[2]{\displaystyle\genfrac{}{}{}{}{\partial\mkern.2\thinmuskip#1}{\partial\mkern.2\thinmuskip#2}}
\newrobustcmd*\dtotal[2]{\displaystyle\genfrac{}{}{}{}{\text d\mkern.2\thinmuskip#1}{\text d\mkern.2\thinmuskip#2}}
\newrobustcmd*\abs[1]{\left\lvert#1\right\rvert}
\usepackage{expl3,l3keys2e,siunitx}
\usepackage{xfrac}
\usepackage{listings}
\lstset{
gobble=1,
language=[LaTeX]TeX,
basicstyle=\ttfamily,
breaklines=true,
upquote=true,
% prebreak={\%\,\ding{229}},
backgroundcolor=\color[gray]{0.90},
keywordstyle=\color{blue}\bfseries,
keywordstyle=[2]{\color{ForestGreen}},
commentstyle=\ttfamily\color{violet},
keywordstyle=[3]{\color{black}\bfseries},
keywordstyle=[4]{\color{red}\bfseries},
keywordstyle=[5]{\color{blue}\bfseries},
keywordstyle=[6]{\color{green}\bfseries},
keywordstyle=[7]{\color{yellow}\bfseries},
%extendedchars={true},
alsoletter={&},
morekeywords=[1]{
\lstdefinestyle,
\lstinputlisting,\lstset,
\color,
\geometry,\lasthline,\firsthline,
\cmidrule,\toprule,\bottomrule,
\everyrow,\tabulinestyle,\tabureset,\savetabu,\usetabu,\preamble,
\taburulecolor,\taburowcolors},
morekeywords=[2]{
tabular,
caption,
table,
tabu},
morekeywords=[3]{
&},
morekeywords=[4]{red},
morekeywords=[5]{blue},
morekeywords=[6]{green},
morekeywords=[7]{yellow},
}
\csname endofdump\endcsname
\CodelineNumbered
\usepackage{fancyvrb}\fvset{gobble=1,listparameters={\topsep=0pt}}
\usepackage[linegoal]{tabu}\tracingtabu=2
\newtabulinestyle{dash=on1pt off1pt}
\lastlinefit999
\geometry{top=0pt,includeheadfoot,headheight=.6cm,headsep=.6cm,bottom=.6cm,footskip=.5cm,left=4cm,right=1.5cm}
\hypersetup{%
pdftitle={tabu},
pdfsubject={a simple line parser for TeX},
pdfauthor={Florent CHERVET},
colorlinks,linkcolor=reflink,urlcolor=refurl,
pdfstartview=FitH,pdfpagemode=UseOutlines,
pdfkeywords={tex, e-tex, latex, package, tabular, array, halign, tabularx, longtable, color, colortbl, alignment},
}
\embedfile{\thisfile.dtx}
\begin{document}
\DocInput{\thisfile.dtx}
\end{document}
%</driver>
% \fi
%
% \CheckSum{7884}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
% Digits \0\1\2\3\4\5\6\7\8\9
% Exclamation \! Double quote \" Hash (number) \#
% Dollar \$ Percent \% Ampersand \&
% Acute accent \' Left paren \( Right paren \)
% Asterisk \* Plus \+ Comma \,
% Minus \- Point \. Solidus \/
% Colon \: Semicolon \; Less than \<
% Equals \= Greater than \> Question mark \?
% Commercial at \@ Left bracket \[ Backslash \\
% Right bracket \] Circumflex \^ Underscore \_
% Grave accent \` Left brace \{ Vertical bar \|
% Right brace \} Tilde \~}
%
% \DoNotIndex{\begin,\CodelineIndex,\CodelineNumbered,\def,\DisableCrossrefs,\~,\@ifpackagelater,\z@,\@ne,\@@,\@firstoftwo,\@firstofone,\@secondoftwo,\@fornoop,\@elt,\tabu@temp}
% \DoNotIndex{\DocInput,\documentclass,\EnableCrossrefs,\end,\GetFileInfo,\TMP@EnsureCode,\@length,\@thick,\@m,\@makeother,\@mpfn,\@preamerr,\@preamerror,\@skip,\@spaces,\tabu@spaces}
% \DoNotIndex{\NeedsTeXFormat,\OnlyDescription,\RecordChanges,\usepackage,\@ss,\@therule,\@unbox,\[,\],\{,\},\cellspacetoplimit,\begin,\bcolumn,\adl@xarraydashrule,\adl@vlineR,\adl@vlineL}
% \DoNotIndex{\ProvidesClass,\ProvidesPackage,\ProvidesFile,\RequirePackage,\adl@ncol,\adl@leftrulefalse,\adl@dashgapcolor,\adl@colhtdp,\adl@class@start,\adl@box,\adl@arrayrestore}
% \DoNotIndex{\filename,\fileversion,\filedate,\let,\adl@array,\adl@act@@endpbox,\adl@act@endpbox,\0,\,,\;,\&,\@cdr,\@box,\@currentHref,\@currentlabel,\@currentlabelname,\@currenvir}
% \DoNotIndex{\@listctr,\@nameuse,\csname,\else,\endcsname,\expandafter,\AtEndOfPackage,\crcr,\copy,\FV@RightListNumber,\FV@RightListFrame,\Hy@footnote@currentHref,\Hy@raisedlink}
% \DoNotIndex{\gdef,\global,\if,\item,\newcommand,\nobibliography,\newrobustcmd,\renewrobustcmd,\providerobustcmd,\hyper@@anchor,\ifadl@inactive,\ifadl@leftrule,\ifadl@zwvrule,\ifHy@nesting}
% \DoNotIndex{\par,\providecommand,\relax,\renewcommand,\renewenvironment,\in@@,\o,\on@line,\P,\ProcessOptions,\LNGL@setlinegoal,\set@color,\T,\O,\tabu@adl@endtrial}
% \DoNotIndex{\stepcounter,\usecounter,\nocite,\fi,\tabu@adl@act@endpbox,\tabu@adl@xarraydashrule,\tabu@FV@@@CheckEnd,\tabu@FV@@CheckEnd,\tabu@FV@DefineCheckEnd,\tabu@FV@ListProcessLine}
% \DoNotIndex{\@fileswfalse,\@gobble,\@ifstar,\@unexpandable@protect,\tabu@fornoopORI,\tabu@m@ybesiunitx,\tabu@multic@lumn,\tabu@multicolumnORI,\tabu@s@ved,\tabu@startpboxORI,\tabucline@sc@n,\z}
% \DoNotIndex{\AtBeginDocument,\AtEndDocument,\begingroup,\endgroup,\ifnum,\ifodd,\ifdim,\ifcsname,\ifcat,\ifcase,\iffalse,\FancyVerbFormatLine,\begin,\end,\@let@token,\@undefined,\active}
% \DoNotIndex{\frenchspacing,\MessageBreak,\newif,\PackageWarningNoLine,\@addtopreamble,\@depth,\@height,\@width,\@firstofone,\@frameb@x,\@lastchclass,\@M,\m,\@nextchar,\@startpbox}
% \DoNotIndex{\protect,\string,\xdef,\ifx,\texttt,\@biblabel,\bibitem,\@tempa,\{,\},\^,\ ,\DeclareOption,\CT@end,\CT@arc@,\CT@drsc@,\count@,\col@sep,\endgraf,\dimexpr,\fbox,\fboxsep,\g@addto@macro}
% \DoNotIndex{\z@,\wd,\vrule,\voidb@x,\verb,\bibitem,\NC@rewrite@,\NC@list,\NC@do,\NC@,\nobreak,\number,\showbox,\tabu@AtEnd,\tabu@getnbc@ls,\tabu@s@nitizetext}
% \DoNotIndex{\FrameCommand,\MakeFramed,\FrameRestore,\hskip,\hfil,\hfill,\hsize,\hspace,\hss,\hbox,\hb@xt@,\endMakeFramed,\escapechar,\tabu@s@veX,\tabu@sett@rget,\tabu@stack}
% \DoNotIndex{\do,\date,\if@tempswa,\@tempdima,\@tempboxa,\@tempswatrue,\@tempswafalse,\ifdefined,\ifhmode,\ifmmode,\cr,\@lowpenalty,\@medpenalty,\maxdimen,\tabu@,\tabu@@,\tabu@l@@d@rs}
% \DoNotIndex{\box,\author,\advance,\multiply,\Command,\outer,\next,\leavevmode,\kern,\title,\toks@,\trcg@where,\tt,\tabu@msgalign@PT,\toks}
% \DoNotIndex{\the,\width,\star,\space,\section,\subsection,\textasteriskcentered,\textwidth,\stform}
% \DoNotIndex{\",\:,\@empty,\@for,\@gtempa,\@latex@error,\@namedef,\@nameuse,\@tempa,\@testopt,\@width,\\,\m@ne,\makeatletter,\makeatother}
% \DoNotIndex{\maketitle,\parindent,\x,\kernel@ifnextchar}
% \DoNotIndex{\DefineShortVerb,\DeleteShortVerb,\UndefineShortVerb,\MakeShortVerb,\endinput,\@eha,\@ehd,\@nil,\@nnil,\@ifundefined,\@ifpackagelater,\@ifpackageloaded}
% \DoNotIndex{\p@,\tracingtabu,\@ne,\tw@,\m@ne,\thr@@,\z@skip}
% \makeatletter
% \newrobustcmd\ClearPage{\@ifstar\clearpage{}}
% \providecommand\lsstyle{}
% \newcommand\TabU {\texorpdfstring \T@bU {tabu }}
% \newrobustcmd*\T@bU[1][\pkgcolor]{\quitvmode\hbox{{#1{\larger[3]\usefont{U}{eur}mn\char"1C}$_\aleph \mkern.1666mu b\,$\rotatebox[origin=c]{-90}{\sf\smaller U}}}\xspaceverb}
% \newrobustcmd*\TABU[1][\pkgcolor]{\quitvmode\hbox{{#1{\larger[8]\usefont{U}{eur}mn\char"1C}$_\aleph \mkern.1666mu b\,$\rotatebox[origin=c]{-90}{\sf\smaller U}}}\xspaceverb}
% \colorlet{reflink}{CornflowerBlue!40!Indigo}
% \colorlet{pkgcolor}{reflink}
% \colorlet{refurl}{CornflowerBlue}
% \def\pkgcolor{\texorpdfstring{\color{pkgcolor}}{}}
% \catcode`\§ \active \def§{\@ifnextchar §{\par\nobreak\vskip-2\parskip}{\par\nobreak\vskip-\parskip}}
% \def\thispackage{\xpackage{{\TabU}}\Xspace}
% \def\Xpackage#1{\href{http://www.ctan.org/tex-archive/help/Catalogue/entries/#1.html}{\xpackage{#1}}}
% \def\Underbrace#1_#2{$\underbrace{\vtop to2ex{}\hbox{#1}}_{\footnotesize\hbox{#2}}$}
%\def\FV@DefineCommandChars #1#2#3{%
% \edef\FV@restoreCommandChars{%
% \catcode`#1\the\catcode`#1\relax
% \catcode`#2\the\catcode`#2\relax
% \catcode`#3\the\catcode`#3\relax}%
% \def \FV@CommandChars {\catcode `#1=0\relax \catcode `#2=1\relax \catcode `#3=2\relax }%
% \output\expandafter{\expandafter\FV@restoreCommandChars\the\output}%
%}
% \parindent\z@\parskip.4\baselineskip\topsep\parskip\partopsep\z@\leftmargini=2.5cm
% \widowpenalty=5000\clubpenalty=8000
% \newrobustcmd*\macrocodecolor{\color{macrocode}}\definecolor{macrocode}{rgb}{0.07,0.03,0.10}
% \def\macro@font{\def\Cr@scale{.87}\changefont{fam=pcrs,siz=10pt,ser=m,color=macrocode,spread=1}\let\AltMacroFont\macro@font}
% \def\MacroFont{\changefont{fam=pcrs,siz=10pt,ser=b,color=macrocode}}
% \def\texorpdf#1#2{\texorpdfstring{#1{#2}}{#2}}
% \let\ltxthinspace\, \def\,{\texorpdfstring\ltxthinspace{}}
% \def\textitbf#1{\textbf{\itshape#1}}\let\textbfit\textitbf
% \DefineVerbatimEnvironment{VerbLines}{Verbatim}{frame=lines,framesep=6pt,fontfamily=\ttdefault,fontseries=m}
% \DefineVerbatimEnvironment{VerbLines*}{Verbatim}{frame=lines,framesep=6pt,fontfamily=\ttdefault,fontseries=m,commandchars=$()}
% \DefineVerbatimEnvironment{Verbat}{Verbatim}{fontfamily=\ttdefault,fontseries=m}
% \DefineVerbatimEnvironment{Verb*}{Verbatim}{fontfamily=\ttdefault,fontseries=m,commandchars=$()}
% \renewrobustcmd*\mathversion[1]{^^A
% \expandafter\ifx\csname mv@#1\endcsname\relax
% \@latex@error{Math version `#1' is not defined}\@eha
% \else \edef\math@version{#1}\gdef\glb@currsize{}\aftergroup\glb@settings
% \ifmmode \check@mathfonts \fi
% \fi
% }
% \newcommand*\ifcurrentenvir[1]{\expandafter\ifx\csname\@currenvir\expandafter\endcsname\csname#1\endcsname
% \expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi}
% \newcommand*\currentenvirname{\@currenvir}
% \newrobustcmd*\OR{{\,\upshape\texttbf\textbar\,}}
% \newrobustcmd*\CheckOK{{\scriptsize\textcolor{ForestGreen}\CheckmarkBold}}
% \newrobustcmd*\CheckFAIL{{\scriptsize\textcolor{Crimson}\XSolidBrush}}
% \newcommand\tikzlabel[2][]{\tikz[{remember picture,#1}]\coordinate ({#2});\ignorespaces}
% \tabuDisableCommands{\let\tikzlabel \@gobble}
% \newlist{itempunct}{itemize}{1}
% \setlist[itempunct]{nolistsep,font=\smaller,leftmargin=1.7em,label=\textbullet}
% \def\smex{\leavevmode\hb@xt@2em{\hfil$\longrightarrow$\hfil}}
% \def\ttdefault{lmvtt}
% \renewrobustcmd\#[1]{{\usefont{T1}{pcr}{bx}{n}\char`\##1}}
% \newrobustcmd*\grabcs{\leavevmode\hbox\bgroup\bgroup\makeatletter\aftergroup\endgrabcs}
% \def\endgrabcs{\egroup\xspaceverb}
% \renewrobustcmd*\cs{\grabcs\cs@}
% \newrobustcmd\cs@[2][]{\begingroup\escapechar\m@ne\def\x ##1{\endgroup\tabu@maybehyperlink{##1}{\texttt{#1{\@backslashchar##1}}}}\expandafter\x\expandafter{\string#2}\egroup}
% \newcommand*\cs@pdf[1]{\@backslashchar\if\@backslashchar\string#1 \else\string#1\fi}
% \newrobustcmd*\csbf{\cs[\textbf]}
% \newrobustcmd*\csref[2][]{{\escapechar\m@ne\edef\my@tempa{\string#2}\edef\x ##1{\noexpand\hyperref{}{declcs}{\my@tempa}{\noexpand\cs[{##1}]{\my@tempa}}}\expandafter}\x{#1}}
% \newcommand\env{\texorpdfstring \env@ \env@pdf}
% \newcommand*\env@pdf[1]{#1}
% \newrobustcmd*\env@{\@ifstar {\env@starsw[environment]}{\env@starsw[]}}
% \new\def\env@starsw[#1]#2{\textt{#2}\ifblank{#1}{}{ #1}\Xspace}
% \newrobustcmd*\tabu@maybehyperlink [2]{\ifcsname tabu@declcs.\detokenize{#1}\endcsname \hyperref{}{declcs}{#1}{#2}\else #2\fi}
% \csundef{[email protected]}
% \newcommand\textttbf[1]{\texorpdf\textbf{\textt{#1}}}
% \newrobustcmd*\blue{\color{blue}}\newcommand*\red{\color{dr}}\newcommand*\green{\color{green}}\newcommand\rred{\color{red}}
% \newrobustcmd*\FC[1][\color{copper}]{{#1\usefont{T1}{fts}xn FC}}
% \definecolor{copper}{rgb}{0.67,0.33,0.00} \newcommand\copper{\color{copper}}
% \definecolor{dg}{rgb}{0.02,0.29,0.00} \newcommand\dg{\color{dg}}
% \definecolor{db}{rgb}{0,0,0.502} \newcommand\db{\color{db}}
% \definecolor{dr}{rgb}{0.75,0.00,0.00} \let\dr\red
% \definecolor{lk}{rgb}{0.25,0.25,0.25} \newrobustcmd\lk{\color{lk}}
% \definecolor{llk}{rgb}{0.40,0.40,0.40}
% \newrobustcmd\bk{\color{black}}\newcommand\md{\mdseries}
% \newrobustcmd\ie{\emph{ie.}}
% \newcommand\textt[1]{\texorpdf\texttt{#1}}
% \newcommand\texttbf[1]{\texorpdf\textbf{\textt{#1}}}
% \newcommand\cellstrut{}\let\cellstrut\bottopstrut
% \newrobustcmd\etc{{\bk\emph{etc.}}}
% \def\M{\@ifstar{\M@i\@firstofone}{\M@i\meta}}
% \def\M@i#1{\@ifnextchar[\M@square
% {\ifx (\@let@token^^A)
% \expandafter\M@paren
% \else\ifx |\@let@token
% \expandafter\expandafter\expandafter\M@bar
% \else \expandafter\expandafter\expandafter\M@brace
% \fi\fi#1}}
% \def\M@square #1[#2]{\M@Bracket[{#1{#2}}]}
% \def\M@paren #1(#2){\M@Bracket({#1{#2}})}
% \def\M@bar #1|#2|{\M@Bracket\textbar{#1{#2}}\textbar}
% \def\M@brace #1#2{\M@Bracket\{{#1{#2}}\}}
% \def\M@Bracket#1#2#3{{\ttfamily#1#2#3}}
% \newrobustcmd*\thisyear{\begingroup
% \def\thisyear##1/##2\@nil{\endgroup
% \oldstylenums{\ifnum##1=2010\else 2010\,\textendash\,\fi ##1}^^A
% }\expandafter\thisyear\thisdate\@nil
% }
%
% \newrobustcmd*\csanchor[2][]{^^A
% \immediate\write\@mainaux{\csgdef{tabu@declcs.\string\detokenize{#2}}{}}^^A
% \raisedhyperdef[14pt]{declcs}{#2}{\cs[{#1}]{#2}}^^A
% }
% \renewrobustcmd\declcs[2][]{^^A
% \if@nobreak \par\nobreak
% \else \par\addvspace\parskip
% \Needspace{.08\textheight}\fi
% \changefont{size+=2.5pt,spread=1,fam=\ttdefault}^^A
% \def\*{\unskip\,\texttt{*}}\noindent
% \hskip-\leftmargini
% \begin{tabu}{|l|}\hline
% \expandafter\SpecialUsageIndex\csname #2\endcsname
% \csanchor[{#1}]{#2}}
% \renewcommand\enddeclcs{%
% \crcr \hline \end{tabu}\nobreak
% \par \nobreak \noindent
% \ignorespacesafterend
% }
% \def\declmargin{\hspace*\declmarginwidth }
% \def\declmarginwidth{\dimexpr -\leftmargini +\arrayrulewidth +\tabcolsep\relax}
% \pretocmd\textasteriskcentered{\usefont{OMS}{cmsy}mn}{}{}
% \newsavebox\tempbox
%
% \bookmarksetup{open=true,openlevel=2}
% \pagesetup{%
% head/rule/width=.0pt,
% left/offset=3cm,foot/left/offset+=.5cm,right/offset=1cm,
% head/font=\scriptsize,
% head/color=LightSteelBlue,
% head/left=\moveleft1cm\vbox to\z@{\vss\setbox0=\null\ht0=\z@\wd0=\paperwidth\dp0=\headheight\rlap{\colorbox{GhostWhite}{\box0}}}\vskip-\headheight\thispackage,
% head/right=Flexible \LaTeX{} tabulars,
% foot/font=\lk\scriptsize,
% foot/left=\vbox to\baselineskip{\vss{{\rotatebox[origin=l]{90}{\thispackage\,[rev.\thisversion\ release]\,\copyright\,\thisyear\,\lower.4ex\hbox{\pkgcolor\NibRight}\,\FC}}}},
% foot/right=\oldstylenums{\arabic{page}} / \oldstylenums{\pageref{LastPage}}%
% }
% \pagesetup[plain]{%
% norules,font=\scriptsize,
% foot/right=\oldstylenums{\arabic{page}} / \oldstylenums{\pageref{LastPage}},
% left/offset=3cm,foot/left/offset+=.5cm,right/offset=1cm,
% foot/left=\vbox to\baselineskip{\vss{{\rotatebox[origin=l]{90}{\thispackage\,[rev.\thisversion\ release]\,\copyright\,\thisyear\,\lower.4ex\hbox{\pkgcolor\NibRight}\,\FC\quad \xemail{florent.chervet at free.fr}}}}},
% }
% \pagestyle{fancy}
% \bottomtitles=.15\textheight
% \sectionformat\section{
% mark=\marksthe{section}{#1},
% left=\declmarginwidth,
% top=\medskipamount,
% bottom=\smallskipamount,
% font=\normalfont\LARGE\bfseries,
% bookmark={bold,color=[rgb]{0.02,0.05,.2}},
% break=\goodbreak}
% \sectionformat\subsection{%
% top=\medskipamount,
% bottom=.5\smallskipamount,
% left=.5\declmarginwidth,
% bookmark={color=[rgb]{0.02,0.05,.1}},
% font=\normalfont\Large\bfseries,
% break=\addpenalty{-\@highpenalty}}
% \sectionformat\subsubsection{
% bookmark={italic=false,color=lk},
% font=\normalfont\large\bfseries\lk,
% label=,
% top=\medskipamount,
% bottom=.5\smallskipamount,
% break=\addpenalty{-\@medpenalty}}
% \setitemize{itemsep=\parskip,topsep=0pt,labelsep=1em,parsep=0pt,beginpenalty=10000}
% \tikzset{every picture/.add style={}{/utils/exec=\changefont{spread=1}}}
% \newrobustcmd*\IMPLEMENTATION{%
% ^^A\geometry{top=0pt,includeheadfoot,headheight=.6cm,headsep=.6cm,bottom=.6cm,footskip=.5cm,left=4cm,right=1.5cm}
% \newgeometry{top=0.8cm,headheight=.5cm,headsep=.3cm,bottom=1.2cm,footskip=.5cm,left=35mm,right=3mm}
% \pagesetup*{
% left/offset-=5mm,right/offset-=12mm,
% head/left=\moveleft1cm\vbox to\z@{\vss\setbox0=\null\ht0=\z@\wd0=\paperwidth\dp0=\headheight\rlap{\colorbox{GhostWhite}{\box0}}}\vskip-\headheight \TabU\ \ T\,e\,c\,n\,i\,c\,a\,l\ \, n\,o\,t\,i\,c\,e \ \, a\,n\,d \ \, i\,m\,p\,l\,e\,m\,e\,n\,t\,a\,t\,i\,o\,n,
% }%
% \clearpage
% \tocsetup{depth-=1}
% \addtocontents{toc}{\tocsetup{subsection/font+=\string\smaller,subsection/skip=-2pt plus2pt minus2pt}}
% \sectionformat\section{bookmark/color=black}\sectionformat\subsection{bookmark/color=black}
% \bookmarksetup{bold*,openlevel=3} \hfuzz=3mm
% \section(Technical notice and Implementation)[\mdseries\scshape\pmb{Technical notice and Implementation}]{\textlarger{Technical notice and Implementation}}\label{implementation}}
% \let\plainllap\llap
% \newrobustcmd\macro@llap[1]{{\global\let\llap\plainllap
% \setbox0=\hbox\bgroup \raisedhyperdef{macro}{\saved@macroname}{#1}\egroup
% \ifdim\wd0>32mm
% \hbox to\z@ \bgroup\hss \hbox to32mm{\unhcopy0\hss}\egroup
% \edef\@tempa{\hskip\dimexpr\the\wd0-32mm}\global\everypar\expandafter{\the\expandafter\everypar
% \@tempa \global\everypar{}}^^A
% \else \llap{\unhbox0}\fi}}
% \AtBeginEnvironment{macro}{\if@nobreak\else\Needspace{2\baselineskip}\fi
% \MacrocodeTopsep\z@skip \MacroTopsep\z@skip \parsep\z@ \topsep\z@ \itemsep\z@ \partopsep\z@
% \let\llap\macro@llap}
% \AtEndEnvironment{macro}{\goodbreak \vskip.3\parskip}
% \newrobustcmd*\stform{\ifincsname\else \expandafter\@stform \fi}
% \newrobustcmd*\@stform{\@ifnextchar*{\@@stform[]\textasteriskcentered\@gobble}\@@stform }
% \newrobustcmd*\@@stform[2][\string]{\textttbf{#1#2}\xspaceverb }
% \newrobustcmd*\xspaceverb{\ifnum\catcode`\ =\active\else \expandafter\xspace \fi}
% \new\let\Xspace \xspaceverb
%
% \makeatother
%
% \deffootnote{1em}{0pt}{\rlap{\textsuperscript{\thefootnotemark}}\kern1em}
%
% \newtabulinestyle{ a =.7pt on 3pt Crimson off4pt yellow,
% b =.7pt on 3pt LawnGreen off3pt,
% c =1.4pt on 3pt DarkSlateBlue off3pt,
% test =1pt blue,
% testdash =.7pt on1.2pt off 2pt blue,
% }
% \def\dash{\hbox{$\scriptscriptstyle\cdotp$}}
%
% \AtBeginShipoutNext{\AtBeginShipoutUpperLeft{%
% \tikz[remember picture,overlay]{
% \coordinate (upper west) at (current page.north west);
% \coordinate (upper east) at (current page.north east);
% \node at ($(upper west)+(3cm,-4.5cm)$) [anchor=north west,rotate=30] {{\tabulinestyle{a}\tabulinesep=5pt \mathversion{bold}\color{teal}
% \begin{tabu}to 5cm{*4{|>{\smaller}X[c$]}|} \tabucline[c]-
% \multicolumn1{|c}{1} & \multicolumn1c{2} & \multicolumn1c{3} & 4 \\ \tabucline[c]-
% \multicolumn1{|c}{5} & \multicolumn1c{6} & 7 \\ \tabucline[c]{-3}
% \multicolumn1{|c}{8} & 9 \\ \tabucline[c]{-2}
% 10 \\ \tabucline[c]{-1}
% \end{tabu}}};
% \node at ($(upper east)+(-.5cm,-4cm)$) [anchor=north east,rotate=-35] {{
% \tabulinestyle{a}
% \tabulinesep=5pt \mathversion{bold}
% \begin{tabu}to 5cm{|*4{>{\smaller\pkgcolor}X[$mc]}|} \tabucline[b]{4-}
% \multicolumn3{c|}{} & \alpha \\ \tabucline[b]{3-}
% \multicolumn2{c|}{} & \beta & \gamma \\ \tabucline[b]{2-}
% \multicolumn1{c|}{} & \delta & \epsilon & \zeta \\ \tabucline[b]{-}
% \eta & \theta & \iota & \kappa \\ \tabucline[b]-
% \end{tabu}}};
% }}}
% \title{\vspace*{-28pt}\href{http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/tabu.html}{\scalebox{2}{\TABU[]}}\Footnotemark{\textsuperscript*}\vspace*{6pt}}
% \date{}
% \author{\small\thisdate~--~\hyperref[\thisversion]{version \thisversion\ release}}
% \subtitle{\begin{tabu}{X[c]}\Large tabu\, and\, longtabu \\[1ex] \LARGE Flexible \LaTeX{} tabulars\\ \small\FC \end{tabu}\vspace*{-12pt}}
%
% \maketitle
%
% {\makeatletter
% \Footnotetext{*}{\noindent\parskip=0pt\scriptsize
% This documentation is produced with the \textt{DocStrip} utility, and required \thispackage
% with its \hyperref[subsec:linegoal package option]{\textt{linegoal}} option.\par
% \begin{tabu} {X[-3]X[-1]X}
% \smex To get the package, &run: &\textt{etex \thisfile.dtx} \\
% \smex To get the documentation &run (thrice): &\textt{pdflatex \thisfile.dtx} \\
% \leavevmode\hphantom\smex To get the index, &run: &\textt{makeindex -s gind.ist \thisfile.idx}
% \end{tabu}§
% The \xext{dtx} file is embedded into this pdf file thank to \Xpackage{embedfile} by H. Oberdiek.}
% }
%
% \deffootnote{1em}{0pt}{\rlap{\thefootnotemark.}\kern1em}
%
% {\let\quotation\relax\let\endquotation\relax\vspace*{-1cm}%
% \begin{abstract}\parskip\smallskipamount\parindent0pt\lastlinefit0\leftskip.2cm\rightskip\leftskip
%
% This package defines a single environment \env{tabu} to make all kinds of tabulars
% in text or in math mode provided that they do not split across pages.
%
% An environment \env{longtabu} -- based on D. Carlisle \Xpackage{longtable} package --
% is also provided to make tabulars that can stretch out on several pages, while keeping
% some features (not all of them) of the \env*{tabu}.
%
% \env{tabu} is more flexible that \env{tabular}, \env{tabular*}, \env{tabularx}
% and \env{array} and extends the possibilities. All tabulars in this document were made
% with the \env*{tabu}, \emph{of course}... The implementation is optimised to minimise the
% measurements required to put all together.
%
% \TabU likes colors too, with special lines that are able to keep the alignment of the surrounded
% text... and also like numbers with the possibility to embed \Xpackage{siunitx} \textt S (or \textt s)
% columns.
% \TabU does not modify any of the macro defined by \xfile{array.sty} or in the \LaTeX{}
% kernel\footnote{Inside the \env*{tabu} a few macros are modified... this was compulsory !}.
% \medskip
%
% \TabU requires \eTeX{} and the standard package \xfile{array.sty}. Natural widths of columns
% are computed (but not printed ) by the code of \Xpackage{varwidth} by D. Arseneau.
% Finally \env{longtabu} is based on \Xpackage{longtable}.
%
% \end{abstract}}
%
% \makeatletter \enlargethispage\baselineskip
% \tocsetup{
% depth=3,
% dot=$\scriptscriptstyle\ldotp$,
% dotsep=1mu,
% title/top=8pt plus2pt minus4pt,
% title/bottom=6pt,
% title=Contents\quad\leaders\vrule height3.1pt depth-3pt\hfill\null,
% bookmark={text=Contents,bold},
% after=\leavevmode\hrule height3.1pt depth-3pt,
% twocolumns=false,
% section/skip=4pt plus2pt minus2pt,
% section/leaders=\leaders\hbox{$\m@th\mkern1mu\hbox{$\mathbf\ldotp$}\mkern1mu$}\hfill,
% section/dotsep,
% subsection/skip=0pt plus2pt minus 2pt,
% subsection/numwidth+=5pt,
% subsubsection/font=\slshape,
% subsubsection/pagenumbers=off,
% subsubsection/skip-=1pt,subsubsection/numwidth-=4pt,
% }\makeatother
%
% {%
% \hypersetup{linkcolor=black}
% \tableofcontents
% }
%
% \begingroup
% ^^A\geometry{top=0pt,includeheadfoot,headheight=.6cm,headsep=.6cm,bottom=.6cm,footskip=.5cm,left=4cm,right=1.5cm}
% \newgeometry{top=0pt,includeheadfoot,headheight=.6cm,headsep=.6cm,bottom=.6cm,footskip=.5cm,left=1.5cm,right=1cm}
% \pagesetup*{left/offset-=2.5cm,right/offset-=.5cm}
%
% \changefont{spread*=1.1}
% \phantomsection \label{Summary}
% \addcontentsline{toc}{section}{\protect\textcolor{FireBrick}{Summary of the features provided by \TabU}} ^^A\textt{\pkgcolor t\,a\,b\,u}}}
% \def\arraystretch{1}\vspace*{-9mm}
% \tabcolsep=3pt \tabulinesep=.5mm
% \begin{longtabu}{>{\ttfamily\bfseries}X[-1]X} \toprule
% \rowfont{\larger\bfseries\lsstyle}
% \multicolumn2c{Summary of the features provided by \thispackage}
% \\ \tabucline[\dash]- \endhead
% \hyperref[tabu.sec]{tabu} &
% is like \textt{tabular} in text mode and like \textt{array} \hyperref[math mode.sec]{in math mode} when there is no
% \textt X column in its preamble
% \\
% \hyperref[longtabu.sec]{longtabu} &
% is like \textt{longtable} with the possibility to use \textt{tabu X} columns and vertical lines
% with the extended syntax.
% \\
% \hyperref[tabu.sec]{\M*{tabu} to \meta{dimen}} &
% specifies the target width of the whole tabular. This is like \textt{tabular\textasteriskcentered}\,
% with an automatic stretchability that can be overwritten with \textt{@\M*{\cs\extracolsep\M*{dimen}}}
% in front of the preamble.
% \\
% \hyperref[longtabu.sec]{\M*{tabu} spread \meta{dimen}} &
% has no equivalent in \LaTeX: the final width is \meta{dimen} wider than the
% natural width that can be obtained with \textt{spread 0pt}.
% \\ \tabucline[\dash]-
% \hyperref[Vertical lines]{\texttbf\textbar[width,color]} &
% vertical lines have an optional parameter.
% \\ \tabucline[\dash]-
% \hyperref[tabu X columns]{X[coef,align,type]} \par
% \refitem{tabu X columns,3}[{X[coef,align,type,\$]}] &
% \textt X columns widths are adjusted in order for the whole tabular to fit the
% target width. The target width is a dimension either:
% \begin{itempunct}[label=\ding{223}]
% \item directly specified with \textt{\M*{tabu} to\meta{dimen}}
% \item computed from the natural width: \textt{\M*{tabu} spread\meta{dimen}}
% \item by default \cs\linewidth (or \cs\linegoal with the \hyperref[subsec:linegoal package option]{\textt{linegoal} package option}).
% \end{itempunct}
% \textt{coef} scales the widths of the \textt X columns, if there are more than one \textt X column. \par
% \textt{align} is either \textt r, \textt c, \textt l\, or\, \textt j\, (or \hyperref{}{declcs}{rowfont}{\textt{R C L J}})
% and \textt{type}\, can be \textt p (default), \textt m\, or\, \textt b.\par
% \textt{X[\$]}\, makes a math \textt X column (\ie \, \textt{>\M*{\$}X<\M*{\$}})\par
% \textt{X[\$\$}] display math \textt X column: \textt{>\M*{\$\cs\displaystyle}X<\M*{\$}}
% \\
% \refitem{tabu X columns,2}[{X[$-$coef,align,type]}] &
% \textt X columns widths are first computed with the absolute value: $\mathversion{bold}\abs{\textt{coef}}$.
% Then the width is made narrower down to the natural width of the column if possible.\par
% In any case, the final width does not exceed the one obtained with \textt{X$\mathversion{bold}\left[\abs{\textt{coef}}\right]$}.
% \\
% \hyperref[subsec:embedding siunitx S columns]{\textt{X\M*[X options]\M*{S\M*[S options]}}} &
% Embed a \Xpackage{siunitx} \textt S column into a \env{tabu}-\textt X column.
% \\ \tabucline[\dash]-
% \cs\everyrow\M*{code} & Allows to add horizontal lines automatically for every row.\par
% The settings can be changed inside the \textt{tabu}
% \\ \tabucline[\dash]-
% \cs\rowfont\M*[align]\M*{font spec} &
% Modify the font and optionally the alignment of each cell in one row.
% \\ \tabucline[\dash]-
% \cs\tabulinesep$=$\meta{dimen} &
% More control on vertical spacing of lines in a way very close to \Xpackage{cellspace}'s method (dynamic vertical spacing adjustment).
% \\
% \cs\extrarowsep$=$\meta{dimen} &
% Control vertical spacing (\cs\extrarowheight and \cs\extrarowdepth): fixed vertical spacing adjustment.\par
% \cs\tabulinesep generally gives better results.
% \\ \tabucline[\dash]-
% \cs\tabudecimal\M*{\cs\usermacro} & a help to align numbers easily inside a column.
% \\ \tabucline[\dash]-
% \cs\savetabu\M*{user-name} &
% Saves the \textt{tabu} preamble and its parameters.
% The command must appear at the end of a line.
% \\
% \cs\usetabu\M*{user-name} &
% Makes a \textt{tabu} of exactly the same shape as the one saved with \cs\savetabu.
% All parameters (\textt{target}, \textt{preamble}, \textt{stretch} \etc) are restored.\par
% This command is put alone in the preamble in place of the columns specifications.
% \\
% \cs\preamble\M*{user-name} &
% Makes a \textt{tabu} with the same preamble as the one saved with \cs\savetabu.
% The only \textt{preamble} is restored, not the \textt{target} nor any other parameter.\par
% This command is put alone in the preamble in place of the columns specifications.
% \\ \tabucline[\dash]-
% \cs\tabulinestyle\M*{line spec} & Sets the current line style to be used for \texttbf\textbar\, and \cs\tabucline
% \\
% \cs\newtabulinestyle\M*{name=spec,...} & Defines a line style for use with \cs\tabucline\M*[name] or with \texttbf\textbar\M*[name]
% \\
% \cs\tabucline\M*[spec]\M*{start-stop} & Draws a line comparable to \cs\hline. The line \meta{spec} can contain
% information for making a dash or dotted line (f.ex. \M*[on 3pt off 6pt]) and a color name.\par
% The line spec can also be defined with \cs\newtabulinestyle
% \\ \tabucline[\dash]-
% \cs\taburulecolor\M*|dbl rule sep|\M*{rule color} & sets the color for rules (\cs\hline, \cs\firsthline ...)
% \\ \tabucline[\dash]-
% \cs\taburowcolors\M*[skip]\meta{number}\M*{first .. last} & Sets the color series to make alternate background colors for rows
% \\ \tabucline[\dash]-
% \cs\tabuphantomline & inserts a phantom (\ie invisible) line inside the \textt{tabu}\par
% May be usefull with \cs\multicolumn in some cases.
% \\ \tabucline[\dash]-
% \cs\tracingtabu$=0, 1, 2, 3, 4$
% &
% Reports informations in the \xext{log} file about the steps of the algorithm for \textt{tabu X} columns,
% and the informations saved by \cs\savetabu.
% \\ \bottomrule
% \end{longtabu}
%
% \clearpage \endgroup
%
%
% \section{Examples and counterexamples}
%
% {\tabulinestyle{2pt on 3pt pkgcolor off4pt yellow!50}\tabulinesep=1mm
% \declmargin\begin{tabu}to\dimexpr\linewidth-\declmarginwidth{|X[c]|}\tabucline-
% \indent\bfseries\larger\lk Let's begin in colors ! \\ \tabucline-
% \end{tabu}
% }
%
% \TabU provides facilities to put horizontal and vertical leaders in a tabular. The package \Xpackage{xcolor}
% must be loaded of course. Background colors for cells are left to package \Xpackage{colortbl} which is fully
% compatible with \TabU.
%
% \subsection{``Locally global'' settings and their scopes}
%
% \TabU \marginnote{\llap{\begin{tabu}{r}\cs\tabulinestyle \\ \cs\taburulecolor \\ \cs\taburowcolors \\ \cs\everyrow \end{tabu}}}
% observes \TeX{} grouping levels for the settings of rule colors (\cs\taburulecolor) and styles (\cs\tabulinestyle),
% and \cs\everyrow. There is however a subtility for nested \env{tabu} environments as described in this example:
%
% {\smaller
% \begin{lstlisting}[caption={Locally global settings and their scopes}]
% \taburulecolor |gray!50|{red} \arrayrulewidth=1pt
% {
% \taburulecolor |yellow|{blue}
% \begin{tabu}{|X|X|} \hline
% Here the lines & are drawn in blue \\ \taburulecolor{green} \hline
% But starting from here & they are green coloured ! \\ \hline
% And now a nested tabu & \begin{tabu}{X} \firsthline\hline
% guess what colour \\ \hline
% is used for rules ?\\ \lasthline\hline
% \end{tabu} \\ \hline
% \end{tabu}
% % Inside the group, rule colors are blue
% }
% % After the group, rule colors are red again !
% \begin{tabu}{X}\hline\hline\indent\end{tabu}
% \end{lstlisting}}
%
%
% {\taburulecolor |gray!50|{red}\tracingtabu=0 \arrayrulewidth=1pt
% {
% \taburulecolor|yellow|{blue}\tabulinesep=1mm
% \begin{tabu}{|X|X|} \hline
% \tikzlabel{start}
% Here the lines & are drawn in blue \\ \taburulecolor{green} \hline
% But starting from here & they are green coloured ! \\ \hline
% \tikzlabel{nested}
% And now a nested \env{tabu} & \extrarowsep=2mm\begin{tabu}{|X|} \firsthline\hline
% guess what colour \\ \hline
% \tikzlabel{inner} is used for rules ?\\ \lasthline\hline
% \end{tabu} \\ \hline
% \end{tabu}
% % Inside the group, rule colors are blue
% }
% % After the group, rule colors are red again !
% \begin{tabu}{X}\hline\hline\indent\end{tabu}
% }
% \tikz[remember picture,overlay]{
% \draw [->] ([xshift=-1cm]start) -- ([xshift=-\tabcolsep]start);
% \node at ([xshift=-1cm]start) [anchor=east,font=\smaller] {\begin{tabu}{c} Color of the \\ \TeX{} group\end{tabu}};
% \draw [->,yshift=4mm] ([xshift=-1cm]nested) -- ([xshift=-\tabcolsep]nested);
% \node at ([xshift=-1cm]nested) [anchor=east,font=\smaller] {\begin{tabu}{c} Color of the last \\ end-of-line setting\end{tabu}};
% \coordinate (A) at ([xshift=-1cm]nested);
% \coordinate (B) at (A |- inner);
% \draw [->] (B) -- ([xshift=-\tabcolsep]inner);
% \node at (B) [anchor=east,font=\smaller]{\begin{tabu}{c} Color of the\\ \TeX{} group\end{tabu}};
% }
% The ``rules'' are the following:
%
% \begin{itemize}[leftmargin=*]
% \item If outside of a \env*{tabu}, the settings are local to the \TeX{} group. Every tabular drawn inside this group
% will inherit from the settings of that group.
% \item If \cs\taburulecolor (or \cs\everyrow or \cs\tabulinestyle) is used inside a cell of the tabular, this is the same:
% the settings a local to that cell, and any nested tabular will inherit from the setting of that cell.
% \item When used after the end of a row, the settings are globally changed from that point until the end of the tabular,
% or until a new setting is set at the end of a further row (\TeX nically, this is done inside a \cs\noalign group).
% But a nested \env{tabu} does not inherit from this ``global'' setting, and inherits from the settings of the \TeX{}
% group instead.
% \end{itemize}
%
% If \cs\arrayrulecolor\, or\, \cs\doublerulesepcolor\, (from package \Xpackage{colortbl}) are used instead
% of\, \cs\taburulecolor\, then colors are globally overwritten.
%
% \clearpage
%
% A counterexample from the \Xpackage{xcolor} package: \cs\rowcolors does not like
% \cs\cline, \cs\cmidrule etc.\footnote{Because color changes are done at \cs\everycr,
% which is not exactly the same as \TabU \cs\everyrow !}
%
% {\smaller
% \setbox\tempbox=\vbox{\linewidth.65\linewidth \hsize\linewidth
% \begin{lstlisting}
% \rowcolors{2}{green!25}{yellow!50}
% \begin{tabular}{cc} \toprule
% \repeatcell2{
% rows=5,
% text/col1=test,
% text/col2=row \number\rownum} \\
% test & other row \number\rownum \\ \cmidrule{1-2}
% test & other row \number\rownum \\
% test & other row \number\rownum \\ \bottomrule
% \end{tabular}
% \end{lstlisting}}
%
% \begin{tabu}{X[2mc]X[1mc]}
% \indent\copy\tempbox
% &
% \rowcolors{2}{green!25}{yellow!50}
% \begin{tabular}{cc} \toprule
% \repeatcell2{
% rows=5,
% text/col1=test,
% text/col2=row \number\rownum} \\
% test & other row \number\rownum \\ \cmidrule{1-2}
% test & other row \number\rownum \tikzlabel{rownum} \\
% test & other row \number\rownum \\ \bottomrule
% \end{tabular}
% \end{tabu}
% }
%
% The \cs\rownum counter is not reliable in the case of \cs\cline or \cs\cmidrule. \tikzlabel{rownumstart}
% \tikz[remember picture,overlay]{
% \draw [->,gray] (rownumstart) -| (rownum);
% }
%
% In addition, the first coloured row is yellow, while one could have expected it green...
%
% For \TabU color changes are called at \cs\everyrow:
%
% {\smaller
% \setbox\tempbox=\vbox{\linewidth.65\linewidth \hsize\linewidth
% \begin{lstlisting}
% \taburowcolors [2] 2{green!25 .. yellow!50}
% \begin{tabu}{*2{X[c]}} \toprule
% \repeatcell2{
% rows=5,
% text/col1=test,
% text/col2=row \thetaburow} \\
% test & other row \thetaburow \\ \cmidrule{1-2}
% test & other row \thetaburow \\
% test & other row \thetaburow \\ \bottomrule
% \end{tabu}
% \end{lstlisting}}
%
% \begin{tabu}{X[2mc]X[mc]}
% \indent\copy\tempbox
% &
% \taburowcolors [2] 2{green!25 .. yellow!50}
% \begin{tabu}spread 0pt {*2{X[-1c]}} \toprule
% \repeatcell2{
% rows=5,
% text/col1=test,
% text/col2=row \thetaburow} \\
% test & other row \thetaburow \\ \cmidrule{1-2}
% test & other row \thetaburow \\
% test & other row \thetaburow \\ \bottomrule
% \end{tabu}
% \end{tabu}
%
% }
%
% \thispackage does not use ``real'' alternate colors but colorseries provided by package \Xpackage{xcolor}.
% This allow some gradations:
%
% \setbox\tempbox=\vbox{\linewidth=.65\linewidth\hsize\linewidth\smaller
% \begin{lstlisting}
% \taburowcolors 5{green!25 .. yellow!50}
% \begin{tabu}{X[-1]X}
% \repeatcell 2{
% rows=10,
% text/col1=test,
% text/col2={Row number
% \row$=$\thetaburow},
% }
% \end{tabu}
% \end{lstlisting}}
%
% {
% \begin{tabu}{X[2mc]X[mc]}
% \indent\copy\tempbox
% &
% \taburowcolors 5{green!25 .. yellow!50}
% \begin{tabu}{X[-1]X}
% \repeatcell 2{
% rows=10,
% text/col1=test,
% text/col2={Row number \row$=$\thetaburow},
% }
% \end{tabu}
% \end{tabu}
% }
%
% \subsection{\textt X column widths computation}
%
% The new algorithm implemented in version \hyperref[\thisversion]\thisversion{} requires only one measure of the width of the table
% in any case. \marginnote{\tikz{\node [inner sep=0pt,outer sep=0pt,rotate=45,fill=yellow!30]
% {\color{FireBrick}\tabcolsep=0pt\begin{tabu}{l} Example provided by \\ M. Manuel Kuehner\end{tabu}};}}
% This speeds up the convergence of the algorithm.
%
% {
% \centering
% {\smaller
% \begin{lstlisting}
% \begin{tabu} to 140mm {|X[1,l] | X[2,c] | X[3,c] | X[1,r]|}
% |\dotfill | & Text & Text & Text \\
% Text & Text & Text & Text
% \end{tabu}
% \end{lstlisting}}
%
% \begin{tabu} to 140mm{|X[1,l] | X[2,c] | X[3,c] | X[1,r]|} \savetabu{X columns widths}
% |\dotfill | &Text &Text &Text \\
% Text &Text &Text &Text
% \end{tabu}
%
% \tabulinestyle{1pt Blue}
% \begin{tabu}to 140mm{\preamble{X columns widths}} \tabucline-
% \rowfont[c]{\smaller}
% 1\textt X$=17.5mm$ & 2\textt X $=35mm$&3\textt X $=52.5mm$ &1\textt X $=17.5mm$ \\ \tabucline-
% \end{tabu}\par
% }
%
% $$X=\left( 140mm - 8\times \cs\tabcolsep - 5\times \cs\arrayrulewidth \right) / 7 = 17.4896mm$$
%
% \Needspace{4\baselineskip}
% \subsection(Verbatim material){Inserting Verbatim material (\xpackage{fancyvrb})}
% \label{Verbatim material.subsec}
%
% Though the content of the \env*{tabu} is collected for measuring purpose, it is possible to insert
% verbatim material with the \env{tabu\stform*} variant of the environment. The content is then carefully
% collected and re-scanned (with \cs\scantokens). During the process, the \texttbf @ letter is read with the category
% code it has been given at the entry inside the environment (it is possible to say \cs\makeatletter before \cs\begin\M*{tabu\stform*}).
%
% Example:
%
% {\makeatletter
% \begin{tabu*}{*2{X[p]}}
% It is possible to insert Verbatim material with some \Verb+\csname+
% \Verb+ control sequences \endcsname+
% inside a \env{tabu} and inside \textt X columns. Negativ coefficients work well too, adjusting
% the width of the \textt X column to the natural width if it is finally less than the width
% computed with the absolute value of the coefficient.\par
% A complete \Verb+Verbatim+ environment is also admissible.\par
% But you must use the star form of the environment: \env{tabu\stform*} which uses \cs\scantokens.
% &
% \begin{Verbatim}[commandchars={$[]},listparameters={\topsep=-\ht\@arstrutbox}]
% Verbatim environments must be put
% alone on their lines (in the input
% file) for nothing is allowed
% after $cs[begin]{Verbatim} or
% $cs[end]{Verbatim}.
% Another point to know is that
% \begin and \end control sequences
% should match otherwise, you must
% enclose the Verbatim environment
% inside braces.
% This is related to the fact that tabu
% collects its body, and looks for
% matching pairs of \begin ... \end !
% \end{Verbatim}
% \end{tabu*}
% }
%
% \env{tabu\stform*} is useless when nested inside another tabular. The star form of the environment should be used
% only for the outermost table ! Comments are removed, unless the \% character is given a category code of 12
% (or 11) before the entry inside the environment.
%
% {\smaller
% \begin{lstlisting}
% \tabulinestyle{on2pt Crimson!60 off3pt yellow!50} \tabulinesep=2mm
% \makeatletter \@makeother\%
% \begin{tabu*}spread 0pt {|X[-1]X|} \tabucline-
% This is a small \Verb+\Verbatim+\par
% insertion
% &
% \begin{Verbatim}[listparameters={\topsep=-\ht\strutbox}]
% And this is a complete % with some comments
% Verbatim environment % every now and then
% \end{Verbatim}
% \\ \tabucline-
% \end{tabu*}
% \end{lstlisting}}
%
% {
% \tabulinestyle{on2pt Crimson!60 off2pt yellow!80} \tabulinesep=2mm
% \makeatletter
% \begin{tabu*} spread 0pt {|X[-1]|X|} \tabucline-
% Here a small \Verb+\Verbatim+\par