summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-07-06 20:18:37 +0000
committerKarl Berry <karl@freefriends.org>2022-07-06 20:18:37 +0000
commitb70fc3fabe4489f1b839f898132a64e206b1feb6 (patch)
tree2c4d49a1474a54048da3c1f8c5a7afeaa76c0dac /Master
parent8ee154b9a139bc485395d507ca7a735365ad302e (diff)
postnotes (6jul22)
git-svn-id: svn://tug.org/texlive/trunk@63822 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/postnotes/CHANGELOG.md7
-rw-r--r--Master/texmf-dist/doc/latex/postnotes/postnotes-code.pdfbin809579 -> 813102 bytes
-rw-r--r--Master/texmf-dist/doc/latex/postnotes/postnotes.pdfbin177238 -> 178034 bytes
-rw-r--r--Master/texmf-dist/source/latex/postnotes/postnotes.dtx64
-rw-r--r--Master/texmf-dist/tex/latex/postnotes/postnotes.sty45
5 files changed, 89 insertions, 27 deletions
diff --git a/Master/texmf-dist/doc/latex/postnotes/CHANGELOG.md b/Master/texmf-dist/doc/latex/postnotes/CHANGELOG.md
index 384af1bb2e8..42e0f5f7f76 100644
--- a/Master/texmf-dist/doc/latex/postnotes/CHANGELOG.md
+++ b/Master/texmf-dist/doc/latex/postnotes/CHANGELOG.md
@@ -1,6 +1,11 @@
# Changelog
-## [Unreleased](https://github.com/gusbrs/postnotes/compare/v0.1.3...HEAD)
+## [Unreleased](https://github.com/gusbrs/postnotes/compare/v0.1.4...HEAD)
+
+## [v0.1.4](https://github.com/gusbrs/postnotes/compare/v0.1.3...v0.1.4) (2022-07-06)
+
+### Added
+- `zref-check` support.
## [v0.1.3](https://github.com/gusbrs/postnotes/compare/v0.1.2...v0.1.3) (2022-05-28)
diff --git a/Master/texmf-dist/doc/latex/postnotes/postnotes-code.pdf b/Master/texmf-dist/doc/latex/postnotes/postnotes-code.pdf
index b1af0cc1e0c..c364f3c9b77 100644
--- a/Master/texmf-dist/doc/latex/postnotes/postnotes-code.pdf
+++ b/Master/texmf-dist/doc/latex/postnotes/postnotes-code.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/postnotes/postnotes.pdf b/Master/texmf-dist/doc/latex/postnotes/postnotes.pdf
index af17232cc15..6059ea24381 100644
--- a/Master/texmf-dist/doc/latex/postnotes/postnotes.pdf
+++ b/Master/texmf-dist/doc/latex/postnotes/postnotes.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/postnotes/postnotes.dtx b/Master/texmf-dist/source/latex/postnotes/postnotes.dtx
index 7124ed7d70e..489c40bf5d3 100644
--- a/Master/texmf-dist/source/latex/postnotes/postnotes.dtx
+++ b/Master/texmf-dist/source/latex/postnotes/postnotes.dtx
@@ -147,7 +147,7 @@
%
%
% \begin{macrocode}
-\ProvidesExplPackage {postnotes} {2022-05-28} {0.1.3}
+\ProvidesExplPackage {postnotes} {2022-07-06} {0.1.4}
{Endnotes for LaTeX}
% \end{macrocode}
%
@@ -1338,7 +1338,7 @@
{ content } \l_@@_print_content_tl
\cs_set:Npn \@currentcounter { postnotetext }
\int_set:Nn \c@postnotetext
- { \int_eval:n { \l_@@_print_counter_tl } }
+ { \l_@@_print_counter_tl }
\cs_set:Npx \@currentlabel
{ \p@postnote \l_@@_print_mark_tl }
\@@_hyperref_make_currentHref:n
@@ -1940,6 +1940,12 @@
%
% \section{Compatibility}
%
+% A dedicated temp variable for restoring data.
+%
+% \begin{macrocode}
+\tl_new:N \l_@@_restore_tmp_tl
+% \end{macrocode}
+%
% \subsection*{\cs{caption}}
%
% For \cs{caption}'s possible two passes. This catches more than just
@@ -2055,21 +2061,20 @@
% \end{macrocode}
% Restore \pkg{biblatex} variables for each note.
% \begin{macrocode}
- \tl_new:N \l_@@_biblatex_restore_tl
\AddToHook { postnotes/print/eachnote } [ postnotes ]
{
\@@_prop_get:nnN { \l_@@_print_note_id_tl }
- { biblatex@refsection } \l_@@_biblatex_restore_tl
- \int_set:Nn \c@refsection { \l_@@_biblatex_restore_tl }
+ { biblatex@refsection } \l_@@_restore_tmp_tl
+ \int_set:Nn \c@refsection { \l_@@_restore_tmp_tl }
\@@_prop_get:nnN { \l_@@_print_note_id_tl }
- { biblatex@refsegment } \l_@@_biblatex_restore_tl
- \int_set:Nn \c@refsegment { \l_@@_biblatex_restore_tl }
+ { biblatex@refsegment } \l_@@_restore_tmp_tl
+ \int_set:Nn \c@refsegment { \l_@@_restore_tmp_tl }
\@@_prop_get:nnN { \l_@@_print_note_id_tl }
- { biblatex@refcontextbool } \l_@@_biblatex_restore_tl
- \use:c { toggle \l_@@_biblatex_restore_tl } { blx@refcontext }
+ { biblatex@refcontextbool } \l_@@_restore_tmp_tl
+ \use:c { toggle \l_@@_restore_tmp_tl } { blx@refcontext }
\@@_prop_get:nnN { \l_@@_print_note_id_tl }
- { biblatex@refcontext } \l_@@_biblatex_restore_tl
- \blx@edef@refcontext { \l_@@_biblatex_restore_tl }
+ { biblatex@refcontext } \l_@@_restore_tmp_tl
+ \blx@edef@refcontext { \l_@@_restore_tmp_tl }
}
% \end{macrocode}
% Make \pkg{biblatex}'s \cs{mkbibendnote} use \cs{postnote}. This is very
@@ -2204,15 +2209,15 @@
\AddToHook { postnotes/print/eachnote } [ postnotes ]
{
\@@_prop_get:nnN { \l_@@_print_note_id_tl }
- { biblatex@refsection } \l_@@_biblatex_restore_tl
+ { biblatex@refsection } \l_@@_restore_tmp_tl
\tl_if_eq:NNF
- \l_@@_biblatex_restore_tl
+ \l_@@_restore_tmp_tl
\g_@@_biblatex_prev_refsection_tl
{
\int_set:Nn \c@blx@maxsection
- { \l_@@_biblatex_restore_tl - 1 }
+ { \l_@@_restore_tmp_tl - 1 }
\tl_gset_eq:NN \g_@@_biblatex_prev_refsection_tl
- \l_@@_biblatex_restore_tl
+ \l_@@_restore_tmp_tl
\group_begin:
\cs_set_eq:NN \label \use_none:n
\cs_set_eq:NN \blx@info \use_none:n
@@ -2308,6 +2313,35 @@
% \end{macrocode}
%
%
+% \subsection*{\pkg{zref-check}}
+%
+% \begin{macrocode}
+\AddToHook { package/zref-check/after }
+ {
+ \IfPackageAtLeastTF { zref-check } { 2022-07-05 }
+ {
+ \AddToHook { postnotes/store/note } [ postnotes ]
+ {
+ \prop_gput:cnx { \@@_data_name:e { \l_@@_note_id_tl } }
+ { zref-check@abschap } { \int_use:N \c@zc@abschap }
+ \prop_gput:cnx { \@@_data_name:e { \l_@@_note_id_tl } }
+ { zref-check@abssec } { \int_use:N \c@zc@abssec }
+ }
+ \AddToHook { postnotes/print/eachnote } [ postnotes ]
+ {
+ \@@_prop_get:nnN { \l_@@_print_note_id_tl }
+ { zref-check@abschap } \l_@@_restore_tmp_tl
+ \int_set:Nn \c@zc@abschap { \l_@@_restore_tmp_tl }
+ \@@_prop_get:nnN { \l_@@_print_note_id_tl }
+ { zref-check@abssec } \l_@@_restore_tmp_tl
+ \int_set:Nn \c@zc@abssec { \l_@@_restore_tmp_tl }
+ }
+ }
+ { }
+ }
+% \end{macrocode}
+%
+%
% \subsection*{\pkg{amsmath}}
%
% \begin{macrocode}
diff --git a/Master/texmf-dist/tex/latex/postnotes/postnotes.sty b/Master/texmf-dist/tex/latex/postnotes/postnotes.sty
index a81a56476a5..51edd8057cb 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} {2022-05-28} {0.1.3}
+\ProvidesExplPackage {postnotes} {2022-07-06} {0.1.4}
{Endnotes for LaTeX}
\cs_new:Npn \__postnotes_data_name:n #1
{ g__postnotes_ #1 _data_prop }
@@ -624,7 +624,7 @@
{ content } \l__postnotes_print_content_tl
\cs_set:Npn \@currentcounter { postnotetext }
\int_set:Nn \c@postnotetext
- { \int_eval:n { \l__postnotes_print_counter_tl } }
+ { \l__postnotes_print_counter_tl }
\cs_set:Npx \@currentlabel
{ \p@postnote \l__postnotes_print_mark_tl }
\__postnotes_hyperref_make_currentHref:n
@@ -952,6 +952,7 @@
{ \pnhdnotes{} ~ \pnhdtopage{} ~ \pnhdpagefirst }
{ \pnhdnotes{} ~ \pnhdtopages{} ~ \pnhdpagefirst -- \pnhdpagelast }
}
+\tl_new:N \l__postnotes_restore_tmp_tl
\AddToHook { postnotes/note/begin } [ postnotes ]
{
\cs_if_exist:NT \@captype
@@ -996,21 +997,20 @@
\__postnotes_biblatex_citereset_local:
\toggletrue { blx@footnote }
}
- \tl_new:N \l__postnotes_biblatex_restore_tl
\AddToHook { postnotes/print/eachnote } [ postnotes ]
{
\__postnotes_prop_get:nnN { \l__postnotes_print_note_id_tl }
- { biblatex@refsection } \l__postnotes_biblatex_restore_tl
- \int_set:Nn \c@refsection { \l__postnotes_biblatex_restore_tl }
+ { biblatex@refsection } \l__postnotes_restore_tmp_tl
+ \int_set:Nn \c@refsection { \l__postnotes_restore_tmp_tl }
\__postnotes_prop_get:nnN { \l__postnotes_print_note_id_tl }
- { biblatex@refsegment } \l__postnotes_biblatex_restore_tl
- \int_set:Nn \c@refsegment { \l__postnotes_biblatex_restore_tl }
+ { biblatex@refsegment } \l__postnotes_restore_tmp_tl
+ \int_set:Nn \c@refsegment { \l__postnotes_restore_tmp_tl }
\__postnotes_prop_get:nnN { \l__postnotes_print_note_id_tl }
- { biblatex@refcontextbool } \l__postnotes_biblatex_restore_tl
- \use:c { toggle \l__postnotes_biblatex_restore_tl } { blx@refcontext }
+ { biblatex@refcontextbool } \l__postnotes_restore_tmp_tl
+ \use:c { toggle \l__postnotes_restore_tmp_tl } { blx@refcontext }
\__postnotes_prop_get:nnN { \l__postnotes_print_note_id_tl }
- { biblatex@refcontext } \l__postnotes_biblatex_restore_tl
- \blx@edef@refcontext { \l__postnotes_biblatex_restore_tl }
+ { biblatex@refcontext } \l__postnotes_restore_tmp_tl
+ \blx@edef@refcontext { \l__postnotes_restore_tmp_tl }
}
\AddToHook { begindocument/before } [ postnotes/mkbibendnote ]
{
@@ -1097,6 +1097,29 @@
\AddToHook { postnotes/print/begin } [ postnotes ]
{ \zcsetup { counterresetby = { postnotetext = postnotesection } } }
}
+\AddToHook { package/zref-check/after }
+ {
+ \IfPackageAtLeastTF { zref-check } { 2022-07-05 }
+ {
+ \AddToHook { postnotes/store/note } [ postnotes ]
+ {
+ \prop_gput:cnx { \__postnotes_data_name:e { \l__postnotes_note_id_tl } }
+ { zref-check@abschap } { \int_use:N \c@zc@abschap }
+ \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 ]
+ {
+ \__postnotes_prop_get:nnN { \l__postnotes_print_note_id_tl }
+ { zref-check@abschap } \l__postnotes_restore_tmp_tl
+ \int_set:Nn \c@zc@abschap { \l__postnotes_restore_tmp_tl }
+ \__postnotes_prop_get:nnN { \l__postnotes_print_note_id_tl }
+ { zref-check@abssec } \l__postnotes_restore_tmp_tl
+ \int_set:Nn \c@zc@abssec { \l__postnotes_restore_tmp_tl }
+ }
+ }
+ { }
+ }
\AddToHook { package/amsmath/after }
{
\AddToHook { postnotes/note/inhibit } [ postnotes ]