texlive[48138] Master/texmf-dist: xbmks (4jul18)

commits+karl at tug.org commits+karl at tug.org
Wed Jul 4 23:28:02 CEST 2018


Revision: 48138
          http://tug.org/svn/texlive?view=revision&revision=48138
Author:   karl
Date:     2018-07-04 23:28:02 +0200 (Wed, 04 Jul 2018)
Log Message:
-----------
xbmks (4jul18)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/xbmks/README.md
    trunk/Master/texmf-dist/doc/latex/xbmks/docs/xbmks.pdf
    trunk/Master/texmf-dist/doc/latex/xbmks/docs/xbmksman.pdf
    trunk/Master/texmf-dist/doc/latex/xbmks/docs/xbmksman.tex
    trunk/Master/texmf-dist/doc/latex/xbmks/examples/doc1.pdf
    trunk/Master/texmf-dist/doc/latex/xbmks/examples/doc2.pdf
    trunk/Master/texmf-dist/doc/latex/xbmks/examples/master.pdf
    trunk/Master/texmf-dist/doc/latex/xbmks/examples/stand-alone.tex
    trunk/Master/texmf-dist/source/latex/xbmks/xbmks.dtx
    trunk/Master/texmf-dist/source/latex/xbmks/xbmks.ins
    trunk/Master/texmf-dist/tex/latex/xbmks/xbmks-pdfmark.def
    trunk/Master/texmf-dist/tex/latex/xbmks/xbmks-pdftex.def
    trunk/Master/texmf-dist/tex/latex/xbmks/xbmks-xetex.def
    trunk/Master/texmf-dist/tex/latex/xbmks/xbmks.sty

Modified: trunk/Master/texmf-dist/doc/latex/xbmks/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xbmks/README.md	2018-07-04 21:27:48 UTC (rev 48137)
+++ trunk/Master/texmf-dist/doc/latex/xbmks/README.md	2018-07-04 21:28:02 UTC (rev 48138)
@@ -1,6 +1,6 @@
 The xbmks Package
 Author: D. P. Story 
-Dated: 2018/06/25
+Dated: 2018/07/04
 
 Short description: Create a cross-document bookmark tree. 
 
@@ -16,6 +16,9 @@
 PDF Creator: no restrictions, use dvips->distiller|ps2pdf, pdflatex, 
 lualatex, or xelatex.
 
+What's New (2018/07/04) Fixed a problem wherein the bookmarks do not appear
+after an even number of compilations.
+
 What's New (2018/06/25) Defined new commands for creating bookmarks for which 
 arbitrary actions, color and style can be applied. These commands build on 
 hyperref's bookmark commands. 

Modified: trunk/Master/texmf-dist/doc/latex/xbmks/docs/xbmks.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/xbmks/docs/xbmksman.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/xbmks/docs/xbmksman.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xbmks/docs/xbmksman.tex	2018-07-04 21:27:48 UTC (rev 48137)
+++ trunk/Master/texmf-dist/doc/latex/xbmks/docs/xbmksman.tex	2018-07-04 21:28:02 UTC (rev 48138)
@@ -18,7 +18,6 @@
 \usepackage[altbullet]{lucidbry}
 
 \DeclareInitView{layoutmag={navitab:UseOutlines}}
-
 \xbmksetup{colors={int=red},styles={intbf}}
 
 \addtolength{\marginparwidth}{20pt}
@@ -64,7 +63,7 @@
     email={dpstory at acrotex.net},
     subject={Documentation for the xbmks package from AcroTeX: cross-document bookmarks},
     talksite={\url{www.acrotex.net}},
-    version={2.0.1, 2018/06/25},
+    version={v2.0.2, 2018/07/04},
     Keywords={AcroTeX, bookmarks, cross-document, document bundle},
     copyrightStatus=True,
     copyrightNotice={Copyright (C) \the\year, D. P. Story},

Modified: trunk/Master/texmf-dist/doc/latex/xbmks/examples/doc1.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/xbmks/examples/doc2.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/xbmks/examples/master.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/xbmks/examples/stand-alone.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xbmks/examples/stand-alone.tex	2018-07-04 21:27:48 UTC (rev 48137)
+++ trunk/Master/texmf-dist/doc/latex/xbmks/examples/stand-alone.tex	2018-07-04 21:28:02 UTC (rev 48138)
@@ -16,6 +16,10 @@
 
 \maketitle
 
+\pdfbookmarkx[1]{http://blog.acrotex.net}[action={/S/URI/URI(http://blog.acrotex.net)},%
+  color=magenta,style={bf}]{blog}
+
+
 \section{Section One}
 
 When the \texttt{docbundle} key is either empty or is not present, \textsf{xbmks} sets its value

Modified: trunk/Master/texmf-dist/source/latex/xbmks/xbmks.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/xbmks/xbmks.dtx	2018-07-04 21:27:48 UTC (rev 48137)
+++ trunk/Master/texmf-dist/source/latex/xbmks/xbmks.dtx	2018-07-04 21:28:02 UTC (rev 48138)
@@ -16,7 +16,7 @@
 %</copyright>
 %<package>\NeedsTeXFormat{LaTeX2e}[1997/12/01]
 %<package>\ProvidesPackage{xbmks}
