Skip to content

Commit

Permalink
Drop temp footnote fix for l3doc (#1349)
Browse files Browse the repository at this point in the history
Supported by l3doc since l3kernel 2023-10-10, see latex3/latex3#1266.
  • Loading branch information
muzimuzhi authored May 19, 2024
1 parent bc83216 commit 03e7141
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 30 deletions.
9 changes: 8 additions & 1 deletion base/changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,15 @@ to completeness or accuracy and it contains some references to files that are
not part of the distribution.
================================================================================

2024-05-16 Yukai Chou <muzimuzhi@gmail.com>

* ltmarks.dtx, ltmeta.dtx, ltpara.dtx:
Drop temp fixing for footnotes in function and variable envs.
Supported by l3doc since l3kernel 2023-10-10 (latex3 gh/1266)

2024-04-24 Yukai Chou <muzimuzhi@gmail.com>
* lttextcomp.dtx

* lttextcomp.dtx
Load the 2018 version when rolling back prior to 2018-08-11 (gh/1333)
Clean up \providecommand lines

Expand Down
11 changes: 1 addition & 10 deletions base/ltmarks.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,12 @@
%<*driver>
% \fi
\ProvidesFile{ltmarks.dtx}
[2024/02/11 v1.0e LaTeX Kernel (Marks)]
[2024/05/16 v1.0e LaTeX Kernel (Marks)]
% \iffalse
%
\documentclass{l3doc}
\GetFileInfo{ltmarks.dtx}

%\usepackage{ltmarks}

% 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}}}

\EnableCrossrefs
\CodelineIndex
\begin{document}
Expand Down
9 changes: 1 addition & 8 deletions base/ltmeta.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,12 @@
%<*driver>
% \fi
\ProvidesFile{ltmeta.dtx}
[2024/02/11 v1.0b LaTeX Kernel (Document Metadata)]
[2024/05/16 v1.0b LaTeX Kernel (Document Metadata)]
% \iffalse
%
\documentclass{l3doc}
\GetFileInfo{ltmeta.dtx}

% 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}}}

\EnableCrossrefs
\CodelineIndex
\begin{document}
Expand Down
13 changes: 2 additions & 11 deletions base/ltpara.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,12 @@
%<*driver>
% \fi
\ProvidesFile{ltpara.dtx}
[2024/02/11 v1.0m LaTeX Kernel (paragraph hooks)]
[2024/05/16 v1.0m LaTeX Kernel (paragraph hooks)]
% \iffalse
%
\documentclass{l3doc}
\GetFileInfo{ltpara.dtx}

%\usepackage{ltpara}

% 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}}}

\EnableCrossrefs
\CodelineIndex
\begin{document}
Expand Down Expand Up @@ -1265,7 +1256,7 @@
% redo the \cs{everypar} setting from the kernel, otherwise that
% gets lost (as it happens before that file is loaded).
% \begin{macrocode}
\everypar{\@nodocument} %% To get an error if text appears before the
\everypar{\@nodocument} %% To get an error if text appears before the \document
% \end{macrocode}
%
%
Expand Down

0 comments on commit 03e7141

Please sign in to comment.