From 7ff1d2ddd1115acf683fd749cfc304d6f8550c05 Mon Sep 17 00:00:00 2001 From: jkuczm Date: Thu, 13 May 2021 16:48:13 +0200 Subject: [PATCH] Use `\hbox_unpack_(drop|clear):N` whichever is available `\hbox_unpack_clear:N` was renamed to `\hbox_unpack_drop:N` in 2019, but some distributions still ship older versions of expl3, so use "drop" if it's available, and fall back to "clear" if not. --- mmacells.sty | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mmacells.sty b/mmacells.sty index df18fb6..5f2cd03 100644 --- a/mmacells.sty +++ b/mmacells.sty @@ -642,10 +642,18 @@ \hbox_set:Nn \@labels { \skip_horizontal:N \@totalleftmargin - \hbox_unpack_drop:N \@labels + \__mmacells_hbox_unpack_drop:N \@labels } } +% \hbox_unpack_clear:N was renamed to \hbox_unpack_drop:N in 2019, +% but some distributions still ship older versions of expl3. +\if_cs_exist:N \hbox_unpack_drop:N + \cs_new_protected:Npn \__mmacells_hbox_unpack_drop:N { \hbox_unpack_drop:N } +\else: + \cs_new_protected:Npn \__mmacells_hbox_unpack_drop:N { \hbox_unpack_clear:N } +\fi: + \cs_new_protected:Npn \__mmacells_group_insert_after:n #1 { \cs_gset_protected_nopar:Npn \g__mmacells_tmp_cs { #1 }