summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-02-16 21:35:35 +0000
committerKarl Berry <karl@freefriends.org>2023-02-16 21:35:35 +0000
commit4524edc6ed4f603e0d556d5b9c366de0425743f9 (patch)
tree4b9b583da1522d007128ae3e73d5442204a5b3e1 /Master/texmf-dist/tex/latex
parent7cd731f9eda70f3ba7b51998456b7480e7b7e435 (diff)
postnotes (16feb23)
git-svn-id: svn://tug.org/texlive/trunk@65854 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/postnotes/postnotes.sty21
1 files changed, 14 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/postnotes/postnotes.sty b/Master/texmf-dist/tex/latex/postnotes/postnotes.sty
index b78ca391314..8dce52caa5f 100644
--- a/Master/texmf-dist/tex/latex/postnotes/postnotes.sty
+++ b/Master/texmf-dist/tex/latex/postnotes/postnotes.sty
@@ -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,9 +991,12 @@
\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@extractdefault {#2} { anchor } { } }
@@ -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@abssec } { \int_use:N \c@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@abschap } \l__postnotes_restore_tmp_tl