summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/postnotes
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-07-07 03:01:45 +0000
committerNorbert Preining <norbert@preining.info>2022-07-07 03:01:45 +0000
commitc925207bc17a56bf94a6e3d156db27042965136d (patch)
treeb5dc80f7f6791eba6121e1a44c1c2b9a4b46dbb2 /macros/latex/contrib/postnotes
parent9f9a07ef2eb0c1f25ce9afc7bb94928956c036ea (diff)
CTAN sync 202207070301
Diffstat (limited to 'macros/latex/contrib/postnotes')
-rw-r--r--macros/latex/contrib/postnotes/CHANGELOG.md7
-rw-r--r--macros/latex/contrib/postnotes/postnotes-code.pdfbin809579 -> 813102 bytes
-rw-r--r--macros/latex/contrib/postnotes/postnotes.dtx64
-rw-r--r--macros/latex/contrib/postnotes/postnotes.pdfbin177238 -> 178034 bytes
4 files changed, 55 insertions, 16 deletions
diff --git a/macros/latex/contrib/postnotes/CHANGELOG.md b/macros/latex/contrib/postnotes/CHANGELOG.md
index 384af1bb2e..42e0f5f7f7 100644
--- a/macros/latex/contrib/postnotes/CHANGELOG.md
+++ b/macros/latex/contrib/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/macros/latex/contrib/postnotes/postnotes-code.pdf b/macros/latex/contrib/postnotes/postnotes-code.pdf
index b1af0cc1e0..c364f3c9b7 100644
--- a/macros/latex/contrib/postnotes/postnotes-code.pdf
+++ b/macros/latex/contrib/postnotes/postnotes-code.pdf
Binary files differ
diff --git a/macros/latex/contrib/postnotes/postnotes.dtx b/macros/latex/contrib/postnotes/postnotes.dtx
index 7124ed7d70..489c40bf5d 100644
--- a/macros/latex/contrib/postnotes/postnotes.dtx
+++ b/macros/latex/contrib/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/macros/latex/contrib/postnotes/postnotes.pdf b/macros/latex/contrib/postnotes/postnotes.pdf
index af17232cc1..6059ea2438 100644
--- a/macros/latex/contrib/postnotes/postnotes.pdf
+++ b/macros/latex/contrib/postnotes/postnotes.pdf
Binary files differ