[latex3-commits] [git/LaTeX3-latex3-hyperref] master: updates to doc and build after comments from @pablgonz (cf19d89)

David Carlisle d.p.carlisle at gmail.com
Sat Jan 18 09:23:09 CET 2020


Repository : https://github.com/latex3/hyperref
On branch  : master
Link       : https://github.com/latex3/hyperref/commit/cf19d89e3be38235e225e71eef912cb39b675595

>---------------------------------------------------------------

commit cf19d89e3be38235e225e71eef912cb39b675595
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Sat Jan 18 08:23:09 2020 +0000

    updates to doc and build after comments from @pablgonz


>---------------------------------------------------------------

cf19d89e3be38235e225e71eef912cb39b675595
 backref.dtx         |   6 +--
 bmhydoc.sty         |  17 +++----
 build.lua           |   7 +--
 doc/manual.tex      |   1 -
 hylatex.ltx         |  43 -----------------
 hyperref.dtx        |   7 +--
 hyperref.ins        |  12 +++--
 manifest.txt        |  38 ---------------
 mkctan              |   6 +--
 nameref.dtx         |   2 +-
 psdmapshortnames.pl | 133 ----------------------------------------------------
 11 files changed, 28 insertions(+), 244 deletions(-)

diff --git a/backref.dtx b/backref.dtx
index 35c3725..6520d0b 100644
--- a/backref.dtx
+++ b/backref.dtx
@@ -3,7 +3,7 @@
 %% Copyright (C) 1995-2000 David Carlisle, Sebastian Rahtz, Heiko Oberdiek
 %%               2001-2012 Heiko Oberdiek
 %%               2016-2019 Oberdiek Package Suport Group
-%%               2019-     The LaTeX3 Project
+%%               2019-2020 The LaTeX3 Project
 %%      https://github.com/latex3/hyperref/issues
 %%
 %% This file is part of the `Hyperref Bundle'.
@@ -32,7 +32,7 @@
 %<driver>\ProvidesFile{backref.drv}
 % \fi
 % \ProvidesFile{backref.dtx}
-  [2016/05/21 v1.39 Bibliographical back referencing]%
+  [2020/01/14 v1.40 Bibliographical back referencing]%
 %
 % \CheckSum{768}
 %
@@ -53,7 +53,7 @@
       last revised \filedate.%
     }%
   }%
-  \author{David Carlisle and Sebastian Rahtz (deceased)}%
+  \author{David Carlisle and Sebastian Rahtz (deceased)\thanks{https://github.com/latex3/hyperref/issues}}%
   \date{\filedate}%
   \maketitle
   \makeatletter
diff --git a/bmhydoc.sty b/bmhydoc.sty
index e649179..d25c4d6 100644
--- a/bmhydoc.sty
+++ b/bmhydoc.sty
@@ -1,6 +1,13 @@
+%% Copyright
+%% 1995-2015 Heiko Oberdiek
+%% 2016-2019 Oberdiek Package Support Group
+%% 2019-2020 LaTeX3 Project
+%%      https://github.com/latex3/hyperref/issues
+%%
+%% This file is part of the `Hyperref Bundle'.
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{bmhydoc}
-  [2019/01/08 Bookmark section with hyperref documentation (HO)]
+  [2020/01/14 Bookmark section with hyperref documentation (HO)]
 
 % This package adds bookmark entries that are added at the end
 % and lists and links the PDF files of the hyperref documentation.
