diff options
author | Karl Berry <karl@freefriends.org> | 2022-08-02 20:47:40 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-08-02 20:47:40 +0000 |
commit | b29b4e4d5408b5261a146df0c568cc29719ca5ac (patch) | |
tree | 3e3d2d7e48f066d0acfaa5be60aafc17f8006ca6 /Master/texmf-dist/tex/latex | |
parent | d050f05231b12ad0f2748819fd688f618963fdb0 (diff) |
postnotes (2aug22)
git-svn-id: svn://tug.org/texlive/trunk@64031 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/postnotes/postnotes.sty | 79 |
1 files changed, 4 insertions, 75 deletions
diff --git a/Master/texmf-dist/tex/latex/postnotes/postnotes.sty b/Master/texmf-dist/tex/latex/postnotes/postnotes.sty index 56a0c0c8021..8040fe9ecfc 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-07-07} {0.1.5} +\ProvidesExplPackage {postnotes} {2022-08-01} {0.1.6} {Endnotes for LaTeX} \cs_new:Npn \__postnotes_data_name:n #1 { g__postnotes_ #1 _data_prop } @@ -979,85 +979,14 @@ } \AddToHook { package/biblatex/after } { - \AddToHook { postnotes/store/note } [ postnotes ] - { - \prop_gput:cnx { \__postnotes_data_name:e { \l__postnotes_note_id_tl } } - { biblatex@refsection } { \int_use:N \c@refsection } - \prop_gput:cnx { \__postnotes_data_name:e { \l__postnotes_note_id_tl } } - { biblatex@refsegment } { \int_use:N \c@refsegment } - \prop_gput:cnx { \__postnotes_data_name:e { \l__postnotes_note_id_tl } } - { biblatex@refcontextbool } - { \iftoggle { blx@refcontext } { true } { false } } - \prop_gput:cnV { \__postnotes_data_name:e { \l__postnotes_note_id_tl } } - { biblatex@refcontext } \blx@refcontext@context - } \AddToHook { postnotes/print/begin } [ postnotes ] - { - \__postnotes_biblatex_endrefcontext_local: - \__postnotes_biblatex_citereset_local: - \toggletrue { blx@footnote } - } - \AddToHook { postnotes/print/eachnote } [ postnotes ] - { - \__postnotes_prop_get:nnN { \l__postnotes_print_note_id_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_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_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_restore_tmp_tl - \blx@edef@refcontext { \l__postnotes_restore_tmp_tl } - } + { \toggletrue { blx@footnote } } \AddToHook { begindocument/before } [ postnotes/mkbibendnote ] { - \cs_set_nopar:Npn \blx@theendnote { \postnote } - \cs_set_nopar:Npn \blx@theendnotetext + \cs_set:Npn \blx@theendnote { \postnote } + \cs_set:Npn \blx@theendnotetext { \blx@err@endnote \footnotetext } } - \cs_new_protected:Npn \__postnotes_biblatex_endrefcontext_local: - { - \togglefalse { blx@refcontext } - \tl_clear:N \blx@refcontext@labelprefix - \tl_clear:N \blx@refcontext@labelprefix@real - \tl_set:Nx \blx@refcontext@sortingtemplatename { \blx@sorting } - \tl_set:Nn \blx@refcontext@sortingnamekeytemplatename { global } - \tl_set:Nn \blx@refcontext@uniquenametemplatename { global } - \tl_set:Nn \blx@refcontext@labelalphanametemplatename { global } - \blx@edef@refcontext - { - \blx@refcontext@sortingtemplatename / - \blx@refcontext@sortingnamekeytemplatename / - / - \blx@refcontext@uniquenametemplatename / - \blx@refcontext@labelalphanametemplatename - } - } - \cs_new_protected:Npn \__postnotes_biblatex_citereset_local: - { - \tl_clear:c { blx@bsee@ \int_use:N \c@refsection } - \tl_clear:c { blx@fsee@ \int_use:N \c@refsection } - \undef \blx@lastkey@text - \undef \blx@lastkey@foot - \undef \blx@lasthash@text - \undef \blx@lasthash@foot - \clist_map_inline:Nn \blx@trackhash@text - { \csundef { blx@lastkey@text@ ##1 } } - \tl_clear:N \blx@trackhash@text - \clist_map_inline:Nn \blx@trackhash@foot - { \csundef { blx@lastkey@foot@ ##1 } } - \tl_clear:N \blx@trackhash@foot - \clist_map_inline:Nn \blx@trackkeys@text - { \csundef { blx@lastnote@text@ ##1 } } - \tl_clear:N \blx@trackkeys@text - \clist_map_inline:Nn \blx@trackkeys@foot - { \csundef { blx@lastnote@foot@ ##1 } } - \tl_clear:N \blx@trackkeys@foot - \cs_set_eq:NN \blx@lastmpfn \z@ - } } \tl_new:N \l__postnotes_note_zlabel_tl \AddToHook { package/zref-user/after } |