Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/pms:master commit in: /
Date: Thu, 29 Oct 2015 19:42:49
Message-Id: 1446147647.1a9358d09378ebf75fd5b7342ce736cb3c3aff21.ulm@gentoo
1 commit: 1a9358d09378ebf75fd5b7342ce736cb3c3aff21
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 29 19:40:47 2015 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 29 19:40:47 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=1a9358d0
7
8 pms.cls: Move newcolumntype definition to class.
9
10 eapi-differences.tex | 1 -
11 ebuild-env-vars.tex | 1 -
12 pms.cls | 3 +++
13 3 files changed, 3 insertions(+), 2 deletions(-)
14
15 diff --git a/eapi-differences.tex b/eapi-differences.tex
16 index 04e5f83..3cf311f 100644
17 --- a/eapi-differences.tex
18 +++ b/eapi-differences.tex
19 @@ -4,7 +4,6 @@
20
21 \ChangeWhenAddingAnEAPI{5}
22 \begin{landscape}
23 -\newcolumntype{P}[1]{>{\setlength{\rightskip}{0pt plus 1fil}}p{#1}}
24 \begin{longtable}{llP{5em}P{5em}P{6em}P{6em}P{6em}P{6em}}
25 \caption{Features in EAPIs}\\
26 \toprule
27
28 diff --git a/ebuild-env-vars.tex b/ebuild-env-vars.tex
29 index 0120bfd..4623d52 100644
30 --- a/ebuild-env-vars.tex
31 +++ b/ebuild-env-vars.tex
32 @@ -18,7 +18,6 @@ variable.
33 \addtolength{\marginparsep}{-\textwidth} % FIXME
34 \setlength{\LTleft}{25mm plus 1fil}
35 \setlength{\LTright}{0pt plus 1fil}
36 -\newcolumntype{P}[1]{>{\setlength{\rightskip}{0pt plus 1fil}}p{#1}}
37 \begin{longtable}{!{\extracolsep{\fill}} l P{7.5em} l p{0.5\linewidth}}
38 \caption{Defined variables\label{tab:defined_vars}}\\
39 \toprule
40
41 diff --git a/pms.cls b/pms.cls
42 index 80ba8e8..72d0b9a 100644
43 --- a/pms.cls
44 +++ b/pms.cls
45 @@ -123,6 +123,9 @@
46 \end{table}
47 }
48
49 +% Define a new column type P for tables, like p but with ragged-right text
50 +\newcolumntype{P}[1]{>{\setlength\rightskip{0pt plus 1fil}}p{#1}}
51 +
52 % Prevent numbers in list of tables from overrunning into the table captions
53 \renewcommand*{\l@figure}{\@dottedtocline{1}{1.5em}{2.8em}} % was 2.3em
54 \let\l@table\l@figure