1 |
commit: afa3fc20f142911ecd0da534d8cc73dd48dee1df |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 7 17:31:28 2019 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 7 17:31:28 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=afa3fc20 |
7 |
|
8 |
pms.cls: Drop page references when processing with tex4ht. |
9 |
|
10 |
They are meaningless in the HTML output. Delete \pageref in the text; |
11 |
it was used only once. |
12 |
|
13 |
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> |
14 |
|
15 |
commands.tex | 3 +-- |
16 |
pms.cls | 18 ++++++++++-------- |
17 |
2 files changed, 11 insertions(+), 10 deletions(-) |
18 |
|
19 |
diff --git a/commands.tex b/commands.tex |
20 |
index 5ba9626..1733ebd 100644 |
21 |
--- a/commands.tex |
22 |
+++ b/commands.tex |
23 |
@@ -22,8 +22,7 @@ dependencies must be used to ensure their presence. |
24 |
|
25 |
The following commands must always be available in the ebuild environment: |
26 |
\begin{compactitem} |
27 |
-\item All builtin commands in GNU bash, version as listed in table~\ref{tab:bash-version} on |
28 |
- page~\pageref{tab:bash-version}. |
29 |
+\item All builtin commands in GNU bash, version as listed in table~\ref{tab:bash-version}. |
30 |
\item \t{sed} must be available, and must support all forms of invocations valid for GNU sed |
31 |
version 4 or later. |
32 |
\item \featurelabel{gnu-patch} \t{patch} must be available, and must support all inputs valid |
33 |
|
34 |
diff --git a/pms.cls b/pms.cls |
35 |
index f0ec4b3..4015f98 100644 |
36 |
--- a/pms.cls |
37 |
+++ b/pms.cls |
38 |
@@ -87,15 +87,17 @@ |
39 |
|
40 |
% Define own label and reference commands, that display the label in |
41 |
% the page margin. |
42 |
-\newcommand{\featureref}[1]{\textsc{#1} on page~\pageref{feat:#1}} |
43 |
-\newcommand{\compactfeatureref}[1]{#1~p\pageref{feat:#1}} |
44 |
-\newcommand{\featurelabel}[1]{\leavevmode\label{feat:#1}% |
45 |
- \ifthenelse{\boolean{TEX4HT-HACKS}}{% |
46 |
+\ifthenelse{\boolean{TEX4HT-HACKS}}{% |
47 |
+ \newcommand{\featureref}[1]{\hyperref[feat:#1]{\textsc{#1}}} |
48 |
+ \newcommand{\compactfeatureref}[1]{\hyperref[feat:#1]{#1}} |
49 |
+ \newcommand{\featurelabel}[1]{\leavevmode\label{feat:#1}% |
50 |
% tex4ht does not support marginnote |
51 |
- \framebox{\textsc{#1}}% |
52 |
- }{% |
53 |
- \marginnote{\framebox{\textsc{#1}}}\ignorespaces |
54 |
- }% |
55 |
+ \framebox{\textsc{#1}}} |
56 |
+}{% |
57 |
+ \newcommand{\featureref}[1]{\textsc{#1} on page~\pageref{feat:#1}} |
58 |
+ \newcommand{\compactfeatureref}[1]{#1~p\pageref{feat:#1}} |
59 |
+ \newcommand{\featurelabel}[1]{\leavevmode\label{feat:#1}% |
60 |
+ \marginnote{\framebox{\textsc{#1}}}\ignorespaces} |
61 |
} |
62 |
% Change marginnote test to pretend that landscape pages are odd numbered |
63 |
\g@addto@macro\@mn@margintest{% |