From afca337e53019109f903af847d59515ec04bdd1f Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Wed, 21 Aug 2013 11:05:00 -0400 Subject: [PATCH] Moved idxhat enable into lvspec; dwspec.sty removed --- lvspec.cls | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/lvspec.cls b/lvspec.cls index 54ddb9b..e77e8db 100644 --- a/lvspec.cls +++ b/lvspec.cls @@ -513,6 +513,24 @@ \fi% } +% prepares for idxhat to be enabled, at some point +\let\@hat^ +\begingroup + \catcode`\^=\active + \global\let^\@idxhat +\endgroup + +% allow use of ^ (hat) as short-hand for adding entries to the index (inspired +% by Knuth's convention, mentioned in TeXbook) +\newcommand\idxhaton{% + % allow ^ to be used as a command + \global\catcode`\^=\active +} +\newcommand\idxhatoff{% + % restore to normal + \global\catcode`\^=7\relax +} + %% % Hyphenation @@ -592,6 +610,7 @@ % enable paragraph numbering \pnumon\@hgrab + \idxhaton \section{Definitions} \label{s:dfns}