-%<package> [2018/06/25 v2.0.1 xbmks: Cross-document bookmarks (dps)]
+%<package> [2018/07/04 v2.0.2 xbmks: Cross-document bookmarks (dps)]
 %<*driver>
 \documentclass{ltxdoc}
 \usepackage{xcolor}
@@ -202,7 +202,11 @@
 %    We evaluate the values of \cs{xbmksetup} by getting the values of
 %    the \texttt{xbmksetup} family.
 %    \begin{macrocode}
-\newcommand{\xbmksetup}[1]{\setkeys{xbmksetup}{#1}%
+\newcommand{\xbmksetup}[1]{\setkeys{xbmksetup}{docbundle,#1}%
+%    \end{macrocode}
+%    \changes{v2.0.2}{2018/07/04}{Added an empty docbundle argument. This solves a problem
+%    that the bookmarks not appearing after an even number of compiles.}
+%    \begin{macrocode}
   \ifx\x at bmks@docs\@empty
 %    \end{macrocode}
 %     If there is no \texttt{docbundle} is specified, we use \cs{jobname} as its
@@ -212,6 +216,7 @@
     is empty,\MessageBreak
     I will give it a value of `\jobname',\MessageBreak
     in hopes this is your intention}%
+    \gdef\xbmk at cnt{1}%
     \def\xbmks at next{\write at xbmks@cfg{docbundle={\jobname},#1}}\else
     \def\xbmks at next{\write at xbmks@cfg{#1}}\fi\xbmks at next
 }
@@ -224,7 +229,7 @@
 \def\write at xbmks@cfg#1{%
   \newwrite\xbmks at setup \immediate\openout \xbmks at setup xbmks.cfg
   \set at display@protect
-  \immediate\write\xbmks at setup{\protect\xbmksetupi{#1}}
+  \immediate\write\xbmks at setup{\protect\xbmksetupi{#1}}%
   \set at typeset@protect
   \immediate\closeout\xbmks at setup
 }
@@ -447,6 +452,12 @@
     but it will have no associated action}}}
 %    \end{macrocode}
 %    \end{macro}
+%    \begin{macrocode}
+\def\x at outWarningMsg{\PackageWarningNoLine{xbmks}{%
+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\MessageBreak
+@@ Outline files were not input, compile again @@\MessageBreak
+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@}}%
+%    \end{macrocode}
 %    These commands are implemented in the driver dependent sections.
 %    \begin{macrocode}
 % End package
@@ -495,7 +506,7 @@
             \calc at bm@number{##5}%
           }%
           \let\nextAction\@gobbletwo
-          \InputIfFileExists{\xbmk at filename.out}{}{}%
+          \InputIfFileExists{\xbmk at filename.out}{}{\x at outWarningMsg}%
           \def\@@BOOKMARK[##1][##2]##3##4##5{%
             \def\Hy at temp{##4}%
 %    \end{macrocode}
@@ -603,7 +614,7 @@
         \calc at bm@number{##5}%
       }%
       \let\nextAction\@gobbletwo
-      \InputIfFileExists{\xbmk at filename.out}{}{}%
+      \InputIfFileExists{\xbmk at filename.out}{}{\x at outWarningMsg}%
       \gdef\@@BOOKMARK[##1][##2]##3##4##5{%
         \def\Hy at temp{##4}%
         \Hy at pstringdef\Hy at pstringName{\HyperDestNameFilter{##3}}%
@@ -701,7 +712,7 @@
             \calc at bm@number{##5}%
           }%
           \let\nextAction\@gobbletwo
-          \InputIfFileExists{\xbmk at filename.out}{}{}%
+          \InputIfFileExists{\xbmk at filename.out}{}{\x at outWarningMsg}%
           \def\@@BOOKMARK[##1][##2]##3##4##5{%
             \def\Hy at temp{##4}%
             \Hy at pstringdef\Hy at pstringName{\HyperDestNameFilter{##3}}%

Modified: trunk/Master/texmf-dist/source/latex/xbmks/xbmks.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/xbmks/xbmks.ins	2018-07-04 21:27:48 UTC (rev 48137)
+++ trunk/Master/texmf-dist/source/latex/xbmks/xbmks.ins	2018-07-04 21:28:02 UTC (rev 48138)
@@ -15,7 +15,7 @@
 %%
 %% --------------- start of docstrip commands ------------------
 %%
-\def\filedate{2018/06/08}
+\def\filedate{2018/07/04}
 \def\batchfile{xbmks.ins}
 
 \input docstrip

Modified: trunk/Master/texmf-dist/tex/latex/xbmks/xbmks-pdfmark.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/xbmks/xbmks-pdfmark.def	2018-07-04 21:27:48 UTC (rev 48137)
+++ trunk/Master/texmf-dist/tex/latex/xbmks/xbmks-pdfmark.def	2018-07-04 21:28:02 UTC (rev 48138)
@@ -54,7 +54,7 @@
             \calc at bm@number{##5}%
           }%
           \let\nextAction\@gobbletwo
-          \InputIfFileExists{\xbmk at filename.out}{}{}%
+          \InputIfFileExists{\xbmk at filename.out}{}{\x at outWarningMsg}%
           \def\@@BOOKMARK[##1][##2]##3##4##5{%
             \def\Hy at temp{##4}%
             \xbmkcsarg\ifx{X_##3}\relax

Modified: trunk/Master/texmf-dist/tex/latex/xbmks/xbmks-pdftex.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/xbmks/xbmks-pdftex.def	2018-07-04 21:27:48 UTC (rev 48137)
+++ trunk/Master/texmf-dist/tex/latex/xbmks/xbmks-pdftex.def	2018-07-04 21:28:02 UTC (rev 48138)
@@ -60,7 +60,7 @@
         \calc at bm@number{##5}%
       }%
       \let\nextAction\@gobbletwo
-      \InputIfFileExists{\xbmk at filename.out}{}{}%
+      \InputIfFileExists{\xbmk at filename.out}{}{\x at outWarningMsg}%
       \gdef\@@BOOKMARK[##1][##2]##3##4##5{%
         \def\Hy at temp{##4}%
         \Hy at pstringdef\Hy at pstringName{\HyperDestNameFilter{##3}}%

Modified: trunk/Master/texmf-dist/tex/latex/xbmks/xbmks-xetex.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/xbmks/xbmks-xetex.def	2018-07-04 21:27:48 UTC (rev 48137)
+++ trunk/Master/texmf-dist/tex/latex/xbmks/xbmks-xetex.def	2018-07-04 21:28:02 UTC (rev 48138)
@@ -54,7 +54,7 @@
             \calc at bm@number{##5}%
           }%
           \let\nextAction\@gobbletwo
-          \InputIfFileExists{\xbmk at filename.out}{}{}%
+          \InputIfFileExists{\xbmk at filename.out}{}{\x at outWarningMsg}%
           \def\@@BOOKMARK[##1][##2]##3##4##5{%
             \def\Hy at temp{##4}%
             \Hy at pstringdef\Hy at pstringName{\HyperDestNameFilter{##3}}%

Modified: trunk/Master/texmf-dist/tex/latex/xbmks/xbmks.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/xbmks/xbmks.sty	2018-07-04 21:27:48 UTC (rev 48137)
+++ trunk/Master/texmf-dist/tex/latex/xbmks/xbmks.sty	2018-07-04 21:28:02 UTC (rev 48138)
@@ -19,7 +19,7 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \NeedsTeXFormat{LaTeX2e}[1997/12/01]
 \ProvidesPackage{xbmks}
- [2018/06/25 v2.0.1 xbmks: Cross-document bookmarks (dps)]
+ [2018/07/04 v2.0.2 xbmks: Cross-document bookmarks (dps)]
 \RequirePackage{xkeyval}
 \RequirePackage{ifpdf}[2006/02/20]
 \RequirePackage{ifxetex}[2006/08/21]
@@ -63,12 +63,13 @@
 \define at boolkey{xbmk at styles}{extbf}[true]{}
 \define at boolkey{xbmk at styles}{intit}[true]{}
 \define at boolkey{xbmk at styles}{extit}[true]{}
-\newcommand{\xbmksetup}[1]{\setkeys{xbmksetup}{#1}%
+\newcommand{\xbmksetup}[1]{\setkeys{xbmksetup}{docbundle,#1}%
   \ifx\x at bmks@docs\@empty
     \PackageInfo{xbmks}{The docbundle key of \string\xbmksetup\space
     is empty,\MessageBreak
     I will give it a value of `\jobname',\MessageBreak
     in hopes this is your intention}%
+    \gdef\xbmk at cnt{1}%
     \def\xbmks at next{\write at xbmks@cfg{docbundle={\jobname},#1}}\else
     \def\xbmks at next{\write at xbmks@cfg{#1}}\fi\xbmks at next
 }
@@ -75,7 +76,7 @@
 \def\write at xbmks@cfg#1{%
   \newwrite\xbmks at setup \immediate\openout \xbmks at setup xbmks.cfg
   \set at display@protect
-  \immediate\write\xbmks at setup{\protect\xbmksetupi{#1}}
+  \immediate\write\xbmks at setup{\protect\xbmksetupi{#1}}%
   \set at typeset@protect
   \immediate\closeout\xbmks at setup
 }
@@ -209,6 +210,10 @@
     {The anchor name `#1' is already defined,\MessageBreak
     change this name, the bookmark will be created\MessageBreak
     but it will have no associated action}}}
+\def\x at outWarningMsg{\PackageWarningNoLine{xbmks}{%
+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\MessageBreak
+@@ Outline files were not input, compile again @@\MessageBreak
+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@}}%
 \InputIfFileExists{xbmks.cfg}{}{}
 \@ifpackageloaded{bookmark}{\PackageWarningNoLine{xbmks}{The
   bookmark package is not supported;\MessageBreak



More information about the tex-live-commits mailing list