summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-13 00:06:43 +0000
committerKarl Berry <karl@freefriends.org>2006-01-13 00:06:43 +0000
commitf6fb1db0529739a94b00cf248e0bc732461036b5 (patch)
tree0b0f6ccebe0e426dbe8ba650402c102bd2851793 /Master
parenta043498a1f0f33fe5b5dc8c17e46ff4f7129d469 (diff)
shorttoc
git-svn-id: svn://tug.org/texlive/trunk@1316 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/tex/latex/shorttoc/shorttoc.sty66
1 files changed, 66 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/shorttoc/shorttoc.sty b/Master/texmf-dist/tex/latex/shorttoc/shorttoc.sty
new file mode 100644
index 00000000000..44957372369
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/shorttoc/shorttoc.sty
@@ -0,0 +1,66 @@
+%%
+%% This is file `shorttoc.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% shorttoc.dtx (with options: `package')
+%%
+%% IMPORTANT NOTICE:
+%% This file is a stripped version of `shorttoc.dtx',
+%% copyright (c) 1997, 1998, 1999 by Jean-Pierre Drucbert (drucbert@onecert.fr)
+%%
+%%
+%% You are not allowed to distribute this file.
+%% For distribution of the original source see
+%% the copyright notice in the source file.
+%%
+%% Package `shorttoc' to use with LaTeX 2e
+%% Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Jean-Pierre F. Drucbert, all rights reserved
+%%
+%% You may use and distribute this file freely, provided that
+%% you don't pretend that you wrote it.
+\NeedsTeXFormat{LaTeX2e}[1996/06/01]
+\ProvidesPackage{shorttoc}
+ [2002/08/20 v1.3 Short table of contents (JPFD)]
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\def\@startshorttoc#1{\bgroup
+ \makeatletter
+ \@input{\jobname.#1}%
+ \global\@nobreakfalse \egroup}
+\def\sht@startshorttoc#1#2{\bgroup
+ \makeatletter
+ \@input{#2.#1}%
+ \global\@nobreakfalse \egroup}
+\newif\if@tightshtoc \@tightshtocfalse
+\def\shorttableofcontents#1#2{\bgroup\c@tocdepth=#2\@restonecolfalse
+ \if@tightshtoc
+ \parsep\z@
+ \fi
+ \if@twocolumn\@restonecoltrue\onecolumn\fi
+ \@ifundefined{chapter}%
+ {\section*{{#1}
+ \@mkboth{\uppercase{#1}}{\uppercase{#1}}}}%
+ {\chapter*{{#1}
+ \@mkboth{\uppercase{#1}}{\uppercase{#1}}}}%
+ \@startshorttoc{toc}\if@restonecol\twocolumn\fi\egroup}
+\newcommand{\anothertableofcontents}[4][toc]{\bgroup\c@tocdepth=#4\@restonecolfalse
+ \if@tightshtoc
+ \parsep\z@
+ \fi
+ \if@twocolumn\@restonecoltrue\onecolumn\fi
+ \@ifundefined{chapter}%
+ {\section*{{#3}
+ \@mkboth{\uppercase{#3}}{\uppercase{#3}}}}%
+ {\chapter*{{#3}
+ \@mkboth{\uppercase{#3}}{\uppercase{#3}}}}%
+ \sht@startshorttoc{#1}{#2}\if@restonecol\twocolumn\fi\egroup}
+ \let\shorttoc\shorttableofcontents
+ \let\anothertoc\anothertableofcontents
+ \DeclareOption{tight}{\@tightshtoctrue}
+ \DeclareOption{loose}{\@tightshtocfalse}
+ \ExecuteOptions{loose}
+ \ProcessOptions*
+\endinput
+%%
+%% End of file `shorttoc.sty'.