diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/latex-tds/tex/ltxguide.cfg')
-rw-r--r-- | Master/texmf-dist/source/latex/latex-tds/tex/ltxguide.cfg | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/Master/texmf-dist/source/latex/latex-tds/tex/ltxguide.cfg b/Master/texmf-dist/source/latex/latex-tds/tex/ltxguide.cfg index c5691a30403..f9a4d95c15f 100644 --- a/Master/texmf-dist/source/latex/latex-tds/tex/ltxguide.cfg +++ b/Master/texmf-dist/source/latex/latex-tds/tex/ltxguide.cfg @@ -1,5 +1,5 @@ \ProvidesFile{ltxguide.cfg}% - [2006/04/27 v1.0 latex-tds: ltxguide.cls configuration (HO)] + [2008/08/10 v1.1 latex-tds: ltxguide.cls configuration (HO)] % % Copyright 2006 Heiko Oberdiek % @@ -20,7 +20,12 @@ % See `readme.txt' for a list of all files belonging to the % project `latex-tds' and additional information. % +% 2006/04/27 v1.0 +% 2008/08/10 v1.1: Fix for bookmark `References' of encguide.tex. +% \PassOptionsToClass{a4paper}{article} +\edef\NAMEencguide{\detokenize{encguide}} +\edef\NAMEjobname{\jobname} \AtEndOfClass{% \RequirePackage[% hyperindex=false,% @@ -46,10 +51,19 @@ \org@tableofcontents }% \let\org@thebibliography\thebibliography - \def\thebibliography{% - \pdfbookmark[\toclevel@section]{\refname}{bib}% - \org@thebibliography - }% + \ifx\NAMEjobname\NAMEencguide + \def\thebibliography{% + \clearpage + \phantomsection + \hypersetup{bookmarksnumbered=false}% + \org@thebibliography + }% + \else + \def\thebibliography{% + \pdfbookmark[\toclevel@section]{\refname}{bib}% + \org@thebibliography + }% + \fi \addtolength{\textheight}{\headheight}% \addtolength{\textheight}{\headsep}% \setlength{\headheight}{0pt}% |