[latex3-commits] [git/LaTeX3-latex3-pdfresources] typos: fix for footnotes in "function" env Pathes -> Paths (65bf283)

Frank Mittelbach frank.mittelbach at latex-project.org
Sat Feb 13 00:15:52 CET 2021


Repository : https://github.com/latex3/pdfresources
On branch  : typos
Link       : https://github.com/latex3/pdfresources/commit/65bf28309e9e033c8d5d9fb7f83a7cbff707f023

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

commit 65bf28309e9e033c8d5d9fb7f83a7cbff707f023
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Sat Feb 13 00:15:52 2021 +0100

    fix for footnotes in "function" env
    Pathes -> Paths


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

65bf28309e9e033c8d5d9fb7f83a7cbff707f023
 l3pdfmanagement.dtx |  19 ++++++++++++++-----
 l3pdfmanagement.pdf | Bin 588457 -> 608674 bytes
 2 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/l3pdfmanagement.dtx b/l3pdfmanagement.dtx
index 8414fdf..6c2f204 100644
--- a/l3pdfmanagement.dtx
+++ b/l3pdfmanagement.dtx
@@ -27,6 +27,13 @@
 \documentclass[full]{l3doc}
 \usepackage{tabularx}
 \providecommand\potentialclash{\noindent\llap{\dbend\ }}
+
+% Fixing footnotes in  functions and variables: this should be in l3doc!
+\newcommand\fixfootnote[2]{\footnotemark
+  \AddToHookNext{env/#1/after}{\footnotetext{#2}}}
+\AddToHook{env/function/begin}{\def\footnote{\fixfootnote{function}}}
+\AddToHook{env/variable/begin}{\def\footnote{\fixfootnote{variable}}}
+
 \begin{document}
   \DocInput{\jobname.dtx}
 \end{document}
@@ -88,13 +95,13 @@
 % dictionary entries and resources to the PDF is handled by
 % the kernel code.
 %
-% The interface uses as main name to address the resources \emph{Pathes}
+% The interface uses as main name to address the resources \emph{Paths}
 % which follow the names and structure described in the PDF reference. This
 % should make it easy to identify the names needed to insert a specific
 % PDF resources with the new interfaces.
-% All \emph{Pathes} have names starting with an uppercase letter.
+% All \emph{Paths} have names starting with an uppercase letter.
 %
-% The following tabular summarize the \emph{Pathes} and which pdftex primitive they
+% The following tabular summarize the \emph{Paths} and which pdftex primitive they
 % replace:
 %
 % \begin{tabular}{ll}
@@ -108,8 +115,8 @@
 %  Page/Resources/ColorSpace             & \cs{pdfpageresources}  \\%
 %  \end{tabular}
 %
-%  There is no \texttt{Page/Resources/Properties} dictionary in the list
-%  as this dictionary is not filled directly but
+%  There is no \texttt{Page/Resources/Properties} dictionary in the list,
+%  because this dictionary is not filled directly, but
 %  managed through side effects when setting BDC-marks.
 %
 %  \subsection{User Commands}
@@ -151,6 +158,8 @@
 % in place.
 % \end{itemize}
 % \end{function}
+%
+%
 % \begin{function}[added = 2020-04-08]
 %   {\pdfmanagement_show:n }
 %   \begin{syntax}
diff --git a/l3pdfmanagement.pdf b/l3pdfmanagement.pdf
index 482fbcf..018b59a 100644
Binary files a/l3pdfmanagement.pdf and b/l3pdfmanagement.pdf differ





More information about the latex3-commits mailing list.