diff options
author | Karl Berry <karl@freefriends.org> | 2018-09-30 21:23:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-09-30 21:23:18 +0000 |
commit | 0e00fb64c271b0107e65fdf601df25e39f61b57f (patch) | |
tree | d8770513326a4cb339513523d8b7e315c68ed37e /Master/texmf-dist/source/latex/hyperref/hyperref.dtx | |
parent | 11e3c92a57cc2bb390d65b5856bc5c1beb47a4ec (diff) |
hyperref (30sep18)
git-svn-id: svn://tug.org/texlive/trunk@48792 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/hyperref/hyperref.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/hyperref/hyperref.dtx | 66 |
1 files changed, 58 insertions, 8 deletions
diff --git a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx index 587275bcf3f..7749997cc0b 100644 --- a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx +++ b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx @@ -48,7 +48,7 @@ %<puvnenc>\ProvidesFile{puvnenc.def} %<puarenc>\ProvidesFile{puarenc.def} %<psdextra>\ProvidesFile{psdextra.def} -%<!none> [2018/02/06 v6.86b % +%<!none> [2018/09/30 v6.88a % %<package> Hypertext links for LaTeX] %<nohyperref> Dummy hyperref (SR)] %<driver> Hyperref documentation driver file] @@ -1378,6 +1378,7 @@ \let\foreignlanguage\@secondoftwo \let\textlatin\@firstofone \ltx@IfUndefined{language@group}{}{% + \let\bbl@info\@gobble \csname HyPsd@babel@\language@group\endcsname }% \HyPsd@GreekPatch @@ -5982,6 +5983,27 @@ \def\pageautorefname{Trang}% } % \end{macrocode} +% Greek, see github issue 52 +% \begin{macrocode} +\def\HyLang@greek{% + \def\equationautorefname{\textEpsilon\textxi\acctonos\textiota\textsigma\textomega\textsigma\texteta}% + \def\footnoteautorefname{\textupsilon\textpi\textomicron\textsigma\texteta\textmu\textepsilon\acctonos\textiota\textomega\textsigma\texteta}% + \def\itemautorefname{\textalpha\textnu\texttau\textiota\textkappa\textepsilon\acctonos\textiota\textmu\textepsilon\textnu\textomicron}% + \def\figureautorefname{\textSigma\textchi\acctonos\texteta\textmu\textalpha}% + \def\tableautorefname{\textPi\acctonos\textiota\textnu\textalpha\textkappa\textalpha}% + \def\partautorefname{\textMu\acctonos\textepsilon\textrho\textomicron\textvarsigma}% + \def\appendixautorefname{\textPi\textalpha\textrho\acctonos\textalpha\textrho\texttau\texteta\textmu\textalpha}% + \def\chapterautorefname{\textkappa\textepsilon\textphi\acctonos\textalpha\textlambda\textalpha\textiota\textomicron}% + \def\sectionautorefname{\textepsilon\textnu\acctonos\textomicron\texttau\texteta\texttau\textalpha}% + \def\subsectionautorefname{\textupsilon\textpi\textomicron\textepsilon\textnu\acctonos\textomicron\texttau\texteta\texttau\textalpha}% + \def\subsubsectionautorefname{\textupsilon\textpi\textomicron-\textupsilon\textpi\textomicron\textepsilon\textnu\acctonos\textomicron\texttau\texteta\texttau\textalpha}% + \def\paragraphautorefname{\textpi\textalpha\textrho\acctonos\textalpha\textgamma\textrho\textalpha\textphi\textomicron\textvarsigma}% + \def\subparagraphautorefname{\textupsilon\textpi\textomicron\textpi\textalpha\textrho\acctonos\textalpha\textgamma\textrho\textalpha\textphi\textomicron\textvarsigma}% + \def\FancyVerbLineautorefname{\textgamma\textrho\textalpha\textmu\textmu\acctonos\texteta}% + \def\theoremautorefname{\textTheta\textepsilon\acctonos\textomega\textrho\texteta\textmu\textalpha}% + \def\pageautorefname{\textsigma\textepsilon\textlambda\acctonos\textiota\textdelta\textalpha}% +} +% \end{macrocode} % % Instead of package babel's definition of \cmd{\addto} the % implementation of package varioref is used. Additionally @@ -6057,6 +6079,7 @@ \HyLang@DeclareLang{italian}{italian}{} \HyLang@DeclareLang{magyar}{magyar}{} \HyLang@DeclareLang{hungarian}{magyar}{} +\HyLang@DeclareLang{greek}{greek}{} % \end{macrocode} % More work is needed in case of options |vietnamese| and |vietnam|. % \begin{macrocode} @@ -6581,6 +6604,12 @@ \HyPsd@PrerenderUnicode{#1}% \pdfstringdef\@pdfcreator{#1}% } +\define@key{Hyp}{addtopdfcreator}{% + \HyXeTeX@CheckUnicode + \HyPsd@XeTeXBigCharstrue + \HyPsd@PrerenderUnicode{#1}% + \pdfstringdef\@pdfcreator{\@pdfcreator, #1}% +} \define@key{Hyp}{pdfcreationdate}{% \begingroup \Hy@unicodefalse @@ -7009,7 +7038,7 @@ \let\@pdftitle\ltx@empty \let\@pdfauthor\ltx@empty \let\@pdfproducer\relax -\def\@pdfcreator{LaTeX with hyperref package} +\def\@pdfcreator{LaTeX with hyperref} \let\@pdfcreationdate\ltx@empty \let\@pdfmoddate\ltx@empty \let\@pdfsubject\ltx@empty @@ -7650,7 +7679,7 @@ \Hy@Info{Link coloring ON}% \else \ifHy@frenchlinks - \def\Hy@colorlink#1{\begingroup\fontshape{sc}\selectfont}% + \def\Hy@colorlink#1{\begingroup\fontshape{\scdefault}\selectfont}% \def\Hy@endcolorlink{\endgroup}% \Hy@Info{French linking ON}% \else @@ -8055,7 +8084,10 @@ % \end{macrocode} % We also have a need to give a \LaTeX\ \emph{label} to a % hyper reference, to ease the pain of referring to it later. +% \verb|\hyperrefundefinedlink| may be redefined by a user +% to add colour or other formatting. % \begin{macrocode} +\let\hyperrefundefinedlink\@firstofone \def\label@hyperref[#1]{% \expandafter\label@@hyperref\csname r@#1\endcsname{#1}% }% @@ -8066,7 +8098,7 @@ Hyper reference `#2' on page \thepage \space undefined% }% \begingroup - #3% + \hyperrefundefinedlink{#3}% \endgroup \else \hyper@@link{\expandafter\@fifthoffive#1}% @@ -9947,7 +9979,7 @@ % % If options |pdftitle| and |pdfauthor| are not used, % these informations for the pdf information dictionary -% can be extracted by the \title and \author. +% can be extracted by the \cmd{\title} and \cmd{\author}. % \begin{macrocode} \ifHy@pdfusetitle \let\HyOrg@title\title @@ -9972,9 +10004,9 @@ }% % \end{macrocode} % -% The case, that \title, or \author are given before +% The case, that \cmd{\title}, or \cmd{\author} are given before % hyperref is loaded, is much more complicate, because -% LaTeX initializes the macros \@title and \@author with +% LaTeX initializes the macros \cmd{\@title} and \cmd{\@author} with % LaTeX error and warning messages. % \begin{macrocode} \begingroup @@ -12460,6 +12492,13 @@ % destination is empty. But if `the most recent destination' is not % what you expect, you will be in trouble. % \begin{macrocode} +% In newer \LaTeX\ releases this is defined to put a \verb|%| at the end of the +% line in the \textt{toc}file. +% \begin{macrocode} +\providecommand\protected@file@percent{} +% \end{macrocode} +% +% \begin{macrocode} \def\addcontentsline#1#2#3{% toc extension, type, tag \begingroup \let\label\@gobble @@ -12506,7 +12545,7 @@ \endgroup \fi \addtocontents{#1}{% - \protect\contentsline{#2}{#3}{\thepage}{\@currentHref}% + \protect\contentsline{#2}{#3}{\thepage}{\@currentHref}\protected@file@percent }% \endgroup } @@ -14161,6 +14200,7 @@ \Hy@DisableOption{pdftitle}% \Hy@DisableOption{pdfsubject}% \Hy@DisableOption{pdfcreator}% + \Hy@DisableOption{addtopdfcreator}% \Hy@DisableOption{pdfcreationdate}% \Hy@DisableOption{pdfmoddate}% \Hy@DisableOption{pdfproducer}% @@ -14793,6 +14833,8 @@ \Hy@DisableOption{pdftitle}% \Hy@DisableOption{pdfsubject}% \Hy@DisableOption{pdfcreator}% + \Hy@DisableOption{addtopdfcreator}% + \Hy@DisableOption{pdfcreationdate}% \Hy@DisableOption{pdfcreationdate}% \Hy@DisableOption{pdfmoddate}% \Hy@DisableOption{pdfproducer}% @@ -15308,6 +15350,8 @@ \Hy@DisableOption{pdftitle}% \Hy@DisableOption{pdfsubject}% \Hy@DisableOption{pdfcreator}% + \Hy@DisableOption{addtopdfcreator}% + \Hy@DisableOption{pdfcreationdate}% \Hy@DisableOption{pdfcreationdate}% \Hy@DisableOption{pdfmoddate}% \Hy@DisableOption{pdfproducer}% @@ -16235,6 +16279,8 @@ \Hy@DisableOption{pdftitle}% \Hy@DisableOption{pdfsubject}% \Hy@DisableOption{pdfcreator}% + \Hy@DisableOption{addtopdfcreator}% + \Hy@DisableOption{pdfcreationdate}% \Hy@DisableOption{pdfcreationdate}% \Hy@DisableOption{pdfmoddate}% \Hy@DisableOption{pdfproducer}% @@ -16572,6 +16618,8 @@ \Hy@DisableOption{pdftitle}% \Hy@DisableOption{pdfsubject}% \Hy@DisableOption{pdfcreator}% + \Hy@DisableOption{addtopdfcreator}% + \Hy@DisableOption{pdfcreationdate}% \Hy@DisableOption{pdfcreationdate}% \Hy@DisableOption{pdfmoddate}% \Hy@DisableOption{pdfproducer}% @@ -17715,6 +17763,8 @@ \Hy@DisableOption{pdftitle}% \Hy@DisableOption{pdfsubject}% \Hy@DisableOption{pdfcreator}% + \Hy@DisableOption{addtopdfcreator}% + \Hy@DisableOption{pdfcreationdate}% \Hy@DisableOption{pdfcreationdate}% \Hy@DisableOption{pdfmoddate}% \Hy@DisableOption{pdfproducer}% |