Skip to content

Commit

Permalink
add cleveref firstaid for issue #1560
Browse files Browse the repository at this point in the history
  • Loading branch information
u-fischer committed Nov 24, 2024
1 parent 33a111e commit f7d1a16
Show file tree
Hide file tree
Showing 5 changed files with 1,248 additions and 2 deletions.
4 changes: 4 additions & 0 deletions required/firstaid/changes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2024-11-24 Ulrike Fischer <[email protected]>

* latex2e-first-aid-for-external-files.dtx: add iftag@-test to cleveref firstaid for issue #1560

2024-11-08 Ulrike Fischer <[email protected]>

* latex2e-first-aid-for-external-files.dtx: add missing \expandafter for issue #1544
Expand Down
8 changes: 6 additions & 2 deletions required/firstaid/latex2e-first-aid-for-external-files.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@
% \end{macrocode}
%
% \begin{macrocode}
\def\LaTeXFirstAidDate{2024/11/08}
\def\LaTeXFirstAidVersion{v1.1i}
\def\LaTeXFirstAidDate{2024/11/24}
\def\LaTeXFirstAidVersion{v1.1j}
% \end{macrocode}
%
% \begin{macrocode}
Expand Down Expand Up @@ -740,12 +740,16 @@
% \end{macrocode}
% we test if \cs{@currentcounter} is empty for unnumbered sections
% \changes{v1.1h}{2024/11/01}{fix spurious space}
% \changes{v1.1j}{2024/11/24}{add \cs{iftag@} test, issue \#1560}
% \begin{macrocode}
\newif\iftag@
\AddToHook{label}[firstaid/cleveref]
{\ifx
\@currentcounter\@empty
\else
\iftag@\else
\firstaid@cref@updatelabeldata{\@currentcounter}%
\fi
\fi}
}%
}
Expand Down
Loading

0 comments on commit f7d1a16

Please sign in to comment.