summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2019-04-07 19:31:28 +0200
committerUlrich Müller <ulm@gentoo.org>2019-04-07 19:31:28 +0200
commitafa3fc20f142911ecd0da534d8cc73dd48dee1df (patch)
tree28a9b85e5a102b9bcffe9927dc1f22a1ff9853eb
parentpms.cls: Change bibliographystyle to unsrturl. (diff)
downloadpms-afa3fc20f142911ecd0da534d8cc73dd48dee1df.tar.gz
pms-afa3fc20f142911ecd0da534d8cc73dd48dee1df.tar.bz2
pms-afa3fc20f142911ecd0da534d8cc73dd48dee1df.zip
pms.cls: Drop page references when processing with tex4ht.
They are meaningless in the HTML output. Delete \pageref in the text; it was used only once. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r--commands.tex3
-rw-r--r--pms.cls18
2 files changed, 11 insertions, 10 deletions
diff --git a/commands.tex b/commands.tex
index 5ba9626..1733ebd 100644
--- a/commands.tex
+++ b/commands.tex
@@ -22,8 +22,7 @@ dependencies must be used to ensure their presence.
The following commands must always be available in the ebuild environment:
\begin{compactitem}
-\item All builtin commands in GNU bash, version as listed in table~\ref{tab:bash-version} on
- page~\pageref{tab:bash-version}.
+\item All builtin commands in GNU bash, version as listed in table~\ref{tab:bash-version}.
\item \t{sed} must be available, and must support all forms of invocations valid for GNU sed
version 4 or later.
\item \featurelabel{gnu-patch} \t{patch} must be available, and must support all inputs valid
diff --git a/pms.cls b/pms.cls
index f0ec4b3..4015f98 100644
--- a/pms.cls
+++ b/pms.cls
@@ -87,15 +87,17 @@
% Define own label and reference commands, that display the label in
% the page margin.
-\newcommand{\featureref}[1]{\textsc{#1} on page~\pageref{feat:#1}}
-\newcommand{\compactfeatureref}[1]{#1~p\pageref{feat:#1}}
-\newcommand{\featurelabel}[1]{\leavevmode\label{feat:#1}%
- \ifthenelse{\boolean{TEX4HT-HACKS}}{%
+\ifthenelse{\boolean{TEX4HT-HACKS}}{%
+ \newcommand{\featureref}[1]{\hyperref[feat:#1]{\textsc{#1}}}
+ \newcommand{\compactfeatureref}[1]{\hyperref[feat:#1]{#1}}
+ \newcommand{\featurelabel}[1]{\leavevmode\label{feat:#1}%
% tex4ht does not support marginnote
- \framebox{\textsc{#1}}%
- }{%
- \marginnote{\framebox{\textsc{#1}}}\ignorespaces
- }%
+ \framebox{\textsc{#1}}}
+}{%
+ \newcommand{\featureref}[1]{\textsc{#1} on page~\pageref{feat:#1}}
+ \newcommand{\compactfeatureref}[1]{#1~p\pageref{feat:#1}}
+ \newcommand{\featurelabel}[1]{\leavevmode\label{feat:#1}%
+ \marginnote{\framebox{\textsc{#1}}}\ignorespaces}
}
% Change marginnote test to pretend that landscape pages are odd numbered
\g@addto@macro\@mn@margintest{%