[latex3-commits] [git/LaTeX3-latex3-latex3] pdf_destination: Minot tidy-ups (a76530412)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Jan 27 16:56:49 CET 2021


Repository : https://github.com/latex3/latex3
On branch  : pdf_destination
Link       : https://github.com/latex3/latex3/commit/a7653041257b632893217eb135bb709edb8f0c25

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

commit a7653041257b632893217eb135bb709edb8f0c25
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Jan 27 15:56:49 2021 +0000

    Minot tidy-ups


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

a7653041257b632893217eb135bb709edb8f0c25
 l3backend/l3backend-pdf.dtx    |  5 +++--
 l3experimental/l3pdf/l3pdf.dtx | 13 ++++++++-----
 2 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/l3backend/l3backend-pdf.dtx b/l3backend/l3backend-pdf.dtx
index 4349f714c..3db879eb0 100644
--- a/l3backend/l3backend-pdf.dtx
+++ b/l3backend/l3backend-pdf.dtx
@@ -621,7 +621,7 @@
 %   Here, we need to turn the zoom into a scale. We also need to know where
 %   the current anchor point actually is: worked out in PostScript. For the
 %   rectangle version, we have a bit more PostScript: we need two points.
-%   fitr without rule spec doesn't work, so it falls back to /Fit here.
+%   fitr without rule spec doesn't work, so it falls back to \texttt{/Fit} here.
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_backend_destination:nn #1#2
   {
@@ -1483,7 +1483,8 @@
 %   Here, we need to turn the zoom into a scale. The method for \texttt{FitR}
 %   is from Alexander Grahn: the idea is to avoid needing to do any calculations
 %   in \TeX{} by using the backend data for \texttt{@xpos} and \texttt{@ypos}.
-%   fitr without rule spec doesn't work, so it falls back to /Fit here.
+%   \texttt{/FitR} without rule spec doesn't work, so it falls back to
+%   \texttt{/Fit} here.
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_backend_destination:nn #1#2
   {
diff --git a/l3experimental/l3pdf/l3pdf.dtx b/l3experimental/l3pdf/l3pdf.dtx
index f7df6908d..4d2e9635e 100644
--- a/l3experimental/l3pdf/l3pdf.dtx
+++ b/l3experimental/l3pdf/l3pdf.dtx
@@ -174,7 +174,9 @@
 %   This function may only be used up to the point where the PDF file is
 %   initialised.
 % \end{function}
+%
 % \subsection{Destinations}
+%
 % Destinations are the places a link jumped too.
 % Unlike the name may suggest they don't described
 % an exact location in the PDF. Instead a destination contains a reference to
@@ -197,10 +199,10 @@
 %   |fitv|, |fitb|, |fitbh|, |fitbv|, |fitr|, |xyz|
 %   or an integer representing a  scale factor in percent.
 %   |fitr| here gives only a lightweight version of |/FitR|:
-%   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|. For full control use
-%   \cs{pdf_destination_box:nn}.
+%   The backend code defines |fitr| so that it will with \pdfLaTeX{} and
+%   \LuaLaTeX{} use the coordinates of the surrounding box,
+%   with \texttt{dvips} and \texttt{dvipdfmx} it falls back to |fit|.
+%   For full control use \cs{pdf_destination:nnnn}.
 %
 %   The keywords match to the PDF names as described in the following tabular.
 %
@@ -237,7 +239,7 @@
 %   \begin{syntax}
 %     \cs{pdf_destination:nnnn} \Arg{name} \Arg{width} \Arg{height} \Arg{depth}
 %   \end{syntax}
-%   This creates a destination with |/FitR| type with the given dimensions relativ
+%   This creates a destination with |/FitR| type with the given dimensions relative
 %   to the current location. The destination is in a box of size zero, but it doesn't
 %   switch to horizontal mode.
 % \end{function}
@@ -414,6 +416,7 @@
 % \end{macro}
 %
 % \subsection{Destinations}
+%
 % \begin{macro}{\pdf_destination:nn}
 %    \begin{macrocode}
 \cs_new_protected:Npn \pdf_destination:nn #1 #2





More information about the latex3-commits mailing list.