Typo
[latex2e.git] / latex2e-20150101 / support / ltxguide.cfg
blob02604613859bcc7a0141bbdcb9b4998dc6611ee6
1 % \iffalse meta-comment
3 % Copyright 2006, 2008 Heiko Oberdiek
4 % Copyright 2014 The LaTeX3 Project
5
6 % This file is part of the LaTeX base system.
7 % -------------------------------------------
9 % It may be distributed and/or modified under the
10 % conditions of the LaTeX Project Public License, either version 1.3c
11 % of this license or (at your option) any later version.
12 % The latest version of this license is in
13 %    http://www.latex-project.org/lppl.txt
14 % and version 1.3c or later is part of all distributions of LaTeX
15 % version 2005/12/01 or later.
17 % This file has the LPPL maintenance status "maintained".
19 % \fi
21 \ProvidesFile{ltxguide.cfg}%
22   [2008/08/10 v2.0 ltxguide.cls configuration (LaTeX3 Project)]
23 \PassOptionsToClass{a4paper}{article}
24 \edef\NAMEencguide{\detokenize{encguide}}
25 \edef\NAMEjobname{\jobname}
26 \AtEndOfClass{%
27   \RequirePackage[%
28     hyperindex=false,%
29     pdfusetitle,%
30     colorlinks,%
31     pdfpagelabels,%
32   ]{hyperref}[2002/05/09]%
33   \hypersetup{%
34     plainpages=false,%
35     bookmarksopen,%
36     bookmarksnumbered,%
37     bookmarksopenlevel=0,%
38     pdfstartview={FitBH \hypercalcbp{%
39       \paperheight-\topmargin-1in-\headheight-\headsep
40     }},%
41   }%
42   \pdfstringdefDisableCommands{%
43     \let\package\relax % grfguide.tex
44   }%
45   \let\org@tableofcontents\tableofcontents
46   \def\tableofcontents{%
47     \pdfbookmark[\toclevel@section]{\contentsname}{toc}%
48     \org@tableofcontents
49   }%
50   \let\org@thebibliography\thebibliography
51   \ifx\NAMEjobname\NAMEencguide
52     \def\thebibliography{%
53       \clearpage
54       \phantomsection
55       \hypersetup{bookmarksnumbered=false}%
56       \org@thebibliography
57     }%
58   \else
59     \def\thebibliography{%
60       \pdfbookmark[\toclevel@section]{\refname}{bib}%
61       \org@thebibliography
62     }%
63   \fi
65 \endinput