From a9d59a2d83b345581f2eb0c6b7f08c091f5622f0 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 29 Dec 2005 00:31:48 +0000 Subject: doc/english/F-ca git-svn-id: svn://tug.org/texlive/trunk@19 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/english/FAQ-en/html/FAQ-fixwidtab.html | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Master/texmf-doc/doc/english/FAQ-en/html/FAQ-fixwidtab.html (limited to 'Master/texmf-doc/doc/english/FAQ-en/html/FAQ-fixwidtab.html') diff --git a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-fixwidtab.html b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-fixwidtab.html new file mode 100644 index 00000000000..7d32ef10711 --- /dev/null +++ b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-fixwidtab.html @@ -0,0 +1,48 @@ + +UK TeX FAQ -- question label fixwidtab + +

Fixed-width tables

+

There are two basic techniques for making fixed-width tables in +LaTeX: you can make the gaps between the columns stretch, or you +can stretch particular cells in the table. +

Basic LaTeX can make the gaps stretch: the tabular* +environment takes an extra argument (before the clpr layout one) +which takes a length specification: you can say things like "15cm" +or "\columnwidth" here. You must also have an \extracolsep +command in the clpr layout argument, inside an @ directive. So, +for example, one might have +

+\begin{tabular*}{\columnwidth}{@{\extracolsep{\fill}}lllr}
+
+ +The \extracolsep applies to all inter-column gaps to its right as +well; if you don't want all gaps stretched, add +\extracolsep{0pt} to cancel the original. +

The tabularx package defines an extra clpr column +specification, X; X columns behave as p columns which expand to +fill the space available. If there's more than one X column in a +table, the spare space is distributed between them. +

The tabulary package (by the same author) provides a way of +"balancing" the space taken by the columns of a table. The package +defines column specifications C, L, R and J, giving, +respectively, centred, left, right and fully-justified versions of +space-sharing columns. The package examines how long each column would +be "naturally" (i.e., on a piece of paper of unlimited width), and +allocates space to each column accordingly. There are "sanity +checks" so that really large entries don't cause everything else to +collapse into nothingness (there's a "maximum width" that any column +can exert), and so that tiny entries can't get smaller than a +specified minimum. Of course, all this work means that the package +has to typeset each row several times, so things that leave +"side-effects" (for example, a counter used to produce a row-number +somewhere) are inevitably unreliable, and should not even be tried. +

The ltxtable combines the features of the +longtable and tabularx packages: it's important to +read the documentation, since usage is distinctly odd. +

+
ltxtable.sty
Distributed as part of macros/latex/contrib/carlisle (gzipped tar, browse) +
tabularx.sty
Distributed as part of macros/latex/required/tools (gzipped tar, browse) +
tabulary.sty
Distributed as part of macros/latex/contrib/carlisle (gzipped tar, browse) +
+

This question on the Web: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=fixwidtab + -- cgit v1.2.3