@@ -43,9 +50,6 @@
 }
 \AtEndDocument{%
   \@bmhydoc[open=false]{0}{manual.pdf}{Hyperref manual}
-%  \@bmhydoc{1}{README.pdf}{README}
-%  \@bmhydoc{1}{ChangeLog.pdf}{ChangeLog}
-  \@bmhydoc{1}{options.pdf}{Options}
   \@bmhydoc{1}{slides.pdf}{Bookmark talk, slides}
   \@bmhydoc{2}{paper.pdf}{Bookmark talk, paper}
   \@bmhydoc{1}{hyperref.pdf}{Sources: hyperref.dtx}
@@ -77,10 +81,7 @@
       \entry{manual.pdf}{\textbf{Manual}}
         The \textbf{USER MANUAL} (also available as HTML).
       \entry{ChangeLog.txt}{ChangeLog}
-        This file records the version history
-        (also available as text file).
-      \entry{options.pdf}{Options}
-        This file provides a short option summary.
+        This file records the version history.
       \entry{slides.pdf}{Bookmark talk, slides}
         Slides for the talk ``PDF information and navigation elements with
         hyperref, pdfTeX and thumbpdf'' at Euro\TeX~1999.
diff --git a/build.lua b/build.lua
index 7039232..d5e6606 100644
--- a/build.lua
+++ b/build.lua
@@ -1,6 +1,5 @@
 -- Build script for hyperref
 
--- Build script for hyperref
 module = "hyperref"
 
 docfiledir="doc"
@@ -19,7 +18,7 @@ checkengines = {"pdftex","etex","luatex"}
 checkruns = 2
 
 -- start at getting ctan build organised, not complete yet (mkctan script still used)
-sourcefiles        = {"*.dtx", "*.ins", "bmhydoc.sty","*-hyper.sty","paperslides99.zip","psdmapshortnames.pl","doc/*.???"}
+sourcefiles        = {"*.dtx", "*.ins", "bmhydoc.sty","*-hyper.sty","paperslides99.zip","doc/*.???"}
 typesetfiles={"doc/manual.tex","backref.dtx","hyperref.dtx","nameref.dtx"}
 
 
@@ -60,7 +59,6 @@ ctanlocations={
 "hyperref/doc/paper.pdf",
 "hyperref/doc/slides.pdf",
 "hyperref/hluatex.dtx",
-"hyperref/hylatex.ltx",
 "hyperref/hyperref.dtx",
 "hyperref/hyperref.ins",
 "hyperref/hyperref.pdf",
@@ -70,7 +68,6 @@ ctanlocations={
 "hyperref/nameref.pdf",
 "hyperref/ntheorem-hyper.sty",
 "hyperref/paperslides99.zip",
-"hyperref/psdmapshortnames.pl",
 "hyperref/xr-hyper.sty"
 }
 
@@ -104,7 +101,6 @@ tdslocations={
 "source/latex/hyperref/hyperref.dtx",
 "source/latex/hyperref/hyperref.ins",
 "source/latex/hyperref/nameref.dtx",
-"source/latex/hyperref/psdmapshortnames.pl",
 "tex/latex/hyperref/backref.sty",
 "tex/latex/hyperref/hdvipdfm.def",
 "tex/latex/hyperref/hdvips.def",
@@ -119,7 +115,6 @@ tdslocations={
 "tex/latex/hyperref/hvtexhtm.def",
 "tex/latex/hyperref/hvtexmrk.def",
 "tex/latex/hyperref/hxetex.def",
-"tex/latex/hyperref/hylatex.ltx",
 "tex/latex/hyperref/hyperref.sty",
 "tex/latex/hyperref/hypertex.def",
 "tex/latex/hyperref/minitoc-hyper.sty",
diff --git a/doc/manual.tex b/doc/manual.tex
index d9ff646..df5ed49 100644
--- a/doc/manual.tex
+++ b/doc/manual.tex
@@ -136,7 +136,6 @@
 \makeatother
 
 \usepackage{array,longtable}
-\usepackage{ifluatex,ifxetex}
 \ifnum 0\ifluatex 1\else\ifxetex 1\fi\fi=0 %
   \usepackage[T1]{fontenc}%
   \usepackage{lmodern}%
diff --git a/hylatex.ltx b/hylatex.ltx
deleted file mode 100644
index 7eb223d..0000000
--- a/hylatex.ltx
+++ /dev/null
@@ -1,43 +0,0 @@
-%
-% hylatex.ltx
-% Tanmoy Bhattacharya and Sebastian Rahtz, June 1995
-%
-% Use this file to make a format which includes the
-% hyperref package in every LaTeX job.
-%
-% In web2c 7-based TeX world, we create the format file with
-%   tex  -ini \&latex hylatex.ltx
-% and then use with
-%   tex \&hylatex
-%
-% In teTeX (TeX version 3.14159 (C version 6.1), LaTeX2e <1996/12/01>
-% patch level 1), I create the format file with
-%   initex \&latex hylatex.ltx
-% and then use with
-%   virtex \&hylatex
-%
-% This method is not supported by the LaTeX2e team, so
-% I will try to find a better way. \AtBeginDocument does not
-% work for reasons which I do not understand.
-%
-\makeatletter
-\expandafter\everyjob\expandafter{\the\everyjob
- \typeout{ ********* Hyperref Macros loaded ******* }}
-%
-\expandafter\let\csname REAL document\endcsname\document
-%
-\def\document{%
- \endgroup
-%
-% NOTE:
-% This setup sets up no options by default;
-% change to suit your needs, by writing a hyperref.cfg control
-% file.
-%
- \RequirePackage{hyperref}
- \begingroup
- \@endpefalse\csname REAL document\endcsname
-}
-\makeatother
-\dump
-
diff --git a/hyperref.dtx b/hyperref.dtx
index c715dbb..5a4055d 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -1,7 +1,8 @@
 % \iffalse
-%% File: hyperref.dtx Copyright 1995-2001 Sebastian Rahtz,
-%% with portions written by David Carlisle and Heiko Oberdiek,
-%% 2001-2012 Heiko Oberdiek.
+%% File: hyperref.dtx
+%% Copyright
+%% 1995-2001 Sebastian Rahtz, with portions written by David Carlisle and Heiko Oberdiek,
+%% 2001-2015 Heiko Oberdiek.
 %% 2016-2019 Oberdiek Package Support Group
 %% 2019-2020 LaTeX3 Project
 %%      https://github.com/latex3/hyperref/issues
diff --git a/hyperref.ins b/hyperref.ins
index 5779e77..e313a86 100644
--- a/hyperref.ins
+++ b/hyperref.ins
@@ -3,10 +3,12 @@
 %% driver files from the doc files in this package when run through
 %% LaTeX or TeX.
 %%
-%% Copyright 1995-1999 Sebastian Rahtz
-%%           1999-2000 Sebastian Rahtz, Heiko Oberdiek
-%%           2001-2012 Heiko Oberdiek
-%%           2016 Oberdiek Package Support Group
+%% Copyright
+%% 1995-2001 Sebastian Rahtz, with portions written by David Carlisle and Heiko Oberdiek
+%% 2001-2015 Heiko Oberdiek
+%% 2016-2019 Oberdiek Package Support Group
+%% 2019-2020 LaTeX3 Project
+%%      https://github.com/latex3/hyperref/issues
 %%
 %% This file is part of the `Hyperref Bundle'.
 %% -------------------------------------------
@@ -29,7 +31,7 @@
 %%
 %% --------------- start of docstrip commands ------------------
 %%
-\def\filedate{2010/01/25}
+\def\filedate{2020/01/14}
 \def\batchfile{hyperref.ins}
 \input docstrip
 
diff --git a/manifest.txt b/manifest.txt
index 4b9f349..818a27d 100644
--- a/manifest.txt
+++ b/manifest.txt
@@ -24,9 +24,6 @@ xr-hyper.sty
 bmhydoc.sty
 	Help package for generating the documentation.
 
-psdmapshortnames.pl
-	Helper script for generating psdextra.def.
-
 ChangeLog.txt
         History of versions
 hylatex.ltx
@@ -79,44 +76,9 @@ manual.pdf
 manual.html, manual[2-6].html, manual.css,
 cmsy10-21.gif, cmmi10-22.gif
         HTML version of the manual.
-options.tex, options.pdf
-        Short description of options from package `hyperref'.
 paper.pdf
         Online version of paper for Heiko Oberdiek's talk
         at EuroTeX'99.
 slides.pdf
         Slides for Heiko Oberdiek's talk at EuroTeX'99.
 
-% Directory test/
-% ==============
-
-test0.tex, test0.dvi, hog.eps, hog.pdf
-test1.tex
-test2.tex
-test3.tex, phys1.jpg, phys2.jpg
-test4.tex, bit.tex
-test5.tex
-test6.tex
-test7.tex
-test8.tex
-testams.tex
-testbib.tex, testbib.bib, testbib.bbl
-testbookmark.tex
-testfor2.tex
-testform.tex
-testnb.tex
-testoz.tex
-testslide.tex, seminar.con
-testurl.tex, testurl.bib, testurl.bbl
-picture.eps, picture.pdf, picture.png
-        Used in `test0.tex' and `test1.tex'.
-
-testbmgl.tex
-        Test file that produces all glyphs of PDFDocEncoding
-        in the bookmarks and shows the commands to produce them.
-testbmu.tex
-        Test file that produces glyphs 0x0000 until 0x04FF
-        of Unicode in the bookmarks and the commands.
-        (Caution: large pool size needed.)
-
-test-bm-pu-licr.tex
diff --git a/mkctan b/mkctan
index 597c9f6..ac63f68 100755
--- a/mkctan
+++ b/mkctan
@@ -57,14 +57,14 @@ cp doc/fdl.tex doc/manual.tex \
    hyperref-tds/source/latex/hyperref/doc
 cp paperslides99.zip hyperref-tds/source/latex/hyperref/doc
 
-cp backref.dtx bmhydoc.sty hyperref.dtx hyperref.ins nameref.dtx hluatex.dtx psdmapshortnames.pl \
+cp backref.dtx bmhydoc.sty hyperref.dtx hyperref.ins nameref.dtx hluatex.dtx \
   hyperref-tds/source/latex/hyperref
 
 mkdir hyperref-tds/tex
 mkdir hyperref-tds/tex/latex
 mkdir hyperref-tds/tex/latex/hyperref
 
-cp  backref.sty hdvipdfm.def hdvips.def hdvipson.def hdviwind.def hpdftex.def htex4ht.cfg htex4ht.def htexture.def hvtex.def hvtexhtm.def hvtexmrk.def hxetex.def hylatex.ltx hyperref.sty hypertex.def minitoc-hyper.sty nameref.sty nohyperref.sty ntheorem-hyper.sty pd1enc.def pdfmark.def psdextra.def puarenc.def puenc.def puvnenc.def xr-hyper.sty \
+cp  backref.sty hdvipdfm.def hdvips.def hdvipson.def hdviwind.def hpdftex.def htex4ht.cfg htex4ht.def htexture.def hvtex.def hvtexhtm.def hvtexmrk.def hxetex.def hyperref.sty hypertex.def minitoc-hyper.sty nameref.sty nohyperref.sty ntheorem-hyper.sty pd1enc.def pdfmark.def psdextra.def puarenc.def puenc.def puvnenc.def xr-hyper.sty \
   hluatex.def \
   hyperref-tds/tex/latex/hyperref
 
@@ -79,5 +79,5 @@ mv hyperref.tds.zip ../..
 cd ../..
 echo making main zip
 rm -f hyperref.zip
-zip -r hyperref.zip hyperref.tds.zip hyperref/{backref.dtx,backref.pdf,bmhydoc.sty,ChangeLog.txt,paperslides99.zip,doc/*.{gif,pdf,html,css},hylatex.ltx,hyperref.dtx,hyperref.ins,hluatex.dtx,hyperref.pdf,manifest.txt,minitoc-hyper.sty,nameref.dtx,nameref.pdf,ntheorem-hyper.sty,psdmapshortnames.pl,README.md,xr-hyper.sty}
+zip -r hyperref.zip hyperref.tds.zip hyperref/{backref.dtx,backref.pdf,bmhydoc.sty,ChangeLog.txt,paperslides99.zip,doc/*.{gif,pdf,html,css},hyperref.dtx,hyperref.ins,hluatex.dtx,hyperref.pdf,manifest.txt,minitoc-hyper.sty,nameref.dtx,nameref.pdf,ntheorem-hyper.sty,README.md,xr-hyper.sty}
 mv hyperref*.zip hyperref
diff --git a/nameref.dtx b/nameref.dtx
index d8801b5..f6ea1c8 100644
--- a/nameref.dtx
+++ b/nameref.dtx
@@ -4,7 +4,7 @@
 %%               2000 Sebastian Rahtz, Heiko Oberdiek
 %%               2001-2012 Heiko Oberdiek
 %%               2016-2019 Oberdiek Package Suport Group
-%%               2019-     The LaTeX3 Project
+%%               2019-2020 The LaTeX3 Project
 %%      https://github.com/latex3/hyperref/issues
 %%
 %% This file is part of the `Hyperref Bundle'.
diff --git a/psdmapshortnames.pl b/psdmapshortnames.pl
deleted file mode 100644
index 9b2f280..0000000
--- a/psdmapshortnames.pl
+++ /dev/null
@@ -1,133 +0,0 @@
-#!/usr/bin/env perl
-use strict;
-$^W=1;
-
-# File: psdmapshortnames.pl
-# Date: 2012-07-12
-# Copyright (c) 2012 by Heiko Oberdiek.
-#
-# This file is part of the `Hyperref Bundle'.
-# -------------------------------------------
-#
-# This work may be distributed and/or modified under the
-# conditions of the LaTeX Project Public License, either version 1.3
-# of this license or (at your option) any later version.
-# The latest version of this license is in
-#   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'.
-#
-# The Current Maintainer of this work is The LaTeX3 Project.
-#
-# The list of all files belonging to the `Hyperref Bundle' is
-# given in the file `manifest.txt'.
-
-my $file_org = 'hyperref.dtx';
-my $file_bak = 'hyperref.dtx.bak';
-my $file_tmp = 'hyperref.dtx.tmp';
-
-my @lines_map;
-my $cmd_map = 'psdmapshortnames';
-my $found_map_beg = 0;
-my $found_map_end = 0;
-
-my @lines_alias;
-my $cmd_alias = 'psdaliasnames';
-my $found_alias_beg = 0;
-my $found_alias_end = 0;
-
-open(IN, '<', $file_org) or die "!!! Error: Cannot open `$file_org'!\n";
-binmode(IN);
-unlink $file_tmp if -f $file_tmp;
-open(OUT, '>', $file_tmp) or die "!!! Error: Cannot open `$file_org'!\n";
-binmode(OUT);
-
-while (<IN>) {
-    print OUT;
-    if (/^\\newcommand\*\{\\$cmd_map\}\{\%\s*$/) {
-        $found_map_beg = 1;
-        print OUT @lines_map;
-        while (<IN>) {
-            if (/^\}\% \\$cmd_map$/) {
-                print OUT;
-                $found_map_end = 1;
-                last;
-            }
-            if (/^\}/) {
-                print OUT;
-                last;
-            }
-        }
-    }
-    if (/^\\DeclareTextCommand\{\\text(\w+)\}\{PU\}\{[\\\d\w]+\}\%\*/) {
-        my $name = $1;
-        push @lines_map, "  \\let\\$name\\text$name\n";
-    }
-    
-    if (/^\\newcommand\*\{\\$cmd_alias\}\{\%\s*$/) {
-        $found_alias_beg = 1;
-        print OUT @lines_alias;
-        while (<IN>) {
-            if (/^\}\% \\$cmd_alias$/) {
-                print OUT;
-                $found_alias_end = 1;
-                last;
-            }
-            if (/^\}/) {
-                print OUT;
-                last;
-            }
-        }
-    }
-    if (/^%\* \\([A-Za-z@]+)\s+->\s+\\(\w+)(\s|$)/) {
-        my $name_old = $1;
-        my $name_new = $2;
-        push @lines_alias, "  \\let\\$name_new\\$name_old\n";
-    }
-}
-
-close(IN);
-close(OUT);
-
-$found_map_beg or die "!!! Error: Definition for \\$cmd_map not found!\n";
-$found_map_end or die "!!! Error: End of \\$cmd_map not found!\n";
-
-$found_alias_beg or die "!!! Error: Definition for \\$cmd_alias not found!\n";
-$found_alias_end or die "!!! Error: End of \\$cmd_alias not found!\n";
-
-my $count_map = @lines_map;
-print "* $count_map map entries found.\n";
-
-my $count_alias = @lines_alias;
-print "* $count_alias alias entries found.\n";
-
-use Digest::MD5;
-
-open(IN, '<', $file_org) or die "!!! Error: Cannot open `$file_org'!\n";
-binmode(IN);
-my $md5_org = Digest::MD5->new->addfile(*IN)->hexdigest;
-close(IN);
-print "* 0x$md5_org = md5($file_org)\n";
-
-open(IN, '<', $file_tmp) or die "!!! Error: Cannot open `$file_tmp'!\n";
-binmode(IN);
-my $md5_tmp = Digest::MD5->new->addfile(*IN)->hexdigest;
-close(IN);
-print "* 0x$md5_tmp = md5($file_tmp)\n";
-
-if ($md5_org eq $md5_tmp) {
-    print "* Done, nothing to do.\n";
-    exit(0);
-}
-
-unlink $file_bak if -f $file_bak;
-rename $file_org, $file_bak or die "!!! Error: Moving `$file_org' to `$file_bak' failed!\n";
-print "* $file_org -> $file_bak\n";
-rename $file_tmp, $file_org or die "!!! Error: Moving `$file_tmp' to `$file_org' failed!\n";
-print "* $file_tmp -> $file_org\n";
-
-print "* Done.\n";
-
-__END__





More information about the latex3-commits mailing list