[latex3-commits] [git/LaTeX3-latex3-pdfresources] reworking-annot: added bookmarkstype support (needs bookmark update) (502c342)

Ulrike Fischer fischer at troubleshooting-tex.de
Tue Jan 26 10:51:19 CET 2021


Repository : https://github.com/latex3/pdfresources
On branch  : reworking-annot
Link       : https://github.com/latex3/pdfresources/commit/502c3423521675cd1edd3faccd49f1961e1e7d04

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

commit 502c3423521675cd1edd3faccd49f1961e1e7d04
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Tue Jan 26 10:51:19 2021 +0100

    added bookmarkstype support (needs bookmark update)


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

502c3423521675cd1edd3faccd49f1961e1e7d04
 hyperref-generic.dtx | 23 +++++++++++++++++------
 info/key-list.tex    |  2 +-
 2 files changed, 18 insertions(+), 7 deletions(-)

diff --git a/hyperref-generic.dtx b/hyperref-generic.dtx
index 963c58d..8238912 100644
--- a/hyperref-generic.dtx
+++ b/hyperref-generic.dtx
@@ -416,6 +416,22 @@
 %  \end{itemize}
 %
 %
+%\section{Assorted key descriptions}
+%The following gives a few details to some keys that are perhaps not
+%completly described in the manual, or are a bit different in this driver.
+%The list is alphabetic.
+%
+% \DescribeHypkey{bookmarkstype} This key takes as value the extension of a list
+% like |toc| or |lof|. If this list uses \cs{addcontentsline} the content will
+% be added to the bookmarks. The key can be use in \cs{hypersetup} and also in
+% the middle of the document to switch the list.
+% 
+% \DescribeHypkey{colormodel} With |colormodel| the colormodel used in the |/C|
+% key of the annotation array and in similar keys is set. It does not affect
+% the text and graphics colors in the page stream.
+% Possible choices are |rgb| (three numbers in the array) and |cmyk| (four numbers).
+% While the PDF reference allows four numbers, PDF readers don't necessarly handle
+% this correctly, so the value can be wrong.
 
 %^^A %% This is an adapted version of hluatex.def
 %^^A %% meant to test the use of the commands
@@ -1760,6 +1776,7 @@
    ,bookmarksopen / true .code:n  = { \Hy at bookmarksopentrue }
    ,bookmarksopen .default:n      = {true}
    ,bookmarksopenlevel .tl_set:N = \@bookmarksopenlevel
+   ,bookmarkstype .tl_set:N = \Hy at bookmarkstype
    ,pdfcenterwindow    .choice:
    ,pdfcenterwindow / false .code:n =
      {
@@ -2483,12 +2500,6 @@
 \cs_generate_variant:Nn \@@_color_select:n {e}
 %    \end{macrocode}
 % \end{macro}
-% \DescribeHypkey{colormodel} With |colormodel| the colormodel used in the |/C|
-% key of the annotation array and in similar keys is set. It does not affect
-% the text and graphics colors in the page stream.
-% Possible choices are |rgb| (three numbers in the array) and |cmyk| (four numbers).
-% While the PDF reference allows four numbers, PDF readers don't necessarly handle
-% this correctly, so the value can be wrong.
 % \begin{hypkey}{colormodel}
 %    \begin{macrocode}
 \keys_define:nn { hyp / setup }
diff --git a/info/key-list.tex b/info/key-list.tex
index 3d9fe95..98acace 100644
--- a/info/key-list.tex
+++ b/info/key-list.tex
@@ -13,7 +13,7 @@ done    & bookmarks          & \textit{true}          & make bookmarks \\
 done    & bookmarksnumbered  & \textit{false}         & put section numbers in bookmarks \\
 done    & bookmarksopen      & \textit{false}         & open up bookmark tree \\
 done    & bookmarksopenlevel & \ttfamily\ci{maxdimen} & level to which bookmarks are open \\
-?? & bookmarkstype      & \textit{toc}           & to specify which `toc' file to mimic \\
+done    & bookmarkstype      & \textit{toc}           & to specify which `toc' file to mimic \\
 dropped & breaklinks         & \textit{false}         & allow links to break over lines \\
 ?? & CJKbookmarks       & \textit{false}         & to produce CJK bookmarks\\
 done & citebordercolor    & \textit{0 1 0}         & color of border around cites \\





More information about the latex3-commits mailing list.