summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/postnotes
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-06-12 20:15:14 +0000
committerKarl Berry <karl@freefriends.org>2023-06-12 20:15:14 +0000
commit53de1ded099dfae852b5bf342c9411ca566b0e00 (patch)
treeb475ce02b073686e0c5c62b88e1ebda5b945acd2 /Master/texmf-dist/tex/latex/postnotes
parent6340c1f1407b6c8a60d4d531ce456278f28ce0f3 (diff)
postnotes (12jun23)
git-svn-id: svn://tug.org/texlive/trunk@67345 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/postnotes')
-rw-r--r--Master/texmf-dist/tex/latex/postnotes/postnotes.sty51
1 files changed, 40 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/postnotes/postnotes.sty b/Master/texmf-dist/tex/latex/postnotes/postnotes.sty
index b5b2e1924b2..1e53b51878d 100644
--- a/Master/texmf-dist/tex/latex/postnotes/postnotes.sty
+++ b/Master/texmf-dist/tex/latex/postnotes/postnotes.sty
@@ -26,7 +26,7 @@
%%
%% This work consists of the files postnotes.dtx,
%% postnotes.ins,
-%% postnotes.tex,
+%% postnotes-doc.tex,
%% postnotes-code.tex,
%% and the files generated from them.
%%
@@ -53,7 +53,7 @@
}%
\endinput
}%
-\ProvidesExplPackage {postnotes} {2023-02-21} {0.2.3}
+\ProvidesExplPackage {postnotes} {2023-06-12} {0.2.4}
{Endnotes for LaTeX}
\cs_new:Npn \__postnotes_data_name:n #1
{ g__postnotes_ #1 _data_prop }
@@ -411,21 +411,30 @@
}
\bool_new:N \l__postnotes_inhibit_note_bool
\bool_new:N \l__postnotes_print_plain_mark_bool
+\bool_new:N \l__postnotes_print_plain_mark_stepcounter_bool
\NewHook { postnotes/note/inhibit }
\prg_new_protected_conditional:Npnn \__postnotes_inhibit_note: { F }
{
\bool_set_false:N \l__postnotes_inhibit_note_bool
\bool_set_false:N \l__postnotes_print_plain_mark_bool
+ \bool_set_false:N \l__postnotes_print_plain_mark_stepcounter_bool
\UseHook { postnotes/note/inhibit }
\bool_if:NT \l__postnotes_print_plain_mark_bool
{
\tl_if_empty:NT \l__postnotes_mark_tl
{
- \group_begin:
- \int_incr:N \c@postnote
- \exp_args:NNNx
- \group_end:
- \tl_set:Nn \l__postnotes_mark_tl { \thepostnote }
+ \bool_if:NTF \l__postnotes_print_plain_mark_stepcounter_bool
+ {
+ \stepcounter { postnote }
+ \tl_set:Nx \l__postnotes_mark_tl { \thepostnote }
+ }
+ {
+ \group_begin:
+ \int_incr:N \c@postnote
+ \exp_args:NNNx
+ \group_end:
+ \tl_set:Nn \l__postnotes_mark_tl { \thepostnote }
+ }
}
\__postnotes_typeset_mark_wrapper:n
{ \__postnotes_make_mark:nnn { \l__postnotes_mark_tl } { } { } }
@@ -1053,6 +1062,7 @@
{
\bool_set_true:N \l__postnotes_inhibit_note_bool
\bool_set_true:N \l__postnotes_print_plain_mark_bool
+ \bool_set_true:N \l__postnotes_print_plain_mark_stepcounter_bool
}
}
\AddToHook { postnotes/note/begin } [ postnotes ]
@@ -1072,6 +1082,7 @@
{
\bool_set_true:N \l__postnotes_inhibit_note_bool
\bool_set_true:N \l__postnotes_print_plain_mark_bool
+ \bool_set_true:N \l__postnotes_print_plain_mark_stepcounter_bool
}
}
}
@@ -1091,16 +1102,34 @@
{
\bool_set_true:N \l__postnotes_inhibit_note_bool
\bool_set_true:N \l__postnotes_print_plain_mark_bool
+ \bool_set_true:N \l__postnotes_print_plain_mark_stepcounter_bool
}
}
}
\AddToHook { package/tabularray/after }
{
- \clist_map_inline:nn
- { tblr , longtblr , talltblr , booktabs , longtabs , talltabs , +array }
+ \bool_if_exist:NTF \lTblrMeasuringBool
{
- \AddToHook { env/#1/begin } [ postnotes ]
- { \bool_set_true:N \l__postnotes_maybe_multi_bool }
+ \AddToHook { postnotes/note/inhibit } [ postnotes ]
+ {
+ \bool_if:NT \lTblrMeasuringBool
+ {
+ \bool_set_true:N \l__postnotes_inhibit_note_bool
+ \bool_set_true:N \l__postnotes_print_plain_mark_bool
+ \bool_set_true:N \l__postnotes_print_plain_mark_stepcounter_bool
+ }
+ }
+ }
+ {
+ \clist_map_inline:nn
+ {
+ tblr , longtblr , talltblr , booktabs ,
+ longtabs , talltabs , +array
+ }
+ {
+ \AddToHook { env/#1/begin } [ postnotes ]
+ { \bool_set_true:N \l__postnotes_maybe_multi_bool }
+ }
}
}
\tl_new:N \pntitle