diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/latex-tds/tex/babel.tex')
-rw-r--r-- | Master/texmf-dist/source/latex/latex-tds/tex/babel.tex | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/latex-tds/tex/babel.tex b/Master/texmf-dist/source/latex/latex-tds/tex/babel.tex new file mode 100644 index 00000000000..ff3059fa099 --- /dev/null +++ b/Master/texmf-dist/source/latex/latex-tds/tex/babel.tex @@ -0,0 +1,71 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesFile{babel.tex}% + [2006/06/02 v1.0 Driver file for babel.drv (HO)] +% +% Copyright 2006 Heiko Oberdiek +% +% This file is part of project `latex-tds'. +% +% It may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3 +% of this license or (at your option) any later version. +% The latest version of this license is in +% http://www.latex-project.org/lppl.txt +% and version 1.3c or later is part of all distributions of LaTeX +% version 2005/12/01 or later. +% +% This work has the LPPL maintenance status `maintained'. +% +% The Current Maintainer of this work is Heiko Oberdiek. +% +% See `readme.txt' for a list of all files belonging to the +% project `latex-tds' and additional information. +% +\makeatletter + +% There are a lot of unnumbered sections `References' +% among numbered sections. That looks too poor. +\PassOptionsToPackage{numbered}{hypdoc} + +% The first environment `thebibliography' belongs to babel.dtx, +% but the following are part of the other language definition files. +% Thus we must move the \section to the \subsection level here. +\newif\if@FirstBib +\@FirstBibtrue +\AtBeginDocument{% + \let\Saved@TheBibliography\thebibliography + \let\thebibliography\New@TheBibliography +} +\def\New@TheBibliography{% + \if@FirstBib + \global\@FirstBibfalse + \else + \def\section{\subsection}% + \fi + \Saved@TheBibliography +} + +% Add bookmark for `Change History' +\AtBeginDocument{% + \let\Saved@TheGlossary\theglossary + \let\theglossary\New@TheGlossary +} +\def\New@TheGlossary{% + \clearpage + \pdfbookmark[1]{Change History}{gloss}% + \Saved@TheGlossary +} + +% Index not numbered +\AtBeginDocument{% + \let\Saved@TheIndex\theindex + \let\theindex\New@TheIndex +} +\def\New@TheIndex{% + \csname HD@numberedfalse\endcsname + \Saved@TheIndex +} +\makeatother + +\input{babel.drv} +\endinput |