texlive[48005] Master/texmf-dist: xbmks (13jun18)
commits+karl at tug.org
commits+karl at tug.org
Wed Jun 13 23:44:46 CEST 2018
Revision: 48005
http://tug.org/svn/texlive?view=revision&revision=48005
Author: karl
Date: 2018-06-13 23:44:46 +0200 (Wed, 13 Jun 2018)
Log Message:
-----------
xbmks (13jun18)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/xbmks/README.md
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/doc1.tex
trunk/Master/texmf-dist/doc/latex/xbmks/examples/doc2.pdf
trunk/Master/texmf-dist/doc/latex/xbmks/examples/doc2.tex
trunk/Master/texmf-dist/doc/latex/xbmks/examples/master.pdf
trunk/Master/texmf-dist/doc/latex/xbmks/examples/master.tex
trunk/Master/texmf-dist/source/latex/xbmks/xbmks.dtx
trunk/Master/texmf-dist/tex/latex/xbmks/xbmks-luatex.def
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
Added Paths:
-----------
trunk/Master/texmf-dist/doc/latex/xbmks/docs/xbmks.pdf
trunk/Master/texmf-dist/doc/latex/xbmks/examples/stand-alone.tex
Modified: trunk/Master/texmf-dist/doc/latex/xbmks/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xbmks/README.md 2018-06-13 21:44:12 UTC (rev 48004)
+++ trunk/Master/texmf-dist/doc/latex/xbmks/README.md 2018-06-13 21:44:46 UTC (rev 48005)
@@ -1,6 +1,6 @@
The xbmks Package
Author: D. P. Story
-Dated: 2018/06/11
+Dated: 2018/06/13
Short description: Create a cross-document bookmark tree.
@@ -16,6 +16,11 @@
PDF Creator: no restrictions, use dvips->distiller|ps2pdf, pdflatex,
lualatex, or xelatex.
+What's New (2018/06/13) Corrected a misspelling in the driver specification
+for pdfmark. Now allow the docbundle key to be empty or missing; in this
+case, we set docbundle=\jobname. Bookmarks are generated for that document
+alone, as an extra benefit, the keys colors and style are still obeyed.
+
Now, I simply must get back to my retirement.
Added: trunk/Master/texmf-dist/doc/latex/xbmks/docs/xbmks.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/xbmks/docs/xbmks.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xbmks/docs/xbmks.pdf 2018-06-13 21:44:12 UTC (rev 48004)
+++ trunk/Master/texmf-dist/doc/latex/xbmks/docs/xbmks.pdf 2018-06-13 21:44:46 UTC (rev 48005)
Property changes on: trunk/Master/texmf-dist/doc/latex/xbmks/docs/xbmks.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
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-06-13 21:44:12 UTC (rev 48004)
+++ trunk/Master/texmf-dist/doc/latex/xbmks/docs/xbmksman.tex 2018-06-13 21:44:46 UTC (rev 48005)
@@ -11,11 +11,16 @@
aebxmp
]{aeb_pro}
\usepackage{aeb_mlink}
+\usepackage{xbmks}
\usepackage{graphicx,array}
%\usepackage{myriadpro}
%\usepackage{calibri}
\usepackage[altbullet]{lucidbry}
+\xbmksetup{colors={intdoc=red},style={intbf}}
+
+\addtolength{\marginparwidth}{20pt}
+
%\previewtrue
%\usepackage{makeidx}
%\makeindex
@@ -56,7 +61,7 @@
email={dpstory at acrotex.net},
subject={Documentation for the richtext package from AcroTeX},
talksite={\url{www.acrotex.net}},
- version={1.0, 2018/06/11},
+ version={v1.1, 2018/06/13},
keywords={AcroTeX, rich text strings},
copyrightStatus=True,
copyrightNotice={Copyright (C) \the\year, D. P. Story},
@@ -193,9 +198,9 @@
\paragraph*{Description of the key-values}
\begin{description}
- \item[\texttt{docbundle}] (Required) The value of this key, \emph{which
- is required to be nonempty}, is a comma-delimited list of base names
- that are a part of this document collection, or bundle. For example,
+ \item[\texttt{docbundle}] (Optional) The value of this key, if present,
+ is a comma-delimited list of base names that are a part of this
+ document collection, or bundle. For example,
\begin{Verbatim}[xleftmargin=\amtIndent]
docbundle={lesson1,lesson2,lesson3,lesson4}
\end{Verbatim}
@@ -214,6 +219,15 @@
create a internal jump or an external jump. If anything goes wrong, be sure
to check the spelling of each file listed.
+\textbf{Empty or missing \texttt{docbundle} key.} If this key is missing,
+then it is assigned a value of \cs{jobname}. As a result, normal bookmarks
+are generated for the document \cs{jobname}; however, as an extra benefit,
+the other keys are obeyed (\texttt{colors} and \texttt{style}). See the
+sample file \texttt{stand-alone.tex} found in the \texttt{examples} file.
+This manual uses the \pkg{xbmks} package with,
+\begin{Verbatim}[xleftmargin=\amtIndent]
+\xbmksetup{colors={intdoc=red},style={intbf}}
+\end{Verbatim}
\item[\texttt{colors}] (Optional) For any given document in the bundle,
there are two types of links in the bookmarks, a link to an item in
the current (or internal) document, or a link to an external document
@@ -316,15 +330,17 @@
collection and the \texttt{xbmks.cfg} configuration file that
contains your setup options for the whole collection.
\item If you are using \app{pdflatex}, \app{lualatex}, or
- \app{xelatex}, you are done; otherwise, covert each DVI file to PS
+ \app{xelatex}, you are done; otherwise, convert each DVI file to PS
using \app{dvips}. Finally, convert each PS file in the collection
to PDF using \app{Acrobat Distiller} or \app{ps2pdf}.
\item Delete all auxiliary file, including \texttt{xbmks.cfg} if you wish.
\end{enumerate}
If you are on \app{Windows OS}, you can use the
-\app{\href{http://www.acrotex.net/builders/}{AeB Builder}}
-utility.\footnote{\url{http://www.acrotex.net/builders/}} In that utility, you would select the
-\app{External cross-references} option, found on the user-interface.
+\app{\href{http://www.acrotex.net/builders/}{AeB Builder}} utility to build
+the entire bundle of
+documents.\footnote{\url{http://www.acrotex.net/builders/}} In that utility,
+you would select the \app{External cross-references} option, found on the
+user-interface.
\paragraph*{Sample files.} The demonstration files are found in the \texttt{examples} folder. The
\pkg{xcolor} package is used, otherwise, the packages used are minimal.
Modified: trunk/Master/texmf-dist/doc/latex/xbmks/examples/doc1.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/xbmks/examples/doc1.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xbmks/examples/doc1.tex 2018-06-13 21:44:12 UTC (rev 48004)
+++ trunk/Master/texmf-dist/doc/latex/xbmks/examples/doc1.tex 2018-06-13 21:44:46 UTC (rev 48005)
@@ -1,11 +1,12 @@
-\documentclass{article}
+\documentclass[12pt]{article}
\usepackage{xcolor}
+%\usepackage{xr-hyper}
\usepackage[bookmarksopen]{hyperref}
\usepackage{xbmks}
+
% the xr-hyper package may also be used if you have
% cross document links within the body of the doc
-%\usepackage{xr-hyper}
%\externaldocument[m-]{master}
%\externaldocument[d2-]{doc2}
Modified: trunk/Master/texmf-dist/doc/latex/xbmks/examples/doc2.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/xbmks/examples/doc2.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xbmks/examples/doc2.tex 2018-06-13 21:44:12 UTC (rev 48004)
+++ trunk/Master/texmf-dist/doc/latex/xbmks/examples/doc2.tex 2018-06-13 21:44:46 UTC (rev 48005)
@@ -1,11 +1,11 @@
-\documentclass{article}
+\documentclass[12pt]{article}
\usepackage{xcolor}
+%\usepackage{xr-hyper}
\usepackage[bookmarksopen]{hyperref}
\usepackage{xbmks}
% the xr-hyper package may also be used if you have
% cross document links within the body of the doc
-%\usepackage{xr-hyper}
%\externaldocument[m-]{master}
%\externaldocument[d1-]{doc1}
Modified: trunk/Master/texmf-dist/doc/latex/xbmks/examples/master.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/xbmks/examples/master.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xbmks/examples/master.tex 2018-06-13 21:44:12 UTC (rev 48004)
+++ trunk/Master/texmf-dist/doc/latex/xbmks/examples/master.tex 2018-06-13 21:44:46 UTC (rev 48005)
@@ -1,11 +1,11 @@
-\documentclass{article}
+\documentclass[12pt]{article}
\usepackage{xcolor}
+%\usepackage{xr-hyper}
\usepackage[bookmarksopen]{hyperref}
\usepackage{xbmks}
% the xr-hyper package may also be used if you have
% cross document links within the body of the doc
-%\usepackage{xr-hyper}
%\externaldocument[d1-]{doc1}
%\externaldocument[d2-]{doc2}
@@ -12,13 +12,13 @@
\title{On merging bookmarks for several documents}
\author{D. P. Story}
-% The \xbmksetup command is placed in only
+% The \xbmksetup command is placed in only
% one of the collection. It is written to xbmks.cfg
% in input by the other files to obtain uniformity
% of option choices.
\xbmksetup{%
docbundle={master,doc1,doc2},
-% colors={intdoc=red,extdoc},
+ colors={intdoc=red,extdoc},
style={intbf}
}
Added: trunk/Master/texmf-dist/doc/latex/xbmks/examples/stand-alone.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xbmks/examples/stand-alone.tex (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/xbmks/examples/stand-alone.tex 2018-06-13 21:44:46 UTC (rev 48005)
@@ -0,0 +1,51 @@
+\documentclass[12pt]{article}
+\usepackage{xcolor}
+\usepackage[bookmarksopen]{hyperref}
+\usepackage{xbmks}
+
+\title{Stand alone document}
+\author{D. P. Story}
+
+\xbmksetup{%
+% docbundle={\jobname},
+ colors={intdoc=red,extdoc},
+ style={intbf}
+}
+
+\begin{document}
+
+\maketitle
+
+\section{Section One}
+
+When the \texttt{docbundle} key is either empty or is not present, \textsf{xbmks} sets it
+to \verb~\jobname~. No cross-document bookmarks are generated because there was no specification
+for creating (multiple values for \texttt{docbundle}); instead, we obtain a standard document
+with bookmarks, but the color and style of of the bookmarks are controlled by the \texttt{colors}
+and \texttt{style} keys, as seen in the preamble.
+
+\subsection{Section One: subSec 1}
+
+Some content goes here.
+
+\newpage
+
+
+\section{Section Two}
+
+Some content goes here.
+
+
+\subsection{Section Two: subSec 1}
+
+Some content goes here.
+
+\newpage
+
+\subsection{Section Two: subSec 2}
+
+Some content goes here.
+
+
+\end{document}
+
Property changes on: trunk/Master/texmf-dist/doc/latex/xbmks/examples/stand-alone.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/source/latex/xbmks/xbmks.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/xbmks/xbmks.dtx 2018-06-13 21:44:12 UTC (rev 48004)
+++ trunk/Master/texmf-dist/source/latex/xbmks/xbmks.dtx 2018-06-13 21:44:46 UTC (rev 48005)
@@ -3,7 +3,7 @@
% makeindex -s gind.ist -o xbmks.ind xbmks.idx
%<*copyright>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% xbmks.sty package, %%
+%% xbmks.sty package, %%
%% Copyright (C) 2016--2018 %%
%% dpstory at uakron.edu %%
%% %%
@@ -16,11 +16,14 @@
%</copyright>
%<package>\NeedsTeXFormat{LaTeX2e}[1997/12/01]
%<package>\ProvidesPackage{xbmks}
-%<package> [2018/06/11 v1.0 xbmks: Cross-document bookmarks (dps)]
+%<package> [2018/06/13 v1.1 xbmks: Cross-document bookmarks (dps)]
%<*driver>
\documentclass{ltxdoc}
-\usepackage[colorlinks,hyperindex=false]{hyperref}
+\usepackage{xcolor}
+\usepackage[colorlinks,hyperindex=false,bookmarksopen]{hyperref}
\usepackage{fancyvrb,array,calc}
+\usepackage{xbmks}
+\xbmksetup{colors={intdoc=red},style={intbf}}
%\pdfstringdefDisableCommands{\let\\\textbackslash}
\EnableCrossrefs
\CodelineIndex
@@ -108,26 +111,26 @@
% \section{Drivers and options}
% We support the drivers \app{dvips} (and \app{dvipsone}), \app{pdflatex}, \app{lualatex}, and \app{xelatex}; these
% options are then named \opt{dvipsone}, \opt{dvips}, \opt{pdftex}, \opt{luatex}, and \opt{xetex}.
+% \changes{v1.1}{2018/06/13}{Fixed misspelling of drive command for pdfmark case}
% \begin{macrocode}
-\def\xbmk at driver{bmks-pdfmark.def}
-\DeclareOptionX{dvipsone}{\def\xbmk at driver{bmks-pdfmark.def}}
+\def\xbmk at driver{xbmks-pdfmark.def}
+\DeclareOptionX{dvipsone}{\def\xbmk at driver{xbmks-pdfmark.def}}
\DeclareOptionX{dvips}{\def\xbmk at driver{xbmks-pdfmark.def}}
\DeclareOptionX{pdftex}{\def\xbmk at driver{xbmks-pdftex.def}}
\DeclareOptionX{luatex}{\def\xbmk at driver{xbmks-pdftex.def}}
\DeclareOptionX{xetex}{\def\xbmk at driver{xbmks-xetex.def}}
-%\AtEndOfPackage{\InputIfFileExists{\xbmk at driver}{}{}}
% \end{macrocode}
% \section{Process the options}
% \begin{macrocode}
\ifpdf\ExecuteOptionsX{pdftex}\else
- \ifxetex\ExecuteOptionsX{xetex}\else
- \let\ExecuteOptions at SAVE\ExecuteOptions
- \let\ExecuteOptions\ExecuteOptionsX
- \InputIfFileExists{web.cfg}{}
- {\@ifundefined{l at tex@@@@driver}{\ExecuteOptionsX{dvips}}
- {\ExecuteOptionsX{dvipsone}}}%
- \let\ExecuteOptions\ExecuteOptions at SAVE
- \fi\fi
+\ifxetex\ExecuteOptionsX{xetex}\else
+ \let\ExecuteOptions at SAVE\ExecuteOptions
+ \let\ExecuteOptions\ExecuteOptionsX
+ \InputIfFileExists{web.cfg}{}
+ {\@ifundefined{l at tex@@@@driver}{\ExecuteOptionsX{dvips}}
+ {\ExecuteOptionsX{dvipsone}}}%
+ \let\ExecuteOptions\ExecuteOptions at SAVE
+\fi\fi
\ProcessOptionsX
% \end{macrocode}
% \section{Requirements}
@@ -138,6 +141,7 @@
% \end{macrocode}
% \begin{macro}{\xbmksetup}
% Set the cross-document options:
+% \changes{v1.1}{2018/06/13}{Allow an empty value of docbundle, its value is set to \string\cs{jobname}}%
%\begin{quote}\ttfamily\obeylines
%\string\xbmksetup\darg{%
%\qquad docbundle=\darg{\ameta{doc\SUB1},\ameta{doc\SUB2},...,\ameta{doc\SUB{n}}},
@@ -161,22 +165,29 @@
\define at key{xbmk at colors}{intdoc}[]{%
\HyColor at BookmarkColor{#1}{\xbmks at intdoc}{xbmks}{intdoc}%
\ifx\xbmks at intdoc\@empty\else
- \edef\xbmks at intdoc{/C [\xbmks at intdoc]}\fi
+ \edef\xbmks at intdoc{/C[\xbmks at intdoc]}\fi
}
\let\xbmks at intdoc\@empty
\define at key{xbmk at colors}{extdoc}[]{%
\HyColor at BookmarkColor{#1}{\xbmks at extdoc}{xbmks}{extdoc}%
\ifx\xbmks at extdoc\@empty\else
- \edef\xbmks at extdoc{/C [\xbmks at extdoc]}\fi
+ \edef\xbmks at extdoc{/C[\xbmks at extdoc]}\fi
}
\let\xbmks at extdoc\@empty
-\let\xbmks at Yes=y
-\let\xbmks at No=n
+\let\xbmks at Yes=y \let\xbmks at No=n
\define at boolkey{xbmk at style}{intbf}[true]{} %\ifKV at xbmk@style at intbf
\define at boolkey{xbmk at style}{extbf}[true]{}
\define at boolkey{xbmk at style}{intit}[true]{}
\define at boolkey{xbmk at style}{extit}[true]{}
-\newcommand{\xbmksetup}[1]{\write at xbmks@cfg{#1}}
+\newcommand{\xbmksetup}[1]{\setkeys{xbmksetup}{#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}%
+ \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
+}
\def\write at xbmks@cfg#1{%
\newwrite\xbmks at setup \immediate\openout \xbmks at setup xbmks.cfg
\set at display@protect
@@ -186,12 +197,8 @@
}
\newcommand{\xbmksetupi}[1]{%
\setkeys{xbmksetup}{#1}%
- \ifx\x at bmks@docs\@empty
- \PackageWarning{xbmks}{The docbundle key is empty,\MessageBreak
- this key must have a value for cross-document bookmarks\MessageBreak
- to be generated}\else
\edef\@exp at for{\noexpand\docbundle{\x at bmks@docs}}\expandafter
- \@exp at for\fi
+ \@exp at for
\edef\@exp at keys{\noexpand
\setkeys{xbmk at colors}{\x at bmks@colors}}\@exp at keys
\edef\@exp at keys{\noexpand
@@ -518,7 +525,6 @@
bookmark package is not supported;\MessageBreak
this package does nothing, as a result}}
{\InputIfFileExists{\xbmk at driver}{}{}}
-
%</package>
% \end{macrocode}
% \Finale
Modified: trunk/Master/texmf-dist/tex/latex/xbmks/xbmks-luatex.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/xbmks/xbmks-luatex.def 2018-06-13 21:44:12 UTC (rev 48004)
+++ trunk/Master/texmf-dist/tex/latex/xbmks/xbmks-luatex.def 2018-06-13 21:44:46 UTC (rev 48005)
@@ -7,7 +7,7 @@
%% xbmks.dtx (with options: `copyright,luatex')
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% xbmks.sty package, %%
+%% xbmks.sty package, %%
%% Copyright (C) 2016--2018 %%
%% dpstory at uakron.edu %%
%% %%
Modified: trunk/Master/texmf-dist/tex/latex/xbmks/xbmks-pdfmark.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/xbmks/xbmks-pdfmark.def 2018-06-13 21:44:12 UTC (rev 48004)
+++ trunk/Master/texmf-dist/tex/latex/xbmks/xbmks-pdfmark.def 2018-06-13 21:44:46 UTC (rev 48005)
@@ -7,7 +7,7 @@
%% xbmks.dtx (with options: `copyright,pdfmark')
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% xbmks.sty package, %%
+%% xbmks.sty package, %%
%% Copyright (C) 2016--2018 %%
%% dpstory at uakron.edu %%
%% %%
Modified: trunk/Master/texmf-dist/tex/latex/xbmks/xbmks-pdftex.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/xbmks/xbmks-pdftex.def 2018-06-13 21:44:12 UTC (rev 48004)
+++ trunk/Master/texmf-dist/tex/latex/xbmks/xbmks-pdftex.def 2018-06-13 21:44:46 UTC (rev 48005)
@@ -7,7 +7,7 @@
%% xbmks.dtx (with options: `copyright,pdftex')
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% xbmks.sty package, %%
+%% xbmks.sty package, %%
%% Copyright (C) 2016--2018 %%
%% dpstory at uakron.edu %%
%% %%
Modified: trunk/Master/texmf-dist/tex/latex/xbmks/xbmks-xetex.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/xbmks/xbmks-xetex.def 2018-06-13 21:44:12 UTC (rev 48004)
+++ trunk/Master/texmf-dist/tex/latex/xbmks/xbmks-xetex.def 2018-06-13 21:44:46 UTC (rev 48005)
@@ -7,7 +7,7 @@
%% xbmks.dtx (with options: `copyright,xetex')
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% xbmks.sty package, %%
+%% xbmks.sty package, %%
%% Copyright (C) 2016--2018 %%
%% dpstory at uakron.edu %%
%% %%
Modified: trunk/Master/texmf-dist/tex/latex/xbmks/xbmks.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/xbmks/xbmks.sty 2018-06-13 21:44:12 UTC (rev 48004)
+++ trunk/Master/texmf-dist/tex/latex/xbmks/xbmks.sty 2018-06-13 21:44:46 UTC (rev 48005)
@@ -7,7 +7,7 @@
%% xbmks.dtx (with options: `copyright,package')
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% xbmks.sty package, %%
+%% xbmks.sty package, %%
%% Copyright (C) 2016--2018 %%
%% dpstory at uakron.edu %%
%% %%
@@ -19,25 +19,25 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}[1997/12/01]
\ProvidesPackage{xbmks}
- [2018/06/11 v1.0 xbmks: Cross-document bookmarks (dps)]
+ [2018/06/13 v1.1 xbmks: Cross-document bookmarks (dps)]
\RequirePackage{xkeyval}
\RequirePackage{ifpdf}[2006/02/20]
\RequirePackage{ifxetex}[2006/08/21]
-\def\xbmk at driver{bmks-pdfmark.def}
-\DeclareOptionX{dvipsone}{\def\xbmk at driver{bmks-pdfmark.def}}
+\def\xbmk at driver{xbmks-pdfmark.def}
+\DeclareOptionX{dvipsone}{\def\xbmk at driver{xbmks-pdfmark.def}}
\DeclareOptionX{dvips}{\def\xbmk at driver{xbmks-pdfmark.def}}
\DeclareOptionX{pdftex}{\def\xbmk at driver{xbmks-pdftex.def}}
\DeclareOptionX{luatex}{\def\xbmk at driver{xbmks-pdftex.def}}
\DeclareOptionX{xetex}{\def\xbmk at driver{xbmks-xetex.def}}
\ifpdf\ExecuteOptionsX{pdftex}\else
- \ifxetex\ExecuteOptionsX{xetex}\else
- \let\ExecuteOptions at SAVE\ExecuteOptions
- \let\ExecuteOptions\ExecuteOptionsX
- \InputIfFileExists{web.cfg}{}
- {\@ifundefined{l at tex@@@@driver}{\ExecuteOptionsX{dvips}}
- {\ExecuteOptionsX{dvipsone}}}%
- \let\ExecuteOptions\ExecuteOptions at SAVE
- \fi\fi
+\ifxetex\ExecuteOptionsX{xetex}\else
+ \let\ExecuteOptions at SAVE\ExecuteOptions
+ \let\ExecuteOptions\ExecuteOptionsX
+ \InputIfFileExists{web.cfg}{}
+ {\@ifundefined{l at tex@@@@driver}{\ExecuteOptionsX{dvips}}
+ {\ExecuteOptionsX{dvipsone}}}%
+ \let\ExecuteOptions\ExecuteOptions at SAVE
+\fi\fi
\ProcessOptionsX
\RequirePackage{hyperref}
\define at key{xbmksetup}{docbundle}[]{\def\x at bmks@docs{#1}}
@@ -49,22 +49,29 @@
\define at key{xbmk at colors}{intdoc}[]{%
\HyColor at BookmarkColor{#1}{\xbmks at intdoc}{xbmks}{intdoc}%
\ifx\xbmks at intdoc\@empty\else
- \edef\xbmks at intdoc{/C [\xbmks at intdoc]}\fi
+ \edef\xbmks at intdoc{/C[\xbmks at intdoc]}\fi
}
\let\xbmks at intdoc\@empty
\define at key{xbmk at colors}{extdoc}[]{%
\HyColor at BookmarkColor{#1}{\xbmks at extdoc}{xbmks}{extdoc}%
\ifx\xbmks at extdoc\@empty\else
- \edef\xbmks at extdoc{/C [\xbmks at extdoc]}\fi
+ \edef\xbmks at extdoc{/C[\xbmks at extdoc]}\fi
}
\let\xbmks at extdoc\@empty
-\let\xbmks at Yes=y
-\let\xbmks at No=n
+\let\xbmks at Yes=y \let\xbmks at No=n
\define at boolkey{xbmk at style}{intbf}[true]{} %\ifKV at xbmk@style at intbf
\define at boolkey{xbmk at style}{extbf}[true]{}
\define at boolkey{xbmk at style}{intit}[true]{}
\define at boolkey{xbmk at style}{extit}[true]{}
-\newcommand{\xbmksetup}[1]{\write at xbmks@cfg{#1}}
+\newcommand{\xbmksetup}[1]{\setkeys{xbmksetup}{#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}%
+ \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
+}
\def\write at xbmks@cfg#1{%
\newwrite\xbmks at setup \immediate\openout \xbmks at setup xbmks.cfg
\set at display@protect
@@ -74,12 +81,8 @@
}
\newcommand{\xbmksetupi}[1]{%
\setkeys{xbmksetup}{#1}%
- \ifx\x at bmks@docs\@empty
- \PackageWarning{xbmks}{The docbundle key is empty,\MessageBreak
- this key must have a value for cross-document bookmarks\MessageBreak
- to be generated}\else
\edef\@exp at for{\noexpand\docbundle{\x at bmks@docs}}\expandafter
- \@exp at for\fi
+ \@exp at for
\edef\@exp at keys{\noexpand
\setkeys{xbmk at colors}{\x at bmks@colors}}\@exp at keys
\edef\@exp at keys{\noexpand
@@ -127,7 +130,6 @@
bookmark package is not supported;\MessageBreak
this package does nothing, as a result}}
{\InputIfFileExists{\xbmk at driver}{}{}}
-
\endinput
%%
%% End of file `xbmks.sty'.
More information about the tex-live-commits
mailing list