diff options
author | Norbert Preining <norbert@preining.info> | 2023-02-16 03:01:36 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-02-16 03:01:36 +0000 |
commit | 024d47cb1c4e5ba541f3865b69168bef20f2bfce (patch) | |
tree | 4e55e91ce72e278a079000c9871135034111f910 /macros/latex/contrib/postnotes | |
parent | a7d99429152acee049db679dc26a92e01faf4992 (diff) |
CTAN sync 202302160301
Diffstat (limited to 'macros/latex/contrib/postnotes')
-rw-r--r-- | macros/latex/contrib/postnotes/CHANGELOG.md | 11 | ||||
-rw-r--r-- | macros/latex/contrib/postnotes/postnotes-code.pdf | bin | 838960 -> 839836 bytes | |||
-rw-r--r-- | macros/latex/contrib/postnotes/postnotes.dtx | 35 | ||||
-rw-r--r-- | macros/latex/contrib/postnotes/postnotes.pdf | bin | 177382 -> 177383 bytes |
4 files changed, 34 insertions, 12 deletions
diff --git a/macros/latex/contrib/postnotes/CHANGELOG.md b/macros/latex/contrib/postnotes/CHANGELOG.md index d9b24379f5..b626145fd0 100644 --- a/macros/latex/contrib/postnotes/CHANGELOG.md +++ b/macros/latex/contrib/postnotes/CHANGELOG.md @@ -1,6 +1,15 @@ # Changelog -## [Unreleased](https://github.com/gusbrs/postnotes/compare/v0.2.1...HEAD) +## [Unreleased](https://github.com/gusbrs/postnotes/compare/v0.2.2...HEAD) + +## [v0.2.2](https://github.com/gusbrs/postnotes/compare/v0.2.1...v0.2.2) (2023-02-15) + +### Fixed +- Don't try to hyperlink `\postnotezref` when `zref-hyperref` is not loaded. +- "perhaps a missing \item" error for empty `\postnote`. + +### Changed +- Renamed `postnotes/print/eachnote` hook to `postnotes/print/note/begin`. ## [v0.2.1](https://github.com/gusbrs/postnotes/compare/v0.2.0...v0.2.1) (2023-02-13) diff --git a/macros/latex/contrib/postnotes/postnotes-code.pdf b/macros/latex/contrib/postnotes/postnotes-code.pdf Binary files differindex 644edf8e88..76ed8d090b 100644 --- a/macros/latex/contrib/postnotes/postnotes-code.pdf +++ b/macros/latex/contrib/postnotes/postnotes-code.pdf diff --git a/macros/latex/contrib/postnotes/postnotes.dtx b/macros/latex/contrib/postnotes/postnotes.dtx index fab2cb9914..47271ac97a 100644 --- a/macros/latex/contrib/postnotes/postnotes.dtx +++ b/macros/latex/contrib/postnotes/postnotes.dtx @@ -153,7 +153,7 @@ % % % \begin{macrocode} -\ProvidesExplPackage {postnotes} {2023-02-13} {0.2.1} +\ProvidesExplPackage {postnotes} {2023-02-15} {0.2.2} {Endnotes for LaTeX} % \end{macrocode} % @@ -1210,14 +1210,14 @@ % additional setup, specially to add support to packages and features which % require it. The \texttt{postnotes/print/begin} hook is run early in % \cs{@@_print_notes:} and only once per call, after the user options have -% been processed. The \texttt{postnotes/print/eachnote} hook is run once for -% each note, at the point where environment variables are being set or +% been processed. The \texttt{postnotes/print/note/begin} hook is run once +% for each note, at the point where environment variables are being set or % restored, before the typesetting of either the mark or the text, but within % a group of its own of each note. % % \begin{macrocode} \NewHook { postnotes/print/begin } -\NewHook { postnotes/print/eachnote } +\NewHook { postnotes/print/note/begin } % \end{macrocode} % % @@ -1350,7 +1350,7 @@ \l_@@_print_format_tl } \group_begin: - \UseHook { postnotes/print/eachnote } + \UseHook { postnotes/print/note/begin } \@@_get_pageref:Nx \pnthepage { mark@ \l_postnotes_print_note_id_tl } \@@_prop_get:nnN @@ -1377,6 +1377,10 @@ { \l_postnotes_print_note_id_tl } \l_@@_print_mark_tl } +% \end{macrocode} +% Leave vertical mode to avoid ``perhaps a missing \cs{item}'' error. +% \begin{macrocode} + \mode_leave_vertical: \l_@@_print_content_tl \l_@@_post_printnote_tl \group_end: @@ -2072,7 +2076,7 @@ % \end{macrocode} % Restore \pkg{biblatex} variables for each note. % \begin{macrocode} - \AddToHook { postnotes/print/eachnote } [ postnotes ] + \AddToHook { postnotes/print/note/begin } [ postnotes ] { \@@_prop_get:nnN { \l_postnotes_print_note_id_tl } { biblatex@refsection } \l_@@_restore_tmp_tl @@ -2201,7 +2205,7 @@ \tl_gset:Nx \g_@@_biblatex_prev_refsection_tl \l_@@_biblatex_orig_refsection_tl } - \AddToHook { postnotes/print/eachnote } [ postnotes ] + \AddToHook { postnotes/print/note/begin } [ postnotes ] { \@@_prop_get:nnN { \l_postnotes_print_note_id_tl } { biblatex@refsection } \l_@@_restore_tmp_tl @@ -2275,9 +2279,12 @@ \group_begin: \@@_typeset_mark_wrapper:n { - \bool_lazy_and:nnTF - { ! #1 } - { \l_@@_hyperlink_bool } + \bool_lazy_all:nTF + { + { ! #1 } + { \l_@@_hyperlink_bool } + { \l_@@_zrefhyperref_bool } + } { \hyperlink { \zref@extractdefault {#2} { anchor } { } } @@ -2294,6 +2301,12 @@ } % \end{macrocode} % +% \begin{macrocode} +\bool_new:N \l_@@_zrefhyperref_bool +\AddToHook { package/zref-hyperref/after } + { \bool_set_true:N \l_@@_zrefhyperref_bool } +% \end{macrocode} +% % % \subsection*{\pkg{zref-clever}} % @@ -2325,7 +2338,7 @@ \prop_gput:cnx { \@@_data_name:e { \l_postnotes_note_id_tl } } { zref-check@abssec } { \int_use:N \c@zc@abssec } } - \AddToHook { postnotes/print/eachnote } [ postnotes ] + \AddToHook { postnotes/print/note/begin } [ postnotes ] { \@@_prop_get:nnN { \l_postnotes_print_note_id_tl } { zref-check@abschap } \l_@@_restore_tmp_tl diff --git a/macros/latex/contrib/postnotes/postnotes.pdf b/macros/latex/contrib/postnotes/postnotes.pdf Binary files differindex 52735b1562..6a20c7ba76 100644 --- a/macros/latex/contrib/postnotes/postnotes.pdf +++ b/macros/latex/contrib/postnotes/postnotes.pdf |