diff options
author | Norbert Preining <norbert@preining.info> | 2023-12-06 03:01:00 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-12-06 03:01:00 +0000 |
commit | 517bc0ad712becd89c09bdc30e6b5cdb135fcd83 (patch) | |
tree | 37e759b73fd347325b77aa612514b73d82d86825 /macros/latex/contrib/bookmark | |
parent | f4d05c7d6b687c6730e84b104235e648ca4b3ecd (diff) |
CTAN sync 202312060300
Diffstat (limited to 'macros/latex/contrib/bookmark')
-rw-r--r-- | macros/latex/contrib/bookmark/README.md | 4 | ||||
-rw-r--r-- | macros/latex/contrib/bookmark/bookmark-frozen.dtx | 4 | ||||
-rw-r--r-- | macros/latex/contrib/bookmark/bookmark.dtx | 124 | ||||
-rw-r--r-- | macros/latex/contrib/bookmark/bookmark.pdf | bin | 479157 -> 503992 bytes |
4 files changed, 82 insertions, 50 deletions
diff --git a/macros/latex/contrib/bookmark/README.md b/macros/latex/contrib/bookmark/README.md index 5e373e0e7c..6c024a40fa 100644 --- a/macros/latex/contrib/bookmark/README.md +++ b/macros/latex/contrib/bookmark/README.md @@ -1,6 +1,6 @@ # bookmark package for LaTeX -Version: 2020-11-06 v1.29 +Version: 2023-12-05 v1.30 This package implements a new bookmark (outline) organization for @@ -13,7 +13,7 @@ Package hyperref uses two runs. ## Copyright (C) * 2007, 2009-2011 Heiko Oberdiek -* 2016-2020 Oberdiek Package Support Group +* 2016-2023 Oberdiek Package Support Group ## License LATEX Project Public License, version 1.3c or later. diff --git a/macros/latex/contrib/bookmark/bookmark-frozen.dtx b/macros/latex/contrib/bookmark/bookmark-frozen.dtx index bf4456829f..0223846a14 100644 --- a/macros/latex/contrib/bookmark/bookmark-frozen.dtx +++ b/macros/latex/contrib/bookmark/bookmark-frozen.dtx @@ -1,12 +1,12 @@ % \iffalse meta-comment % % File: bookmark-frozen.dtx -% Version: 2020-11-06 v1.29 +% Version: 2023-12-05 v1.30 % Info: PDF bookmarks % % Copyright (C) % 2007-2011 Heiko Oberdiek -% 2016-2020 Oberdiek Package Support Group +% 2016-2023 Oberdiek Package Support Group % https://github.com/ho-tex/bookmark/issues % % This work may be distributed and/or modified under the diff --git a/macros/latex/contrib/bookmark/bookmark.dtx b/macros/latex/contrib/bookmark/bookmark.dtx index c4431428b9..9ead2a0c9a 100644 --- a/macros/latex/contrib/bookmark/bookmark.dtx +++ b/macros/latex/contrib/bookmark/bookmark.dtx @@ -1,12 +1,12 @@ % \iffalse meta-comment % % File: bookmark.dtx -% Version: 2020-11-06 v1.29 +% Version: 2023-12-05 v1.30 % Info: PDF bookmarks % % Copyright (C) % 2007-2011 Heiko Oberdiek -% 2016-2020 Oberdiek Package Support Group +% 2016-2023 Oberdiek Package Support Group % https://github.com/ho-tex/bookmark/issues % % This work may be distributed and/or modified under the @@ -95,7 +95,7 @@ \input docstrip.tex \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: bookmark 2020-11-06 v1.29 PDF bookmarks (HO)} +\Msg{* Package: bookmark 2023-12-05 v1.30 PDF bookmarks (HO)} \Msg{************************************************************************} \keepsilent @@ -107,11 +107,11 @@ This is a generated file. Project: bookmark -Version: 2020-11-06 v1.29 +Version: 2023-12-05 v1.30 Copyright (C) 2007-2011 Heiko Oberdiek - 2016-2020 Oberdiek Package Support Group + 2016-2023 Oberdiek Package Support Group This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either @@ -185,7 +185,7 @@ and the derived files %<*driver> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{bookmark.drv}% - [2020-11-06 v1.29 PDF bookmarks (HO)]% + [2023-12-05 v1.30 PDF bookmarks (HO)]% \documentclass{ltxdoc} \usepackage{holtxdoc}[2011/11/22] \begin{document} @@ -199,7 +199,7 @@ and the derived files % \GetFileInfo{bookmark.drv} % % \title{The \xpackage{bookmark} package} -% \date{2020-11-06 v1.29} +% \date{2023-12-05 v1.30} % \author{Heiko Oberdiek\thanks % {Please report any issues at \url{https://github.com/ho-tex/bookmark/issues}}} % @@ -297,7 +297,8 @@ and the derived files % \subsubsection{Driver options} % % Supported drivers are \xoption{pdftex}, \xoption{dvips}, -% \xoption{dvipdfm} (\xoption{xetex}), and \xoption{vtex}. +% \xoption{dvipdfmx} (\xoption{xetex} and older name +% \xoption{dvipdfm}), and \xoption{vtex}. % The \hologo{TeX} engines \hologo{pdfTeX}, \hologo{XeTeX}, % and \hologo{VTeX} are automatically detected. % The default for the DVI drivers is \xoption{dvips}. This can @@ -400,7 +401,7 @@ and the derived files % \xoption{dvips} and friends) the package detects it quite late % at the end of the document. Since version 2011/04/21 v1.21 % the package tries printing the line number and file name -% of the corresponding occurence of \cs{bookmark}. +% of the corresponding occurrence of \cs{bookmark}. % However, \hologo{TeX} does provide the line number, but % unhappily the file name is a secret. The package supports % some ways to get the file name: @@ -638,6 +639,16 @@ and the derived files % of the document. % \end{itemize} % +% \subsection{Structure destinations} +% If tagging is activated with e.g. +% \begin{verbatim} +% \DocumentMetadata{testphase=phase-III} %or some other phase a +% \end{verbatim} +% the outlines will also use structure destinations, these are destination +% bound not to a page but to a structure. This works only with pdftex, luatex and +% xetex/dvipdfmx. +% +% % \subsection{Limitations/ToDos} % % \begin{itemize} @@ -762,7 +773,7 @@ and the derived files %<*package> \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{bookmark}% - [2020-11-06 v1.29 PDF bookmarks (HO)]% + [2023-12-05 v1.30 PDF bookmarks (HO)]% % \end{macrocode} % % \subsubsection{Requirements} @@ -1815,7 +1826,7 @@ and the derived files \def\Hy@writebookmark#1#2#3#4#5{% \ifnum#4>\BKM@depth\relax \else - \def\BKM@type{#5}% + \edef\BKM@type{#5}% \ifx\BKM@type\Hy@bookmarkstype \begingroup \ifBKM@numbered @@ -1853,7 +1864,7 @@ and the derived files %<*dvipdfm> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{bkm-dvipdfm.def}% - [2020-11-06 v1.29 bookmark driver for dvipdfm (HO)]% + [2023-12-05 v1.30 bookmark driver for dvipdfm (HO)]% % \end{macrocode} % % \begin{macro}{\BKM@id} @@ -1873,6 +1884,23 @@ and the derived files \newif\ifBKM@sw % \end{macrocode} % \end{macro} +% +% \begin{macro}{\BKM@struct@dest} +% Support for structure destinations in the outline. +% \begin{macrocode} +\newcommand\BKM@struct@dest{} +\ExplSyntaxOn +\IfDocumentMetadataTF + { + \tag_if_active:T + { + \def\BKM@struct@dest{/SD~@pdf.SDest.\BKM@dest} + } + + }{} +\ExplSyntaxOff +% \end{macrocode} +% \end{macro} % % \begin{macro}{\bookmark} % \begin{macrocode} @@ -1948,6 +1976,7 @@ and the derived files /A<<% /S/GoTo% /D(\BKM@dest)% + \BKM@struct@dest >>% }% \fi @@ -2027,7 +2056,7 @@ and the derived files %<*vtex> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{bkm-vtex.def}% - [2020-11-06 v1.29 bookmark driver for VTeX (HO)]% + [2023-12-05 v1.30 bookmark driver for VTeX (HO)]% % \end{macrocode} % % \begin{macrocode} @@ -2358,7 +2387,7 @@ and the derived files %<*pdftex> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{bkm-pdftex.def}% - [2020-11-06 v1.29 bookmark driver for pdfTeX (HO)]% + [2023-12-05 v1.30 bookmark driver for pdfTeX and luaTeX (HO)]% % \end{macrocode} % % \begin{macro}{\BKM@DO@entry} @@ -2468,10 +2497,27 @@ and the derived files % Macro \cs{BKM@DefGotoNameAction} is a hook for % package \xpackage{hypdestopt}. % \begin{macrocode} -\def\BKM@DefGotoNameAction#1#2{% - \BKM@EscapeString\BKM@DO@dest - \edef#1{goto name{#2}}% -} + \def\BKM@DefGotoNameAction#1#2{% + \BKM@EscapeString\BKM@DO@dest + \edef#1{goto name{#2}}% + } +% \end{macrocode} +% If tagging is active we use also structure destinations. +% If hypdestopt is actually used this will be overwritten again. +% \begin{macrocode} +\ExplSyntaxOn +\IfDocumentMetadataTF + { + \tag_if_active:T + { + \def\BKM@DefGotoNameAction#1#2 + { + \BKM@EscapeString\BKM@DO@dest + \edef#1{goto~struct~name~{#2}~name~{#2}}% + } + } + }{} +\ExplSyntaxOff % \end{macrocode} % \end{macro} % \begin{macrocode} @@ -2509,12 +2555,14 @@ and the derived files % \subsection{Drivers with pdfmark specials} % % \subsubsection{Driver dvips} -% +% The dvips driver uses PSfile to include the bookmark to resolve a +% clash with pgf, see +% https://github.com/pgf-tikz/pgf/issues/944\#issuecomment-723099952 % \begin{macrocode} %<*dvips> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{bkm-dvips.def}% - [2020-11-06 v1.29 bookmark driver for dvips (HO)]% + [2023-12-05 v1.30 bookmark driver for dvips (HO)]% % \end{macrocode} % \begin{macro}{\BKM@PSHeaderFile} % \begin{macrocode} @@ -2851,7 +2899,6 @@ and the derived files % \begin{macro}{\BKM@LuaTeX@InitFile} % \begin{macrocode} \ifluatex - \ifnum\luatexversion>36 % \def\BKM@LuaTeX@InitFile{% \begingroup \ltx@LocToksA={}% @@ -2866,9 +2913,6 @@ and the derived files }% }\x }% - \else - \let\BKM@LuaTeX@InitFile\relax - \fi \else \let\BKM@LuaTeX@InitFile\relax \fi @@ -2950,7 +2994,7 @@ and the derived files % (which is equivalent to the previously used % \cs{AfterLastShipout} of \xpackage{atveryend}'s), % because it still needs the \xext{aux} file. It uses -% uses \cs{pdfoutline} for the bookmakrs that can be used after the last page. +% \cs{pdfoutline} for the bookmarks that can be used after the last page. % \begin{itemize} % \item % Driver \xoption{pdftex} uses \cs{pdfoutline} that can @@ -2997,27 +3041,6 @@ and the derived files % \item[\CTAN{macros/latex/contrib/bookmark/bookmark.pdf}] Documentation. % \end{description} % -% -% \paragraph{Bundle.} All the packages of the bundle `bookmark' -% are also available in a TDS compliant ZIP archive. There -% the packages are already unpacked and the documentation files -% are generated. The files and directories obey the TDS standard. -% \begin{description} -% \item[\CTANinstall{install/macros/latex/contrib/bookmark.tds.zip}] -% \end{description} -% \emph{TDS} refers to the standard ``A Directory Structure -% for \TeX\ Files'' (\CTANpkg{tds}). Directories -% with \xfile{texmf} in their name are usually organized this way. -% -% \subsection{Bundle installation} -% -% \paragraph{Unpacking.} Unpack the \xfile{bookmark.tds.zip} in the -% TDS tree (also known as \xfile{texmf} tree) of your choice. -% Example (linux): -% \begin{quote} -% |unzip bookmark.tds.zip -d ~/texmf| -% \end{quote} -% % \subsection{Package installation} % % \paragraph{Unpacking.} The \xfile{.dtx} file is a self-extracting @@ -3038,6 +3061,10 @@ and the derived files % bkm-dvips.def & tex/latex/bookmark/bkm-dvips.def\\ % bkm-pdftex.def & tex/latex/bookmark/bkm-pdftex.def\\ % bkm-vtex.def & tex/latex/bookmark/bkm-vtex.def\\ +% bkm-dvipdfm-2019-12-03.def & tex/latex/bookmark/bkm-dvipdfm-2019-12-03.def\\ +% bkm-dvips-2019-12-03.def & tex/latex/bookmark/bkm-dvips-2019-12-03.def\\ +% bkm-pdftex-2019-12-03.def & tex/latex/bookmark/bkm-pdftex-2019-12-03.def\\ +% bkm-vtex-2019-12-03.def & tex/latex/bookmark/bkm-vtex-2019-12-03.def\\ % bookmark.pdf & doc/latex/bookmark/bookmark.pdf\\ % bookmark-example.tex & doc/latex/bookmark/bookmark-example.tex\\ % bookmark.dtx & source/latex/bookmark/bookmark.dtx\\ @@ -3387,6 +3414,11 @@ and the derived files % and \cs{SpecialDvipdfmxOutlineOpen}. All dvipdfmx version should now support % this out-of-the-box. % \end{Version} +% \begin{Version}{2023-12-05 v1.30} +% \item Corrected support for option \xoption{bookmarkstype} of +% \xpackage{hyperref}, https://github.com/ho-tex/bookmark/issues/4 +% \item Added support for structure destinations, https://github.com/ho-tex/bookmark/issues/7 +% \end{Version} % \end{History} % % \PrintIndex diff --git a/macros/latex/contrib/bookmark/bookmark.pdf b/macros/latex/contrib/bookmark/bookmark.pdf Binary files differindex 75c9c98b24..a298e3e76c 100644 --- a/macros/latex/contrib/bookmark/bookmark.pdf +++ b/macros/latex/contrib/bookmark/bookmark.pdf |