texlive[65854] Master/texmf-dist: postnotes (16feb23)
commits+karl at tug.org
commits+karl at tug.org
Thu Feb 16 22:35:36 CET 2023
Revision: 65854
http://tug.org/svn/texlive?view=revision&revision=65854
Author: karl
Date: 2023-02-16 22:35:35 +0100 (Thu, 16 Feb 2023)
Log Message:
-----------
postnotes (16feb23)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/postnotes/CHANGELOG.md
trunk/Master/texmf-dist/doc/latex/postnotes/postnotes-code.pdf
trunk/Master/texmf-dist/doc/latex/postnotes/postnotes.pdf
trunk/Master/texmf-dist/source/latex/postnotes/postnotes.dtx
trunk/Master/texmf-dist/tex/latex/postnotes/postnotes.sty
Modified: trunk/Master/texmf-dist/doc/latex/postnotes/CHANGELOG.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/postnotes/CHANGELOG.md 2023-02-16 21:35:13 UTC (rev 65853)
+++ trunk/Master/texmf-dist/doc/latex/postnotes/CHANGELOG.md 2023-02-16 21:35:35 UTC (rev 65854)
@@ -1,7 +1,16 @@
# 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)
### Fixed
Modified: trunk/Master/texmf-dist/doc/latex/postnotes/postnotes-code.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/postnotes/postnotes.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/postnotes/postnotes.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/postnotes/postnotes.dtx 2023-02-16 21:35:13 UTC (rev 65853)
+++ trunk/Master/texmf-dist/source/latex/postnotes/postnotes.dtx 2023-02-16 21:35:35 UTC (rev 65854)
@@ -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 at 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 at refsection } \l_@@_restore_tmp_tl
@@ -2275,10 +2279,13 @@
\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 at extractdefault {#2} { anchor } { } }
{ \@@_make_mark:nnn { \zref{#2} } { } { } }
@@ -2294,7 +2301,13 @@
}
% \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}}
%
% \begin{macrocode}
@@ -2325,7 +2338,7 @@
\prop_gput:cnx { \@@_data_name:e { \l_postnotes_note_id_tl } }
{ zref-check at abssec } { \int_use:N \c at zc@abssec }
}
- \AddToHook { postnotes/print/eachnote } [ postnotes ]
+ \AddToHook { postnotes/print/note/begin } [ postnotes ]
{
\@@_prop_get:nnN { \l_postnotes_print_note_id_tl }
{ zref-check at abschap } \l_@@_restore_tmp_tl
Modified: trunk/Master/texmf-dist/tex/latex/postnotes/postnotes.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/postnotes/postnotes.sty 2023-02-16 21:35:13 UTC (rev 65853)
+++ trunk/Master/texmf-dist/tex/latex/postnotes/postnotes.sty 2023-02-16 21:35:35 UTC (rev 65854)
@@ -53,7 +53,7 @@
}%
\endinput
}%
-\ProvidesExplPackage {postnotes} {2023-02-13} {0.2.1}
+\ProvidesExplPackage {postnotes} {2023-02-15} {0.2.2}
{Endnotes for LaTeX}
\cs_new:Npn \__postnotes_data_name:n #1
{ g__postnotes_ #1 _data_prop }
@@ -542,7 +542,7 @@
\tl_new:N \l__postnotes_print_content_tl
\seq_new:N \l__postnotes_clear_queue_seq
\NewHook { postnotes/print/begin }
-\NewHook { postnotes/print/eachnote }
+\NewHook { postnotes/print/note/begin }
\newcounter { postnotetext }
\newcounter { postnotesection }
\setcounter { postnotesection } { 10000 }
@@ -622,7 +622,7 @@
\l__postnotes_print_format_tl
}
\group_begin:
- \UseHook { postnotes/print/eachnote }
+ \UseHook { postnotes/print/note/begin }
\__postnotes_get_pageref:Nx \pnthepage
{ mark@ \l_postnotes_print_note_id_tl }
\__postnotes_prop_get:nnN
@@ -649,6 +649,7 @@
{ \l_postnotes_print_note_id_tl }
\l__postnotes_print_mark_tl
}
+ \mode_leave_vertical:
\l__postnotes_print_content_tl
\l__postnotes_post_printnote_tl
\group_end:
@@ -990,10 +991,13 @@
\group_begin:
\__postnotes_typeset_mark_wrapper:n
{
- \bool_lazy_and:nnTF
- { ! #1 }
- { \l__postnotes_hyperlink_bool }
+ \bool_lazy_all:nTF
{
+ { ! #1 }
+ { \l__postnotes_hyperlink_bool }
+ { \l__postnotes_zrefhyperref_bool }
+ }
+ {
\hyperlink
{ \zref at extractdefault {#2} { anchor } { } }
{ \__postnotes_make_mark:nnn { \zref{#2} } { } { } }
@@ -1003,6 +1007,9 @@
\group_end:
}
}
+\bool_new:N \l__postnotes_zrefhyperref_bool
+\AddToHook { package/zref-hyperref/after }
+ { \bool_set_true:N \l__postnotes_zrefhyperref_bool }
\AddToHook { package/zref-clever/after }
{
\zcsetup
@@ -1024,7 +1031,7 @@
\prop_gput:cnx { \__postnotes_data_name:e { \l_postnotes_note_id_tl } }
{ zref-check at abssec } { \int_use:N \c at zc@abssec }
}
- \AddToHook { postnotes/print/eachnote } [ postnotes ]
+ \AddToHook { postnotes/print/note/begin } [ postnotes ]
{
\__postnotes_prop_get:nnN { \l_postnotes_print_note_id_tl }
{ zref-check at abschap } \l__postnotes_restore_tmp_tl
More information about the tex-live-commits
mailing list.