summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-05-16 21:25:43 +0000
committerKarl Berry <karl@freefriends.org>2020-05-16 21:25:43 +0000
commit74dfa355b56ae4ff3cde96e2b636198c15bcf1fc (patch)
tree35a2f503b35fdc9ad269b3b610ddf9965a260ec1 /Master/texmf-dist/source/latex
parent74237231bc12e187c52de51818182997c2fb3158 (diff)
hyperref (16may20)
git-svn-id: svn://tug.org/texlive/trunk@55161 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex')
-rw-r--r--Master/texmf-dist/source/latex/hyperref/doc/manual.tex66
-rw-r--r--Master/texmf-dist/source/latex/hyperref/hluatex.dtx26
-rw-r--r--Master/texmf-dist/source/latex/hyperref/hyperref.dtx96
3 files changed, 37 insertions, 151 deletions
diff --git a/Master/texmf-dist/source/latex/hyperref/doc/manual.tex b/Master/texmf-dist/source/latex/hyperref/doc/manual.tex
index 242388fef93..ded7aeb799a 100644
--- a/Master/texmf-dist/source/latex/hyperref/doc/manual.tex
+++ b/Master/texmf-dist/source/latex/hyperref/doc/manual.tex
@@ -177,7 +177,7 @@
}
\makeatother
\title{Hypertext marks in \hologo{LaTeX}: a manual for \xpackage{hyperref}}
-\date{\mydate}
+\date{2020-05-15 v7.00e}
\begin{document}
@@ -747,7 +747,7 @@ pdftrapped & name & empty & Sets the document information Trapped ent
pdfinfo & key value list & empty & Alternative interface for setting the
document information.\\
pdfview & name & XYZ & Sets the default PDF `view' for each link \\
-pdfstartpage & integer & 1 & Determines on which page the PDF file is opened. \\
+pdfstartpage & integer & 1 & Determines on which page the PDF file is opened. An empty value means, the entry is not set.\\
pdfstartview & name & Fit & Set the startup page view \\
pdfremotestartview & name & Fit & Set the startup page view of remote PDF files \\
pdfpagescrop & n n n n & & Sets the default PDF crop box for pages. This should be a set of four numbers \\
@@ -867,7 +867,7 @@ Fly & /Di /M & Changes are flown out or in (as specified by /M), in the dir
offscreen except when /Di is None. \\
Push & /Di & The old page slides off the screen while the new page slides in,
pushing the old page out in the direction
- specified by /Di. \\
+ specified by /Di. \\
Cover & /Di & The new page slides on to the screen in the direction specified
by /Di, covering the old page. \\
Uncover & /Di & The old page slides off the screen in the direction specified by
@@ -1245,7 +1245,7 @@ the page reference. First \ci{pageautorefname} is checked before
\ci{pagename}.
For instances where you want a reference to use the correct counter, but
-not to create a link, there are starred forms (these starred forms exist even if
+not to create a link, there are starred forms (these starred forms exist even if
hyperref has been loaded with \verb|implicit=false|):
\begin{cmdsyntax}
@@ -1678,7 +1678,7 @@ sequence error would arise.
\subsection{Customizing index style file with \textbackslash nohyperpage}
- Since version 2008/08/14 v6.78f.
+ Since version 2008/08/14~v6.78f.
@@ -2051,7 +2051,7 @@ sequence error would arise.
require the protection of some characters, e.g. unmatched
left or right parentheses need escaping or the escape
character itself (backslash).
- Since 2006/02/12 v6.75a the PS/PDF driver should do
+ Since 2006/02/12~v6.75a the PS/PDF driver should do
this automatically. However I assume a problem with
compatibility, especially regarding the form part where
larger amounts of JavaScript code can be present.
@@ -2979,50 +2979,20 @@ For equations the following might work:
\subsubsection{XeTeX}
Default for the encoding of bookmarks is `pdfencoding=auto'.
- That means the strings are always treated as unicode strings.
- Only if the string restricts to the printable ASCII set,
+ That means the strings are always treated as unicode strings.
+ Only if the string restricts to the printable ASCII set,
it is written as ASCII string. The reason is that the
\verb|\special| does not support PDFDocEncoding.
-
-
- XeTeX uses the program xdvipdfmx for PDF output generation.
- This program behaves a little different from dvipdfm, because
- of the supported Unicode characters. Strings for bookmarks
- or information entries can be output directly. The
- big chars (char code > 255) are written in UTF-8 and
- xdvipdfmx tries to convert them to UTF-16BE. However
- hyperref already provides PDF strings encoded in UTF-16BE,
- thus the result is a warning
-
- \verb"Failed to convert input string to UTF16..."
-
- The best way would be, if xdvipdfm could detect the
- byte order marker (\verb|\376\377|) and skips the conversion
- if that marker is present.
-
- For the time being I added the following to hyperref,
- when option `pdfencoding=auto' is set (default for XeTeX):
- The string is converted back to big characters thus that the
- string is written as UTF-8. But I am very unhappy with this
- solution. Main disadvantage:
- Two versions of \verb|\pdfstringdef| are needed:
-
- a) The string is converted back to big characters for
- the ``tainted key'' of xdvipdfmx (\verb|spc_pdfm.c: default_taintkeys|).
- The subset hyperref uses is /Title, /Author, /Subject,
- /Keywords, /Creator, /Producer, /T. Any changes of this
- set in xdvipdfmx cannot be detected by hyperref.
-
- b) Without conversion for the other strings , providing UTF16be
- directly. Examples: Prefix of page labels, some elements
- of formulars.
-
- Thus \textbf{each} application that uses \verb|\pdfstringdef| now must
- check, if it defines a string for some of the tained keys.
- If yes, then the call of \verb|\pdfstringdef| should be preceded
- by \verb|\csname HyPsd@XeTeXBigCharstrue\endcsname|.
- Example: package bookmark.
+ In older versions hyperref contained special conversion code from
+ UTF-16BE back to UTF-8 in a number of places for
+ xetex to avoid the xdvipdfmx warning
+
+ \verb"Failed to convert input string to UTF16..."
+
+ This is no longer needed with a current xdvipdfmx, so this code has
+ been removed. \verb|\csname HyPsd@XeTeXBigCharstrue\endcsname| should no
+ longer be used.
\section[Limitations]{Limitations%
@@ -3072,7 +3042,7 @@ For equations the following might work:
Therefore it is not clear in general which \verb|\footnotemark| references
which \verb|\footnotetext|. But that is necessary to implement hyperlinking.
Thus the implementation of hyperref does not support the optional
- argument of \verb|\footnotemark\verb| and \verb|\footnotetext|.
+ argument of \verb|\footnotemark| and \verb|\footnotetext|.
\section[Hints]{Hints%
diff --git a/Master/texmf-dist/source/latex/hyperref/hluatex.dtx b/Master/texmf-dist/source/latex/hyperref/hluatex.dtx
index 52f1c0ebae3..17d19b77ad5 100644
--- a/Master/texmf-dist/source/latex/hyperref/hluatex.dtx
+++ b/Master/texmf-dist/source/latex/hyperref/hluatex.dtx
@@ -1,13 +1,16 @@
% \iffalse
-%% Source File: hluatex.dtx
-%% Copyright 2016 Oberdiek Package Support Group
-%% Copyright 2019 The LaTeX3 Project
-%%
-%%
-%% Derived from hpdftex.def
-%%
-%% This file may be distributed under the terms of the LPPL.
-%% See README for details.
+% Source File: hluatex.dtx
+% 2020-05-15 v7.00e
+%
+% Copyright
+% 2016-2019 Oberdiek Package Support Group
+% 2019-2020 The LaTeX3 Project
+% https://github.com/latex3/hyperref/issues%%
+%
+% Derived from hpdftex.def
+%
+% This file may be distributed under the terms of the LPPL.
+% See README for details.
%
%<*driver>
\documentclass{ltxdoc}
@@ -28,7 +31,8 @@
%
% \begin{macrocode}
%<*luatex>
-%% 2019-09-17,v 6.88j force unicode encoding, see issue #101
+%% 2020-05-15 v7.00e
+%% force unicode encoding, see issue #101
%% code mostly copied from hxetex.def
\HyPsd@LoadUnicode
\Hy@unicodetrue
@@ -1364,7 +1368,6 @@
\Hy@unicodefalse
\fi
\fi
- \HyPsd@XeTeXBigCharstrue
\pdfstringdef\Hy@gtemp#1%
\endgroup
\let#1\Hy@gtemp
@@ -1720,7 +1723,6 @@
\let\partnumberline\@gobble
\let\chapternumberline\@gobble
\fi
- \HyPsd@XeTeXBigCharstrue
\pdfstringdef\Hy@tempa{#2}%
\HyPsd@SanitizeForOutFile\Hy@tempa
\if@filesw
diff --git a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
index 67860c979c1..aa618b1bd2b 100644
--- a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
+++ b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
@@ -50,7 +50,7 @@
%<puvnenc>\ProvidesFile{puvnenc.def}
%<puarenc>\ProvidesFile{puarenc.def}
%<psdextra>\ProvidesFile{psdextra.def}
-%<!none> [2020/01/14 v7.00d %
+%<!none> [2020-05-15 v7.00e %
%<package> Hypertext links for LaTeX]
%<nohyperref> Dummy hyperref (SR)]
%<driver> Hyperref documentation driver file]
@@ -1911,7 +1911,6 @@
\HyPsd@EscapeTeX#1%
\Hy@unicodefalse
}{%
- \HyPsd@ToBigChars#1%
\HyPsd@EscapeTeX#1%
}%
\else
@@ -1926,7 +1925,6 @@
}%
\fi
\fi
- \HyPsd@XeTeXBigCharsfalse
% \end{macrocode}
%
% \paragraph{User hook.}
@@ -1951,82 +1949,8 @@
% \subsection{Encodings}
%
% \subsubsection{Xe\TeX}
-%
-% \begin{macrocode}
-\edef\Hy@temp{\catcode0=\the\catcode0\relax}
-\catcode\z@=12 %
-\ifxetex
- \expandafter\@firstofone
-\else
- \let\HyPsd@XeTeXBigCharstrue\@empty
- \let\HyPsd@XeTeXBigCharsfalse\@empty
- \expandafter\@gobble
-\fi
-{%
- \newif\ifHyPsd@XeTeXBigChars
- \def\HyPsd@XeTeXBigCharsfalse{%
- \global\let\ifHyPsd@XeTeXBigChars\iffalse
- }%
- \def\HyPsd@XeTeXBigCharstrue{%
- \global\let\ifHyPsd@XeTeXBigChars\iftrue
- }%
- \def\HyPsd@ToBigChars#1{%
- \ifHyPsd@XeTeXBigChars
- \EdefEscapeHex\HyPsd@UnescapedString{%
- \expandafter\@gobbletwo\HyPsd@UnescapedString
- }%
- \begingroup
- \toks@{}%
- \escapechar=92\relax
- \let\x\HyPsd@ToBigChar
- \expandafter\HyPsd@ToBigChar\HyPsd@UnescapedString
- \relax\relax\relax\relax\relax\relax\relax
- \edef\x{%
- \endgroup
- \gdef\noexpand#1{\the\toks@}%
- }%
- \x
- \fi
- }%
- \def\HyPsd@ToBigChar#1#2#3#4{%
- \ifx\relax#1\relax
- \let\x\relax
- \else
- \count@="#1#2#3#4\relax
- \let\y\@empty
- \lccode\z@=\count@
- \ifnum\count@=40 % (
- \let\y\@backslashchar
- \else
- \ifnum\count@=41 % )
- \let\y\@backslashchar
- \else
- \ifnum\count@=92 % backslash
- \let\y\@backslashchar
- \else
- \ifnum\count@=10 % newline
- \edef\y##1{\string\n}%
- \else
- \ifnum\count@=13 % carriage return
- \edef\y##1{\string\r}%
- \fi
- \fi
- \fi
- \fi
- \fi
- \lowercase{%
- \toks@\expandafter{%
- \the\expandafter\toks@
- \y
- ^^@%
- }%
- }%
- \fi
- \x
- }%
-}
-\Hy@temp
-% \end{macrocode}
+% change 2020-05-13: the special code for XeTeX big chars has been removed as no
+% longer needed.
%
% \subsubsection{Workaround for package linguex}
%
@@ -5289,7 +5213,7 @@
}%
}
% \end{macrocode}
-% \verb|\Hy@pdfminorversion| already used elsewhere to denote \verb|\pdfminorversion|
+% \verb|\Hy@pdfminorversion| already used elsewhere to denote \verb|\pdfminorversion|
% or \verb|\pdfvariable majorversion}| so introduce new names here.
% \begin{macrocode}
\@namedef{Hy@pdfversion@1.2}{\def\Hy@pdf@majorversion{1}\def\Hy@pdf@minorversion{2}}%
@@ -5312,7 +5236,7 @@
\@ifundefined{pdfminorversion}{}{%
\@ifundefined{pdfmajorversion}{%
\newcount\pdfmajorversion
-\pdfmajorversion=1
+\pdfmajorversion=1
}{}%
}
\ifx\pdfmajorversion\@undefined\else
@@ -6598,31 +6522,26 @@
}
\define@key{Hyp}{pdftitle}{%
\HyXeTeX@CheckUnicode
- \HyPsd@XeTeXBigCharstrue
\HyPsd@PrerenderUnicode{#1}%
\pdfstringdef\@pdftitle{#1}%
}
\define@key{Hyp}{pdfauthor}{%
\HyXeTeX@CheckUnicode
- \HyPsd@XeTeXBigCharstrue
\HyPsd@PrerenderUnicode{#1}%
\pdfstringdef\@pdfauthor{#1}%
}
\define@key{Hyp}{pdfproducer}{%
\HyXeTeX@CheckUnicode
- \HyPsd@XeTeXBigCharstrue
\HyPsd@PrerenderUnicode{#1}%
\pdfstringdef\@pdfproducer{#1}%
}
\define@key{Hyp}{pdfcreator}{%
\HyXeTeX@CheckUnicode
- \HyPsd@XeTeXBigCharstrue
\HyPsd@PrerenderUnicode{#1}%
\pdfstringdef\@pdfcreator{#1}%
}
\define@key{Hyp}{addtopdfcreator}{%
\HyXeTeX@CheckUnicode
- \HyPsd@XeTeXBigCharstrue
\HyPsd@PrerenderUnicode{#1}%
\pdfstringdef\@pdfcreator{\@pdfcreator, #1}%
}
@@ -6640,13 +6559,11 @@
}
\define@key{Hyp}{pdfsubject}{%
\HyXeTeX@CheckUnicode
- \HyPsd@XeTeXBigCharstrue
\HyPsd@PrerenderUnicode{#1}%
\pdfstringdef\@pdfsubject{#1}%
}
\define@key{Hyp}{pdfkeywords}{%
\HyXeTeX@CheckUnicode
- \HyPsd@XeTeXBigCharstrue
\HyPsd@PrerenderUnicode{#1}%
\pdfstringdef\@pdfkeywords{#1}%
}
@@ -6727,7 +6644,6 @@
\def\HyInfo@tmp##1{%
\kv@define@key{pdfinfo}{##1}{%
\HyXeTeX@CheckUnicode
- \HyPsd@XeTeXBigCharstrue
\HyPsd@PrerenderUnicode{####1}%
\pdfstringdef\HyInfo@Value{####1}%
\global\expandafter
@@ -19832,7 +19748,6 @@
\Hy@unicodefalse
\fi
\fi
- \HyPsd@XeTeXBigCharstrue
\pdfstringdef\Hy@gtemp#1%
\endgroup
\let#1\Hy@gtemp
@@ -20324,7 +20239,6 @@
\let\partnumberline\@gobble
\let\chapternumberline\@gobble
\fi
- \HyPsd@XeTeXBigCharstrue
\pdfstringdef\Hy@tempa{#2}%
\HyPsd@SanitizeForOutFile\Hy@tempa
\if@filesw