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: Mon, 26 Oct 2015 18:41:41
Message-Id: 1445884818.bc3078f1d5cfbbac330218c2745ec74e9370d16a.ulm@gentoo
1 commit: bc3078f1d5cfbbac330218c2745ec74e9370d16a
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 26 18:40:18 2015 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 26 18:40:18 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=bc3078f1
7
8 pms.cls: Fix featurelabel command.
9
10 Leave vertical mode to fix vertical alignment of the margin note.
11 Suppress spurious whitespace in running text.
12 Workaround for marginnote not being supported by tex4ht.
13
14 pms.cls | 9 +++++++--
15 1 file changed, 7 insertions(+), 2 deletions(-)
16
17 diff --git a/pms.cls b/pms.cls
18 index af8e1b4..80ba8e8 100644
19 --- a/pms.cls
20 +++ b/pms.cls
21 @@ -77,8 +77,13 @@
22 % the page margin.
23 \newcommand{\featureref}[1]{\textsc{#1} on page~\pageref{feat:#1}}
24 \newcommand{\compactfeatureref}[1]{#1~p\pageref{feat:#1}}
25 -\newcommand{\featurelabel}[1]{\label{feat:#1}%
26 - \marginnote{\framebox{\textsc{#1}}}%
27 +\newcommand{\featurelabel}[1]{\leavevmode\label{feat:#1}%
28 + \ifthenelse{\boolean{TEX4HT-HACKS}}{%
29 + % tex4ht does not support marginnote
30 + \framebox{\textsc{#1}}%
31 + }{%
32 + \marginnote{\framebox{\textsc{#1}}}\ignorespaces
33 + }%
34 }
35 \bibliographystyle{plainurl}