Mike Gerwitz

Activist for User Freedom

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <gerwitzm@lovullo.com>2013-09-13 15:19:04 -0400
committerMike Gerwitz <gerwitzm@lovullo.com>2013-09-13 15:19:04 -0400
commitef03fb27c307239f85e53e96497e9c5118e284c8 (patch)
treee176c31629486d1865d6c1ed2f32e6f4a439e364
parent397d1e96917cc6f7f926489af5cb2e219ca16c9d (diff)
downloadlvspec-ef03fb27c307239f85e53e96497e9c5118e284c8.tar.gz
lvspec-ef03fb27c307239f85e53e96497e9c5118e284c8.tar.bz2
lvspec-ef03fb27c307239f85e53e96497e9c5118e284c8.zip
Corrected issues with \dfn consuming more than it should
-rw-r--r--lvspec.cls13
1 files changed, 7 insertions, 6 deletions
diff --git a/lvspec.cls b/lvspec.cls
index b24a0a8..00b943d 100644
--- a/lvspec.cls
+++ b/lvspec.cls
@@ -169,7 +169,9 @@
\let\@@cmp\@@document
\else\ifx\@currenvir\@@protdev
\let\@@cmp\@@document
- \fi\fi\fi
+ \else\ifx\@currenvir\@@coglclass
+ \let\@@cmp\@@document
+ \fi\fi\fi\fi
% output if match
\ifx\@@cmp\@@document%
\ifx\haspnum1\relax
@@ -420,15 +422,14 @@
% get rid of mysterious magical hspace that appears from the marginpar
\hskip-1ex\relax%
}
-\def\dfn#1#2{%
+\def\dfn#1{%
\begingroup
- \sl
\ifx#1*
- #2%
+ \aftergroup\dfn%
\else
- \@idxhat@idx{#1#2}%
+ \sl
+ \@idxhat@idx{#1}%
\fi
- \/
\endgroup
}
\def\rfc#1{{\tt RFC #1}}