From 01ce7a13c2897263e754bb8164c2472bc683d6bf Mon Sep 17 00:00:00 2001 From: "B. Wilson" Date: Mon, 11 May 2020 20:09:31 +0900 Subject: [PATCH 6/7] gnu: Add texlive-tabu. To: guix-patches@gnu.org * gnu/packages/tex.scm (texlive-tabu): New variable. --- gnu/packages/tex.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index 2d290fdb82..f382330773 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -7451,3 +7451,42 @@ The alternative package @code{letterspace}, which also works with plain TeX, provides the user commands for letterspacing only, omitting support for all other extensions.") (license license:lppl1.3c+))) + +(define-public texlive-tabu + (package + (inherit (simple-texlive-package + "texlive-tabu" + (list "/tex/latex/tabu/" + "/doc/latex/tabu/") + (base32 "156lkisyrpvn82ng2kxdlly60ny5vaz4lp9xlc66azy5ma06agvw") + #:trivial? #t)) + (propagated-inputs + `(("texlive-latex-tools" ,texlive-latex-tools) + ("texlive-latex-varwidth" ,texlive-latex-varwidth))) + (home-page "https://www.ctan.org/pkg/tabu") + (synopsis "Flexible LaTeX tabulars") + (description "The package provides an environment, @code{tabu}, which will +make any sort of tabular (that doesn’t need to split across pages), and an +environment @code{longtabu} which provides the facilities of @code{tabu} in a +modified longtable environment. (Note that this latter offers an enhancement +of ltxtable.) + +The package requires the array package, and needs e-TeX to run (since array.sty +is present in every conforming distribution of LaTeX, and since every publicly +available LaTeX format is built using e-TeX, the requirements are provided by +default on any reasonable system). The package also requires xcolor for +coloured rules in tables, and colortbl for coloured cells. The @code{longtabu} +environment further requires that longtable be loaded. The package itself does +not load any of these packages for the user. + +The @code{tabu} environment may be used in place of @code{tabular}, +@code{tabular*} and @code{tabularx} environments, as well as the @code{array} +environment in maths mode. It overloads @code{tabularx}’s X-column +specification, allowing a width specification, alignment (@code{l}, @code{r}, +@code{c} and @code{j}) and column type indication (@code{p}, @code{m} and +@code{b}). + +@code{\begin@{tabu@}} to @code{} specifies a target width, and +@code{\begin@{tabu@}} spread @code{} enlarges the environment’s +natural width.") + (license license:lppl1.3c+))) -- 2.26.2