summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2015-10-26 19:40:18 +0100
committerUlrich Müller <ulm@gentoo.org>2015-10-26 19:40:18 +0100
commitbc3078f1d5cfbbac330218c2745ec74e9370d16a (patch)
tree503f39c705bd1675d5977b9a5993ce238fbed234 /pms.cls
parentCalling a USE list function in global scope is an error. (diff)
downloadpms-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.cls9
1 files 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}