diff options
author | Ulrich Müller <ulm@gentoo.org> | 2015-10-26 19:40:18 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2015-10-26 19:40:18 +0100 |
commit | bc3078f1d5cfbbac330218c2745ec74e9370d16a (patch) | |
tree | 503f39c705bd1675d5977b9a5993ce238fbed234 /pms.cls | |
parent | Calling a USE list function in global scope is an error. (diff) | |
download | pms-bc3078f1d5cfbbac330218c2745ec74e9370d16a.tar.gz pms-bc3078f1d5cfbbac330218c2745ec74e9370d16a.tar.bz2 pms-bc3078f1d5cfbbac330218c2745ec74e9370d16a.zip |
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.
Diffstat (limited to 'pms.cls')
-rw-r--r-- | pms.cls | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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} |