Mike Gerwitz

Activist for User Freedom

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <gerwitzm@lovullo.com>2013-09-12 13:06:48 -0400
committerMike Gerwitz <gerwitzm@lovullo.com>2013-09-12 13:06:48 -0400
commitbbfd0388d2936cb65b349455f2d57016f4f102ae (patch)
treec8ff89c5fdf5b7462abac5108d42b1b1e9c31c2c
parent26bc7d3921c27b7e697a995c3aed0d6632c7edf5 (diff)
downloadlvspec-bbfd0388d2936cb65b349455f2d57016f4f102ae.tar.gz
lvspec-bbfd0388d2936cb65b349455f2d57016f4f102ae.tar.bz2
lvspec-bbfd0388d2936cb65b349455f2d57016f4f102ae.zip
Added star form of dfn
TODO: use LaTeX
-rw-r--r--lvspec.cls12
1 files changed, 11 insertions, 1 deletions
diff --git a/lvspec.cls b/lvspec.cls
index 8555a86..d356527 100644
--- a/lvspec.cls
+++ b/lvspec.cls
@@ -416,7 +416,17 @@
% get rid of mysterious magical hspace that appears from the marginpar
\hskip-1ex\relax%
}
-\def\dfn#1{{\sl\@idxhat@idx{#1}\/}}
+\def\dfn#1#2{%
+ \begingroup
+ \sl
+ \ifx#1*
+ #1%
+ \else
+ \@idxhat@idx{#1#2}%
+ \fi
+ \/
+ \endgroup
+}
\def\rfc#1{{\tt RFC #1}}
\def\hex#1{{\tt 0x#1}}
\def\code#1{{\tt#1}}