Moved idxhat enable into lvspec; dwspec.sty removed
parent
57d6e454b6
commit
afca337e53
19
lvspec.cls
19
lvspec.cls
|
@ -513,6 +513,24 @@
|
||||||
\fi%
|
\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
|
% Hyphenation
|
||||||
|
@ -592,6 +610,7 @@
|
||||||
|
|
||||||
% enable paragraph numbering
|
% enable paragraph numbering
|
||||||
\pnumon\@hgrab
|
\pnumon\@hgrab
|
||||||
|
\idxhaton
|
||||||
|
|
||||||
\section{Definitions}
|
\section{Definitions}
|
||||||
\label{s:dfns}
|
\label{s:dfns}
|
||||||
|
|
Loading…
Reference in New Issue