From: Ulrich Mueller <ulm@gentoo.org>
To: <gentoo-pms@lists.gentoo.org>
Cc: Christian Faulhammer <fauli@gentoo.org>
Subject: [gentoo-pms] [PATCH] Avoid parboxes in tables.
Date: Thu, 20 Jan 2011 21:13:00 +0100 [thread overview]
Message-ID: <19768.38732.78118.378607@a1i15.kph.uni-mainz.de> (raw)
In-Reply-To: <19768.25694.360270.679006@a1i15.kph.uni-mainz.de>
Another problem, TeX4ht doesn't like if a parbox is in a table.
For example, look at table D.1 in the HTML version, which is really
ugly because the columns are much too wide.
Attached patch fixes this (and the PDF output also looks better).
Please review.
Should this be combined with today's other patch, or committed
separately?
Ulrich
---
eapi-differences.tex | 13 +++++++------
ebuild-functions.tex | 14 +++++++-------
pms.cls | 1 +
3 files changed, 15 insertions(+), 13 deletions(-)
diff --git a/eapi-differences.tex b/eapi-differences.tex
index a5c68ba..a451db1 100644
--- a/eapi-differences.tex
+++ b/eapi-differences.tex
@@ -3,7 +3,8 @@
\note This chapter is informative and for convenience only. Refer to the main text for specifics.
\begin{landscape}
-\begin{longtable}{lllllll}
+\newcolumntype{P}[1]{>{\setlength{\rightskip}{0pt plus 1fil}}p{#1}}
+\begin{longtable}{llP{5em}P{5em}P{8em}P{8em}P{8em}}
\caption{Features in EAPIs}\\
\toprule
\multicolumn{1}{c}{\b{Feature}} &
@@ -89,10 +90,10 @@ Use dependencies & \compactfeatureref{use-deps} &
\t{default\_} phase functions & \compactfeatureref{default-phase-funcs} &
None & None &
- \parbox[t]{1in}{\t{pkg\_nofetch}, \t{src\_unpack}, \t{src\_prepare}, \t{src\_configure}, \t{src\_compile}, \t{src\_test}} &
- \parbox[t]{1in}{\t{pkg\_nofetch}, \t{src\_unpack}, \t{src\_prepare}, \t{src\_configure}, \t{src\_compile}, \t{src\_test}} &
- \parbox[t]{1in}{\t{pkg\_nofetch}, \t{src\_unpack}, \t{src\_prepare}, \t{src\_configure},
- \t{src\_compile}, \t{src\_install}, \t{src\_test}} \\
+ \t{pkg\_nofetch}, \t{src\_unpack}, \t{src\_prepare}, \t{src\_configure}, \t{src\_compile}, \t{src\_test} &
+ \t{pkg\_nofetch}, \t{src\_unpack}, \t{src\_prepare}, \t{src\_configure}, \t{src\_compile}, \t{src\_test} &
+ \t{pkg\_nofetch}, \t{src\_unpack}, \t{src\_prepare}, \t{src\_configure},
+ \t{src\_compile}, \t{src\_install}, \t{src\_test} \\
\t{AA} & \compactfeatureref{aa} &
Yes & Yes & Yes & Yes & No \\
@@ -125,7 +126,7 @@ Most utilities die & \compactfeatureref{die-on-failure} &
Yes & Yes & Yes & Yes & Banned \\
\t{econf} arguments & \compactfeatureref{econf-options} &
- & & & & \parbox[t]{1in}{disable dependency tracking} \\
+ & & & & disable dependency tracking \\
\t{dodoc -r} & \compactfeatureref{dodoc} &
No & No & No & No & Yes \\
diff --git a/ebuild-functions.tex b/ebuild-functions.tex
index 36df355..a035fd4 100644
--- a/ebuild-functions.tex
+++ b/ebuild-functions.tex
@@ -405,19 +405,19 @@ when executing any ebuild phase listed in the table. Ebuilds must not call these
when in the phase in question.
\begin{centertable}{EAPIs supporting \t{default\_} phase functions} \label{tab:default-phase-function-table}
- \begin{tabular}{ l l }
+ \begin{tabular}{ l >{\setlength{\rightskip}{0pt plus 1fil}}p{30em} }
\toprule
\multicolumn{1}{c}{\textbf{EAPI}} &
\multicolumn{1}{c}{\textbf{Supports \t{default\_} functions in phases}} \\
\midrule
\t{0} & None \\
\t{1} & None \\
- \t{2} & \parbox[t]{3in}{\t{pkg\_nofetch}, \t{src\_unpack}, \t{src\_prepare}, \t{src\_configure},
- \t{src\_compile}, \t{src\_test}} \\
- \t{3} & \parbox[t]{3in}{\t{pkg\_nofetch}, \t{src\_unpack}, \t{src\_prepare}, \t{src\_configure},
- \t{src\_compile}, \t{src\_test}} \\
- \t{4} & \parbox[t]{3in}{\t{pkg\_nofetch}, \t{src\_unpack}, \t{src\_prepare}, \t{src\_configure},
- \t{src\_compile}, \t{src\_install}, \t{src\_test}} \\
+ \t{2} & \t{pkg\_nofetch}, \t{src\_unpack}, \t{src\_prepare}, \t{src\_configure},
+ \t{src\_compile}, \t{src\_test} \\
+ \t{3} & \t{pkg\_nofetch}, \t{src\_unpack}, \t{src\_prepare}, \t{src\_configure},
+ \t{src\_compile}, \t{src\_test} \\
+ \t{4} & \t{pkg\_nofetch}, \t{src\_unpack}, \t{src\_prepare}, \t{src\_configure},
+ \t{src\_compile}, \t{src\_install}, \t{src\_test} \\
\bottomrule
\end{tabular}
\end{centertable}
diff --git a/pms.cls b/pms.cls
index d96d35e..ff78b1b 100644
--- a/pms.cls
+++ b/pms.cls
@@ -29,6 +29,7 @@
graphicx, % Image support
ifthen, % Comfortable conditional routines
longtable, % Extend tables over more than one page
+ array, % Extended tabular environments
lscape, % Rotating pages
marginnote, % Typeset a paragraph in the page margin
paralist, % Additional list environments
--
1.7.4.rc2
prev parent reply other threads:[~2011-01-20 20:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-20 16:35 [gentoo-pms] [PATCH] Fixups for TeX4ht Ulrich Mueller
2011-01-20 20:13 ` Ulrich Mueller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19768.38732.78118.378607@a1i15.kph.uni-mainz.de \
--to=ulm@gentoo.org \
--cc=fauli@gentoo.org \
--cc=gentoo-pms@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox