[latex3-commits] [git/LaTeX3-latex3-pdfresources] reworking-annot: remove pdf_destination, it now in l3pdf (a11ea07)

Ulrike Fischer fischer at troubleshooting-tex.de
Fri Jan 29 13:12:31 CET 2021


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

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

commit a11ea07eb8efac391869a635162f3cca5d2e37c3
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Fri Jan 29 13:12:31 2021 +0100

    remove pdf_destination, it now in l3pdf


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

a11ea07eb8efac391869a635162f3cca5d2e37c3
 l3pdfutils.dtx | 82 ----------------------------------------------------------
 1 file changed, 82 deletions(-)

diff --git a/l3pdfutils.dtx b/l3pdfutils.dtx
index c5b5baf..81db648 100644
--- a/l3pdfutils.dtx
+++ b/l3pdfutils.dtx
@@ -169,88 +169,6 @@
   {
     \tl_use:c { c_@@_backend_xform_dp_ \tl_to_str:n { #1 } _tl }
   }
-%</package>
-%    \end{macrocode}
-%
-% \subsection{Destinations}
-% \begin{NOTE}{UF}
-% I'm unsure about the backend code of the rectangle (FitR) variant. Should it
-% really typeset a box???
-% I'm also unsure if \cs{pdf_destination:nn} should really allow both
-% a type and an integer as second argument. Perhaps a \cs{pdf_destination_zoom:nn}
-% would be better??
-% \end{NOTE}
-% Destinations are \enquote{anchors} for links. The commands here
-% create named destinations. The pdf\LaTeX{} primitive doesn't support all
-% variants described in the pdf reference. The backend code expect lower case
-% arguments, but we add support for the casing of hyperref and the pdf reference.
-%
-% \begin{tabular}{llll}
-% Type             & status    & input    &remark \\\hline
-% /Fit             & supported & fit, Fit \\%
-% /FitH            & supported & fith, FitH \\
-% /FitH \emph{top} & not supported\\
-% /FitV            & supported & fitv, FitV\\
-% /FitV \emph{left}& not supported\\
-% /FitB            & supported & fitb, FitB\\
-% /FitBH           & supported & fitbh, FitBH\\
-% /FitBH \emph{top}& not supported\\
-% /FitBV           & supported & fitbv, FitBV\\
-% /FitBV \emph{left} & not supported\\
-% /FitR \emph{left bottom right top} & supported in part& typesets a box\\
-% /XYZ \emph{left} \emph{top} NULL & supported & xyz, XYZ &left, top are automatic\\
-% /XYZ \emph{left} \emph{top} zoom & supported & integer (percent) &left, top are automatic\\
-% \end{tabular}
-%
-% \begin{function}[added = 2020-03-10]
-%   {\pdf_destination:nn}
-%   \begin{syntax}
-%     \cs{pdf_destination:nn} \Arg{name} \Arg{type or integer}
-%   \end{syntax}
-%   This creates a destination. \Arg{type or Integer} can be one of |fit|, |fith|,
-%   |fitv|, |fitb|, |fitbh|, |fitbv|, |fitr|, |xyz|
-%   or an integer representing a  scale factor in percent.
-%   The backend code defines |fitr| so that it will with pdflatex and
-%   lualatex use the coordinates of the surrounding box,
-%   with dvips and dvipdfmx it falls back to |fit|.
-% \end{function}
-% \begin{function}[added = 2020-03-10]
-%   {\pdf_destination_box:nn}
-%   \begin{syntax}
-%     \cs{pdf_destination_box:nn} \Arg{name} \Arg{content}
-%   \end{syntax}
-%   This stores the content in a hbox, outputs the box and
-%   creates a destination with |FitR| type encompassing this box.
-% \end{function}
-%    \begin{macrocode}
-%<*package>
-%<@@=pdf>
-\cs_if_free:NT \pdf_destination:nn
-  {
-    \cs_new_protected:Npn \pdf_destination:nn #1 #2
-      {
-        \@@_backend_destination:nn {#1}{#2}
-      }
-    \box_new:N \l_@@_tmpa_box
-    \box_new:N \l_@@_tmpb_box
-    \cs_new_protected:Npn \pdf_destination:nnnn #1 #2 #3 #4
-      {
-        \hbox_set_to_wd:Nnn \l_@@_tmpa_box {#2} {}
-        \box_set_ht:Nn \l_@@_tmpa_box {#3}
-        \box_set_dp:Nn \l_@@_tmpa_box {#4}
-        \hbox_set_to_wd:Nnn \l_@@_tmpb_box {0pt}
-          {
-            \@@_backend_destination_box:nn
-              { #1 }
-              { \box_use:N \l_@@_tmpa_box }
-          }
-        \box_set_dp:Nn \l_@@_tmpb_box {0pt}
-        \box_set_ht:Nn \l_@@_tmpb_box {0pt}
-        \box_use:N\l_@@_tmpb_box
-      }
-  }
-\cs_generate_variant:Nn\pdf_destination:nn {no,nf}
-
 %</package>
 %    \end{macrocode}
 %%





More information about the latex3-commits mailing list.