summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/postnotes/postnotes.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/postnotes/postnotes.dtx')
-rw-r--r--macros/latex/contrib/postnotes/postnotes.dtx23
1 files changed, 16 insertions, 7 deletions
diff --git a/macros/latex/contrib/postnotes/postnotes.dtx b/macros/latex/contrib/postnotes/postnotes.dtx
index 47271ac97a..edf129ed9c 100644
--- a/macros/latex/contrib/postnotes/postnotes.dtx
+++ b/macros/latex/contrib/postnotes/postnotes.dtx
@@ -153,7 +153,7 @@
%
%
% \begin{macrocode}
-\ProvidesExplPackage {postnotes} {2023-02-15} {0.2.2}
+\ProvidesExplPackage {postnotes} {2023-02-21} {0.2.3}
{Endnotes for LaTeX}
% \end{macrocode}
%
@@ -771,7 +771,7 @@
% not all cases are as tricky as \cs{caption} or \cs{text}, and even that can
% be decently dealt with without a separation between ``mark'' and ``text''.
% Besides, in difficult cases, the package offers a \opt{nomark} option to
-% \cs{postnote} to place a note, but typeset no mark. Than we can typeset a
+% \cs{postnote} to place a note, but typeset no mark. Then we can typeset a
% mark with \cs{postnoteref} referring to a \cs{label} in the note of
% interest. This would result in a correct mark without duplicity, and in a
% correct link from there to the note's text at \cs{printpostnotes}. The
@@ -1377,10 +1377,6 @@
{ \l_postnotes_print_note_id_tl }
\l_@@_print_mark_tl
}
-% \end{macrocode}
-% Leave vertical mode to avoid ``perhaps a missing \cs{item}'' error.
-% \begin{macrocode}
- \mode_leave_vertical:
\l_@@_print_content_tl
\l_@@_post_printnote_tl
\group_end:
@@ -1464,7 +1460,14 @@
\cs_new_protected:Npn \@@_text_mark_wrapper:n #1
{
\bool_if:NTF \l_@@_print_as_list_bool
- { \item [ \l_@@_pre_textmark_tl #1 \l_@@_post_textmark_tl ] }
+ {
+ \item [ \l_@@_pre_textmark_tl #1 \l_@@_post_textmark_tl ]
+% \end{macrocode}
+% Leave vertical mode to avoid ``perhaps a missing \cs{item}'' error for empty
+% notes.
+% \begin{macrocode}
+ \mode_leave_vertical:
+ }
{ \l_@@_pre_textmark_tl #1 \l_@@_post_textmark_tl }
}
% \end{macrocode}
@@ -2454,6 +2457,12 @@
% \pkg{tabularray} a trial/measure pass from the final one. So we use
% \cs{@@_verify_multipass:N} for it.
%
+% See, however, \url{https://tex.stackexchange.com/q/675818} and
+% \url{https://github.com/lvjr/tabularray/issues/179} (thanks
+% \contributor{Ulrike Fischer}). In sum, there's a not yet released new
+% boolean \cs{lTblrMeasuringBool} provided by \pkg{tabularray}, use it when it
+% comes.
+%
% \begin{macrocode}
\AddToHook { package/tabularray/after }
{