1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4
% And commands for multiple indexes
5
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8
\setlength{\headheight}{14pt}
10
\pagestyle{fancyplain}
12
\newcommand{\coqfooter}{\tiny Coq Reference Manual, V\coqversion{}, \today}
15
\lfoot[{\coqfooter}]{}
16
\rfoot[]{{\coqfooter}}
18
\newcommand{\setheaders}[1]{\rhead[\fancyplain{}{\textbf{#1}}]{\fancyplain{}{\thepage}}\lhead[\fancyplain{}{\thepage}]{\fancyplain{}{\textbf{#1}}}}
19
\newcommand{\defaultheaders}{\rhead[\fancyplain{}{\leftmark}]{\fancyplain{}{\thepage}}\lhead[\fancyplain{}{\thepage}]{\fancyplain{}{\rightmark}}}
21
\renewcommand{\chaptermark}[1]{\markboth{{\bf \thechapter~#1}}{}}
22
\renewcommand{\sectionmark}[1]{\markright{\thesection~#1}}
24
\renewcommand{\contentsname}{%
25
\protect\setheaders{Table of contents}Table of contents}
26
\renewcommand{\bibname}{\protect\setheaders{Bibliography}%
27
\protect\RefManCutCommand{BEGINBIBLIO=\thepage}%
28
\protect\addcontentsline{toc}{chapter}{Bibliography}Bibliography}
31
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
32
% For the Addendum table of contents
33
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
34
\newcommand{\aauthor}[1]{{\LARGE \bf #1} \bigskip \bigskip \bigskip}
37
\newcommand{\atableofcontents}{\section*{Contents}\@starttoc{atoc}}
38
\newcommand{\achapter}[1]{
39
\chapter{#1}\addcontentsline{atoc}{chapter}{#1}}
40
\newcommand{\asection}[1]{
41
\section{#1}\addcontentsline{atoc}{section}{#1}}
42
\newcommand{\asubsection}[1]{
43
\subsection{#1}\addcontentsline{atoc}{subsection}{#1}}
44
\newcommand{\asubsubsection}[1]{
45
\subsubsection{#1}\addcontentsline{atoc}{subsubsection}{#1}}
47
%HEVEA \newcommand{\atableofcontents}{}
48
%HEVEA \newcommand{\achapter}[1]{\chapter{#1}}
49
%HEVEA \newcommand{\asection}{\section}
50
%HEVEA \newcommand{\asubsection}{\subsection}
51
%HEVEA \newcommand{\asubsubsection}{\subsubsection}
53
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
54
% Reference-Manual.sh is generated to cut the Postscript
55
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
58
\newwrite\RefManCut@out%
59
\immediate\openout\RefManCut@out\jobname.sh
60
\newcommand{\RefManCutCommand}[1]{%
61
\immediate\write\RefManCut@out{#1}}
62
\newcommand{\RefManCutClose}{%
63
\immediate\closeout\RefManCut@out}
66
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
67
% Commands for indexes
68
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
71
\newindex{tactic}{tacidx}{tacind}{%
72
\protect\setheaders{Tactics Index}%
73
\protect\addcontentsline{toc}{chapter}{Tactics Index}Tactics Index}
75
\newindex{command}{comidx}{comind}{%
76
\protect\setheaders{Vernacular Commands Index}%
77
\protect\addcontentsline{toc}{chapter}{Vernacular Commands Index}%
78
Vernacular Commands Index}
80
\newindex{error}{erridx}{errind}{%
81
\protect\setheaders{Index of Error Messages}%
82
\protect\addcontentsline{toc}{chapter}{Index of Error Messages}Index of Error Messages}
84
\renewindex{default}{idx}{ind}{%
85
\protect\addcontentsline{toc}{chapter}{Global Index}%
86
\protect\setheaders{Global Index}Global Index}
88
\newcommand{\tacindex}[1]{%
89
\index{#1@\texttt{#1}}\index[tactic]{#1@\texttt{#1}}}
90
\newcommand{\comindex}[1]{%
91
\index{#1@\texttt{#1}}\index[command]{#1@\texttt{#1}}}
92
\newcommand{\errindex}[1]{\texttt{#1}\index[error]{#1}}
93
\newcommand{\errindexbis}[2]{\texttt{#1}\index[error]{#2}}
94
\newcommand{\ttindex}[1]{\index{#1@\texttt{#1}}}
101
%%% TeX-master: "Reference-Manual"