summaryrefslogtreecommitdiff
path: root/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-fixwidtab.html
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2005-12-29 00:31:48 +0000
committerKarl Berry <karl@freefriends.org>2005-12-29 00:31:48 +0000
commita9d59a2d83b345581f2eb0c6b7f08c091f5622f0 (patch)
tree00fba7fbf3f00c16be8699398c6e4c2a256c68ac /Master/texmf-doc/doc/english/FAQ-en/html/FAQ-fixwidtab.html
parent89caab08d62b22519b44acf582a5fc3d302cbd60 (diff)
doc/english/F-ca
git-svn-id: svn://tug.org/texlive/trunk@19 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-doc/doc/english/FAQ-en/html/FAQ-fixwidtab.html')
-rw-r--r--Master/texmf-doc/doc/english/FAQ-en/html/FAQ-fixwidtab.html48
1 files changed, 48 insertions, 0 deletions
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 @@
+<head>
+<title>UK TeX FAQ -- question label fixwidtab</title>
+</head><body>
+<h3>Fixed-width tables</h3>
+<p>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.
+<p>Basic LaTeX can make the gaps stretch: the <code>tabular*</code>
+environment takes an extra argument (before the <code>clpr</code> layout one)
+which takes a length specification: you can say things like "<code>15cm</code>"
+or "<code>\</code><code>columnwidth</code>" here. You must also have an <code>\</code><code>extracolsep</code>
+command in the <code>clpr</code> layout argument, inside an <code>@</code> directive. So,
+for example, one might have
+<pre>
+\begin{tabular*}{\columnwidth}{@{\extracolsep{\fill}}lllr}
+</pre>
+
+The <code>\</code><code>extracolsep</code> applies to all inter-column gaps to its right as
+well; if you don't want all gaps stretched, add
+<code>\</code><code>extracolsep{0pt}</code> to cancel the original.
+<p>The <i>tabularx</i> package defines an extra <code>clpr</code> column
+specification, <code>X</code>; <code>X</code> columns behave as <code>p</code> columns which expand to
+fill the space available. If there's more than one <code>X</code> column in a
+table, the spare space is distributed between them.
+<p>The <i>tabulary</i> package (by the same author) provides a way of
+"balancing" the space taken by the columns of a table. The package
+defines column specifications <code>C</code>, <code>L</code>, <code>R</code> and <code>J</code>, 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.
+<p>The <i>ltxtable</i> combines the features of the
+<i>longtable</i> and <i>tabularx</i> packages: it's important to
+read the documentation, since usage is distinctly odd.
+<dl>
+<dt><tt><i>ltxtable.sty</i></tt><dd>Distributed as part of <a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/carlisle.zip">macros/latex/contrib/carlisle</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/carlisle.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/carlisle/">browse</a>)
+<dt><tt><i>tabularx.sty</i></tt><dd>Distributed as part of <a href="ftp://cam.ctan.org/tex-archive/macros/latex/required/tools.zip">macros/latex/required/tools</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/required/tools.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/required/tools/">browse</a>)
+<dt><tt><i>tabulary.sty</i></tt><dd>Distributed as part of <a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/carlisle.zip">macros/latex/contrib/carlisle</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/carlisle.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/carlisle/">browse</a>)
+</dl>
+<p><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=fixwidtab">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=fixwidtab</a>
+</body>