diff options
author | Karl Berry <karl@freefriends.org> | 2012-05-02 21:50:45 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-05-02 21:50:45 +0000 |
commit | aa1776c78dfdb456e2228fbceaa886e64e36174c (patch) | |
tree | 7967af7f0f2079a632809a813221918af16ba8cc /Master/texmf-dist/source/latex/oberdiek/hypdestopt.dtx | |
parent | a86d14742b305868a1c2b1f33f1263a6b7d0e03d (diff) |
oberdiek (1may12)
git-svn-id: svn://tug.org/texlive/trunk@26177 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/hypdestopt.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/oberdiek/hypdestopt.dtx | 135 |
1 files changed, 98 insertions, 37 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/hypdestopt.dtx b/Master/texmf-dist/source/latex/oberdiek/hypdestopt.dtx index fa4ccc5ee2c..8005753e1af 100644 --- a/Master/texmf-dist/source/latex/oberdiek/hypdestopt.dtx +++ b/Master/texmf-dist/source/latex/oberdiek/hypdestopt.dtx @@ -1,11 +1,12 @@ % \iffalse meta-comment -% +% % File: hypdestopt.dtx -% Version: 2008/08/08 v2.2 -% -% Copyright (C) 2006, 2007, 2008 by +% Version: 2011/05/13 v2.3 +% Info: Hyperref destination optimizer +% +% Copyright (C) 2006-2008, 2011 by % Heiko Oberdiek <heiko.oberdiek at googlemail.com> -% +% % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either % version 1.3c of this license or (at your option) any later @@ -15,19 +16,19 @@ % http://www.latex-project.org/lppl.txt % and version 1.3 or later is part of all distributions of % LaTeX version 2005/12/01 or later. -% +% % This work has the LPPL maintenance status "maintained". -% +% % This Current Maintainer of this work is Heiko Oberdiek. -% +% % This work consists of the main source file hypdestopt.dtx % and the derived files % hypdestopt.sty, hypdestopt.pdf, hypdestopt.ins, hypdestopt.drv. -% +% % Distribution: % CTAN:macros/latex/contrib/oberdiek/hypdestopt.dtx % CTAN:macros/latex/contrib/oberdiek/hypdestopt.pdf -% +% % Unpacking: % (a) If hypdestopt.ins is present: % tex hypdestopt.ins @@ -36,7 +37,7 @@ % (c) If you insist on using LaTeX % latex \let\install=y\input{hypdestopt.dtx} % (quote the arguments according to the demands of your shell) -% +% % Documentation: % (a) If hypdestopt.drv is present: % latex hypdestopt.drv @@ -46,14 +47,14 @@ % if available. Here you can specify further options, e.g. % use A4 as paper format: % \PassOptionsToClass{a4paper}{article} -% +% % Programm calls to get the documentation (example): % pdflatex hypdestopt.dtx % makeindex -s gind.ist hypdestopt.idx % pdflatex hypdestopt.dtx % makeindex -s gind.ist hypdestopt.idx % pdflatex hypdestopt.dtx -% +% % Installation: % TDS:tex/latex/oberdiek/hypdestopt.sty % TDS:doc/latex/oberdiek/hypdestopt.pdf @@ -74,7 +75,7 @@ \input docstrip.tex \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: hypdestopt 2008/08/08 v2.2 Hyperref destination optimizer (HO)} +\Msg{* Package: hypdestopt 2011/05/13 v2.3 Hyperref destination optimizer (HO)} \Msg{************************************************************************} \keepsilent @@ -86,9 +87,9 @@ This is a generated file. Project: hypdestopt -Version: 2008/08/08 v2.2 +Version: 2011/05/13 v2.3 -Copyright (C) 2006, 2007, 2008 by +Copyright (C) 2006-2008, 2011 by Heiko Oberdiek <heiko.oberdiek at googlemail.com> This work may be distributed and/or modified under the @@ -117,6 +118,10 @@ and the derived files \file{hypdestopt.drv}{\from{hypdestopt.dtx}{driver}}% \usedir{tex/latex/oberdiek}% \file{hypdestopt.sty}{\from{hypdestopt.dtx}{package}}% + \nopreamble + \nopostamble + \usedir{source/latex/oberdiek/catalogue}% + \file{hypdestopt.xml}{\from{hypdestopt.dtx}{catalogue}}% } \catcode32=13\relax% active space @@ -143,16 +148,16 @@ and the derived files %<*driver> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{hypdestopt.drv}% - [2008/08/08 v2.2 Hyperref destination optimizer (HO)]% + [2011/05/13 v2.3 Hyperref destination optimizer (HO)]% \documentclass{ltxdoc} -\usepackage{holtxdoc}[2011/02/04] +\usepackage{holtxdoc}[2011/11/22] \begin{document} \DocInput{hypdestopt.dtx}% \end{document} %</driver> % \fi % -% \CheckSum{543} +% \CheckSum{565} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -173,7 +178,7 @@ and the derived files % \GetFileInfo{hypdestopt.drv} % % \title{The \xpackage{hypdestopt} package} -% \date{2008/08/08 v2.2} +% \date{2011/05/13 v2.3} % \author{Heiko Oberdiek\\\xemail{heiko.oberdiek at googlemail.com}} % % \maketitle @@ -295,7 +300,7 @@ and the derived files %<*package> \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{hypdestopt}% - [2008/08/08 v2.2 Hyperref destination optimizer (HO)]% + [2011/05/13 v2.3 Hyperref destination optimizer (HO)]% % \end{macrocode} % % \subsection{Options} @@ -376,7 +381,8 @@ and the derived files \fi % \end{macrocode} % \begin{macrocode} -\RequirePackage{auxhook} +\RequirePackage{auxhook}[2009/12/14] +\RequirePackage{pdfescape}[2007/04/21] % \end{macrocode} % % \subsection{Preamble for auxiliary file} @@ -596,29 +602,36 @@ and the derived files \ifHypDest@name \let\HypDest@Org@DestName\Hy@DestName \renewcommand*{\Hy@DestName}[2]{% - \@ifundefined{\HypDest@Prefix#1}{% + \EdefUnescapeString\HypDest@temp{#1}% + \@ifundefined{\HypDest@Prefix\HypDest@temp}{% \HypDest@VerboseInfo{% - DestName: (#1) unused% + DestName: (\HypDest@temp) unused% }% }{% - \HypDest@Org@DestName{\csname\HypDest@Prefix#1\endcsname}{#2}% + \HypDest@Org@DestName{% + \csname\HypDest@Prefix\HypDest@temp\endcsname + }{#2}% \HypDest@VerboseInfo{% - DestName: (#1) % - 0x\pdf@escapehex{\csname\HypDest@Prefix#1\endcsname}% + DestName: (\HypDest@temp) % + 0x\pdf@escapehex{% + \csname\HypDest@Prefix\HypDest@temp\endcsname + }% }% }% }% \else \renewcommand*{\Hy@DestName}[2]{% - \@ifundefined{\HypDest@Prefix#1}{% + \EdefUnescapeString\HypDest@temp{#1}% + \@ifundefined{\HypDest@Prefix\HypDest@temp}{% \HypDest@VerboseInfo{% - DestName: (#1) unused% + DestName: (\HypDest@temp) unused% }% }{% - \pdfdest num\csname\HypDest@Prefix#1\endcsname#2\relax + \pdfdest num% + \csname\HypDest@Prefix\HypDest@temp\endcsname#2\relax \HypDest@VerboseInfo{% - DestName: (#1) % - num \csname\HypDest@Prefix#1\endcsname + DestName: (\HypDest@temp) % + num \csname\HypDest@Prefix\HypDest@temp\endcsname }% }% }% @@ -704,7 +717,11 @@ and the derived files \@ifundefined{\HypDest@Prefix#2}{% \edef#1{goto name{hypdestopt\string :unknown}}% }{% - \edef#1{goto num\csname\HypDest@Prefix#2\endcsname}% + \ifHypDest@name + \edef#1{goto name{\csname\HypDest@Prefix#2\endcsname}}% + \else + \edef#1{goto num\csname\HypDest@Prefix#2\endcsname}% + \fi }% }% \def\BKM@HypDestOptHook{% @@ -914,24 +931,61 @@ and the derived files %\end{verbatim} % \end{quote} % +% \section{Catalogue} +% +% The following XML file can be used as source for the +% \href{http://mirror.ctan.org/help/Catalogue/catalogue.html}{\TeX\ Catalogue}. +% The elements \texttt{caption} and \texttt{description} are imported +% from the original XML file from the Catalogue. +% The name of the XML file in the Catalogue is \xfile{hypdestopt.xml}. +% \begin{macrocode} +%<*catalogue> +<?xml version='1.0' encoding='us-ascii'?> +<!DOCTYPE entry SYSTEM 'catalogue.dtd'> +<entry datestamp='$Date$' modifier='$Author$' id='hypdestopt'> + <name>hypdestopt</name> + <caption>Hyperref destination optimizer.</caption> + <authorref id='auth:oberdiek'/> + <copyright owner='Heiko Oberdiek' year='2006-2008,2011'/> + <license type='lppl1.3'/> + <version number='2.3'/> + <description> + This package supports <xref refid='hyperref'>hyperref</xref>'s + pdftex driver. It removes unnecessary destinations + and shortens the destination names or uses numbered destinations + to get smaller PDF files. + <p/> + The package is part of the <xref refid='oberdiek'>oberdiek</xref> + bundle. + </description> + <documentation details='Package documentation' + href='ctan:/macros/latex/contrib/oberdiek/hypdestopt.pdf'/> + <ctan file='true' path='/macros/latex/contrib/oberdiek/hypdestopt.dtx'/> + <miktex location='oberdiek'/> + <texlive location='oberdiek'/> + <install path='/macros/latex/contrib/oberdiek/oberdiek.tds.zip'/> +</entry> +%</catalogue> +% \end{macrocode} +% % \begin{thebibliography}{9} -% +% % \bibitem{alphalph} % Heiko Oberdiek: \textit{The \xpackage{alphalph} package}; % 2006/05/30 v1.4; % \CTAN{macros/latex/contrib/oberdiek/alphalph.pdf}. -% +% % \bibitem{hyperref} % Sebastian Rahtz, Heiko Oberdiek: % \textit{The \xpackage{hyperref} package}; % 2006/06/01 v6.75a; % \CTAN{macros/latex/contrib/hyperref/}. -% +% % \bibitem{ifpdf} % Heiko Oberdiek: \textit{The \xpackage{ifpdf} package}; % 2006/02/20 v1.4; % \CTAN{macros/latex/contrib/oberdiek/ifpdf.pdf}. -% +% % \end{thebibliography} % % \begin{History} @@ -954,6 +1008,13 @@ and the derived files % \item % Support for package \xpackage{bookmark} added. % \end{Version} +% \begin{Version}{2011/05/13 v2.3} +% \item +% Fix for \cs{Hy@DestName} if the destination name contains +% special characters. +% \item +% Fix for option \xoption{name} and package \xpackage{bookmark}. +% \end{Version} % \end{History} % % \PrintIndex |