From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D8E58138335 for ; Sat, 13 Apr 2019 09:05:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 19DC4E0929; Sat, 13 Apr 2019 09:05:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E9214E0929 for ; Sat, 13 Apr 2019 09:05:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AC81A340C36 for ; Sat, 13 Apr 2019 09:05:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5DD785A5 for ; Sat, 13 Apr 2019 09:05:28 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1554658288.afa3fc20f142911ecd0da534d8cc73dd48dee1df.ulm@gentoo> Subject: [gentoo-commits] proj/pms:master commit in: / X-VCS-Repository: proj/pms X-VCS-Files: commands.tex pms.cls X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: afa3fc20f142911ecd0da534d8cc73dd48dee1df X-VCS-Branch: master Date: Sat, 13 Apr 2019 09:05:28 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 27e79e21-b0d0-4be1-b5ef-38d8d1a8d4b6 X-Archives-Hash: 3369a6cf704753628d7f5eac1f9f0e01 commit: afa3fc20f142911ecd0da534d8cc73dd48dee1df Author: Ulrich Müller gentoo org> AuthorDate: Sun Apr 7 17:31:28 2019 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Sun Apr 7 17:31:28 2019 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=afa3fc20 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 gentoo.org> commands.tex | 3 +-- pms.cls | 18 ++++++++++-------- 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{%