| 1 |
%% |
| 2 |
%% This is file `lwarp-tocbibind.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `tocbibind') |
| 8 |
%% This is a generated file. |
| 9 |
%% Copyright 2016-2026 Brian Dunn |
| 10 |
%% |
| 11 |
%% This work may be distributed and/or modified under the |
| 12 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 13 |
%% of this license or (at your option) any later version. |
| 14 |
%% The latest version of this license is in |
| 15 |
%% http://www.latex-project.org/lppl.txt |
| 16 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 17 |
%% version 2005/12/01 or later. |
| 18 |
|
| 19 |
|
| 20 |
\let\simplechapterdelim\relax |
| 21 |
|
| 22 |
\LWR@ProvidesPackagePass{tocbibind}[2010/10/13] |
| 23 |
|
| 24 |
\renewenvironment{theindex}% |
| 25 |
{% |
| 26 |
\if@bibchapter |
| 27 |
\if@donumindex |
| 28 |
\chapter{\indexname} |
| 29 |
\else |
| 30 |
\if@dotocind |
| 31 |
\chapter*{\indexname} |
| 32 |
\addcontentsline{toc}{chapter}{\LWR@isolate{\indexname}} |
| 33 |
\else |
| 34 |
\chapter*{\indexname} |
| 35 |
\fi |
| 36 |
\fi |
| 37 |
\else |
| 38 |
\if@donumindex |
| 39 |
\section{\indexname} |
| 40 |
\else |
| 41 |
\if@dotocind |
| 42 |
\section*{\indexname} |
| 43 |
\addcontentsline{toc}{\@tocextra}{\LWR@isolate{\indexname}} |
| 44 |
\else |
| 45 |
\section*{\indexname} |
| 46 |
\fi |
| 47 |
\fi |
| 48 |
\fi |
| 49 |
\DeclareCommandCopy{\item}{\LWR@indexitem}% |
| 50 |
\DeclareCommandCopy{\subitem}{\LWR@indexsubitem}% |
| 51 |
\DeclareCommandCopy{\subsubitem}{\LWR@indexsubsubitem}% |
| 52 |
}{} |
| 53 |
\DeclareDocumentCommand{\simplechapter}{O{\@empty}}{% |
| 54 |
\def\@chapcntformat##1{% |
| 55 |
#1~\csname the##1\endcsname\simplechapterdelim\quad% |
| 56 |
}% |
| 57 |
} |
| 58 |
|
| 59 |
\DeclareDocumentCommand{\restorechapter}{}{% |
| 60 |
\let\@chapcntformat\@seccntformat% |
| 61 |
} |
| 62 |
\endinput |
| 63 |
%% |
| 64 |
%% End of file `lwarp-tocbibind.sty'. |