commit: bc3078f1d5cfbbac330218c2745ec74e9370d16a Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Mon Oct 26 18:40:18 2015 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Mon Oct 26 18:40:18 2015 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=bc3078f1
pms.cls: Fix featurelabel command. Leave vertical mode to fix vertical alignment of the margin note. Suppress spurious whitespace in running text. Workaround for marginnote not being supported by tex4ht. pms.cls | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pms.cls b/pms.cls index af8e1b4..80ba8e8 100644 --- a/pms.cls +++ b/pms.cls @@ -77,8 +77,13 @@ % the page margin. \newcommand{\featureref}[1]{\textsc{#1} on page~\pageref{feat:#1}} \newcommand{\compactfeatureref}[1]{#1~p\pageref{feat:#1}} -\newcommand{\featurelabel}[1]{\label{feat:#1}% - \marginnote{\framebox{\textsc{#1}}}% +\newcommand{\featurelabel}[1]{\leavevmode\label{feat:#1}% + \ifthenelse{\boolean{TEX4HT-HACKS}}{% + % tex4ht does not support marginnote + \framebox{\textsc{#1}}% + }{% + \marginnote{\framebox{\textsc{#1}}}\ignorespaces + }% } \bibliographystyle{plainurl}