Skip to content
Snippets Groups Projects
Commit 498c71b0 authored by Philippe Dosch's avatar Philippe Dosch
Browse files

Hack pour l'index

parent 883ac77b
No related branches found
No related tags found
No related merge requests found
...@@ -5,10 +5,21 @@ ...@@ -5,10 +5,21 @@
%\usepackage{gitcommon} %\usepackage{gitcommon}
\usepackage{makeidx}
% Hack, built from both tocbibbind and scrreprt, in order to
% have an index entry in the TOC referencing the good page
% (a basic \addcontentsline before \printindex is not efficient enough)
\usepackage{tocbibindphil}
\newcommand{\exindex}[1]{\index{#1@\texttt{#1}}}
\newcommand{\inex}[1]{\input{exos/ex#1}}
\makeindex
\begin{document} \begin{document}
\begin{center} \begin{center}
\textbf{\Huge Aide mémoire Git} \frame{\textbf{\Huge Aide mémoire Git}}
\end{center} \end{center}
%====================================================================== %======================================================================
......
%%
%% This is file `tocbibindphil.sty', based on `tocbibind.sty'
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{tocbibindphil}[2010/08/26 v1.5i extra ToC listings]
\renewenvironment{theindex}%
{\if@twocolumn
\@restonecolfalse
\else
\@restonecoltrue
\fi
\columnseprule \z@
\columnsep 35\p@
\setchapterpreamble{\index@preamble}%
\idx@heading%
\addcontentsline{toc}{chapter}{Index}
\thispagestyle{\indexpagestyle}\parindent\z@
\setlength{\parskip}{\z@ \@plus .3\p@}%
\setlength{\parfillskip}{\z@ \@plus 1fil}%
\let\item\@idxitem}
{\if@restonecol\onecolumn\else\clearpage\fi}
\endinput
%%
%% End of file `tocbibindphil.sty'.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment