Skip to content

Commit

Permalink
Minot tidy-ups
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Jan 27, 2021
1 parent df8cf15 commit a765304
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
5 changes: 3 additions & 2 deletions l3backend/l3backend-pdf.dtx
Expand Up @@ -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
{
Expand Down Expand Up @@ -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
{
Expand Down
13 changes: 8 additions & 5 deletions l3experimental/l3pdf/l3pdf.dtx
Expand Up @@ -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
Expand All @@ -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.
%
Expand Down Expand Up @@ -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}
Expand Down Expand Up @@ -414,6 +416,7 @@
% \end{macro}
%
% \subsection{Destinations}
%
% \begin{macro}{\pdf_destination:nn}
% \begin{macrocode}
\cs_new_protected:Npn \pdf_destination:nn #1 #2
Expand Down

0 comments on commit a765304

Please sign in to comment.