Tabu Package Updates - Tabu Package Updates January 12, 2019 The tabu package patches internal commands

  • View
    0

  • Download
    0

Embed Size (px)

Transcript

  • Tabu Package Updates

    January 12, 2019

    The tabu package patches internal commands of many packages and is liable to stop working if those internal interfaces change.

    Unfortunately the original author appears to be out of contact and the package had not been updated for some years.

    This manual documents version 2.8 from 2011, but the distributed package contains fixes reported since that time, see https://github.com/tabu-fixed/tabu

    1

    https://github.com/tabu-fixed/tabu

  • 1 2

    3 4

    5 6

    7

    8 9

    10

    α β

    γ

    δ

    ζ

    η

    θ

    ι

    κ

    τℵb

    U

    *

    tabu and longtabu

    Flexible LATEX tabulars FC

    2011/02/26 – version 2.8 release

    Abstract This package defines a single environment tabu to make all kinds of tabulars in text or in math mode provided that they do not split across pages. An environment longtabu – based on D. Carlisle 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 tabu environment. tabu is more flexible that tabular, tabular*, tabularx and array and extends the possibilities. All tabulars in this document were made with the tabu environment, of course... The implementation is optimised to minimise the measurements required to put all together. τℵb U 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 siunitx S (or s) columns. τℵb U does not modify any of the macro defined by array.sty or in the LATEX kernel1.

    τℵb U requires ε-TEX and the standard package array.sty. Natural widths of columns are computed (but not printed ) by the code of varwidth by D. Arseneau. Finally longtabu is based on longtable.

    Contents Summary of the features provided by τℵb U . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1 Examples and counterexamples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

    1.1 “Locally global” settings and their scopes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.2 X column widths computation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.3 Inserting Verbatim material (fancyvrb) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.4 Maths inside tabu X columns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.5 Embedding sunitx S columns inside X columns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

    2 The tabu environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1 tabu, tabu to and tabu spread . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.2 longtabu, longtabu to and longtabu spread . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.3 tabu X columns – Mastering horizontal space . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

    2.3.1 X columns with “tabu spread” 2.3.2 Negativ width coefficients for X columns 2.3.3 Multicolumn in tabu

    2.4 \tabulinesep and \extrarowsep – Mastering vertical space . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.5 tabu in math mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

    3 Lines leaders and colors inside tabu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3.1 First important remark . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3.2 Vertical lines: | has an optional parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3.3 Multiple \firsthline and \lasthline. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.4 More style for lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.5 Automatic horizontal lines and row colors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

    4 Modifying the font and the alignment in one row: \rowfont . . . . . . . . . . . . . . . . . . . 18 5 Saving and restoring a tabu: \savetabu, \usetabu and \preamble . . . . . . . . . . . . . . 19

    * This documentation is produced with the DocStrip utility, and required τℵb U with its linegoal option. −→To get the package, run: etex tabu.dtx −→To get the documentation run (thrice): pdflatex tabu.dtx

    To get the index, run: makeindex -s gind.ist tabu.idx The .dtx file is embedded into this pdf file thank to embedfile by H. Oberdiek.

    1. Inside the tabu environment a few macros are modified... this was compulsory !τ ℵ

    b

    U

    [r ev .2 .8

    re le as e]

    © 20

    10 –

    20 11 �

    FC < flo

    re nt .c he rv et

    at fr ee .fr >

    1 / 101

    http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/tabu.html http://www.ctan.org/tex-archive/help/Catalogue/entries/longtable.html http://www.ctan.org/tex-archive/help/Catalogue/entries/siunitx.html http://www.ctan.org/tex-archive/help/Catalogue/entries/varwidth.html http://www.ctan.org/tex-archive/help/Catalogue/entries/longtable.html http://www.ctan.org/tex-archive/help/Catalogue/entries/embedfile.html

  • τℵb U Flexible LATEX tabulars

    6 Some other features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 6.1 Printing numbers inside tabu with numprint and siunitx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

    6.1.1 \tabudecimal 6.1.2 You should know how it works...

    6.2 Paragraph indentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 6.3 delarray shortcuts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

    7 Differences between tabu, tabular, tabularx and longtable . . . . . . . . . . . . . . . . . . . . . . 22 7.1 Paragraph indentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 7.2 Custom environments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 7.3 Inversion of tokens. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 7.4 Improved process for rewriting columns (for keen readers) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

    8 The package options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 8.1 The debugshow package option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 8.2 The delarray package option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 8.3 The linegoal package option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

    9 Corrections of some bugs (available only inside tabu) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 9.1 Correction for colortbl and arydshln: compatibility with delarray . . . . . . . . . . . . . . . . . . . . 24 9.2 Correction for arydshln: @ columns. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

    10 To do for even better tabus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 11 Technical notice and ImplementationTechnical notice and ImplementationTechnical notice and Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

    11.1 Drawing a tabular - The τℵb U approach . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 11.2 Algorithms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 11.3 The tabu strategies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 11.4 Identification and Requirem