aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/refman/headers.hva
diff options
context:
space:
mode:
authorGravatar emakarov <emakarov@85f007b7-540e-0410-9357-904b9bb8a0f7>2007-04-16 12:04:53 +0000
committerGravatar emakarov <emakarov@85f007b7-540e-0410-9357-904b9bb8a0f7>2007-04-16 12:04:53 +0000
commitdb90eece6a08b62913da82cca0d6d294bad22288 (patch)
treee8a42fa0eb3467b573bb6fd81cce524d512e37ae /doc/refman/headers.hva
parentb76c8dd6c09463c2772d7c7bece901730285735a (diff)
Removed from headers.hva the code to make index point to the section
labels and not other environment labels (such as enumerate or theorem). This facility was added to Hevea, which is available at http://hevea.inria.fr/distri/unstable/hevea-2007-04-16.tar.gz git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@9772 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'doc/refman/headers.hva')
-rw-r--r--doc/refman/headers.hva30
1 files changed, 0 insertions, 30 deletions
diff --git a/doc/refman/headers.hva b/doc/refman/headers.hva
index d0675ec17..f65e1c10c 100644
--- a/doc/refman/headers.hva
+++ b/doc/refman/headers.hva
@@ -30,36 +30,6 @@ Global Index}
\newcommand{\errindexbis}[2]{\texttt{#1}\index[error]{#2}}
\newcommand{\ttindex}[1]{\index{#1@\texttt{#1}}}
-% The following code creates another command \@indexlabel, which,
-% along with Hevea's \@currentlabel serves to store the current values
-% of counters. However, \@currentlabel keeps the value of counters
-% incremented by \refstepcounter (see the definition of
-% \refstepcounter in latexcommon.hva), which includes chapter and
-% section counters, as well as theorems, \items, etc. On the other
-% hand, \@indexlabel keeps only the values of sectioning counters.
-% This is done by redefining the sectioning commands.
-\newcommand{\@indexlabel}{}
-\let\oldchapter=\chapter
-\let\oldsection=\section
-\let\oldsubsection=\subsection
-\let\oldsubsubsection=\subsubsection
-\let\oldparagraph=\paragraph
-\let\oldsubparagraph=\subparagraph
-\renewcommand{\chapter}[1]{\oldchapter{#1}\let\@indexlabel=\@currentlabel}
-\renewcommand{\section}[1]{\oldsection{#1}\let\@indexlabel=\@currentlabel}
-\renewcommand{\subsection}[1]{\oldsubsection{#1}\let\@indexlabel=\@currentlabel}
-\renewcommand{\subsubsection}[1]{\oldsubsubsection{#1}\let\@indexlabel=\@currentlabel}
-\renewcommand{\paragraph}[1]{\oldparagraph{#1}\let\@indexlabel=\@currentlabel}
-\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\let\@indexlabel=\@currentlabel}
-% The only difference of the following command with the original one
-% defined in index.hva is that the latter uses \@currentlabel instead
-% of \@indexlabel
-\renewcommand{\index}[2][default]
-{\if@refs
-\sbox{\@indexbox}{\@indexwrite[#1]{#2}{\@indexlabel}}
-\@locname{\usebox{\@indexbox}}{}
-\fi}
-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% For the Addendum table of contents
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%