correct and clean up label handling
This commit is contained in:
parent
398aa189fe
commit
ecde594cd3
23
luamml.dtx
23
luamml.dtx
@ -775,13 +775,32 @@
|
|||||||
\clist_map_inline:nn
|
\clist_map_inline:nn
|
||||||
{
|
{
|
||||||
align,
|
align,
|
||||||
|
align*,
|
||||||
alignat,
|
alignat,
|
||||||
|
alignat*,
|
||||||
xalignat,
|
xalignat,
|
||||||
xxalignat,
|
xalignat*,
|
||||||
|
% \end{macrocode}
|
||||||
|
% there is never a tag/label in xxalignat, so does it make sense to add a label column?
|
||||||
|
% Left out for now.
|
||||||
|
% \begin{macrocode}
|
||||||
|
%xxalignat,
|
||||||
flalign,
|
flalign,
|
||||||
|
flalign*,
|
||||||
gather,
|
gather,
|
||||||
|
gather*,
|
||||||
|
% \end{macrocode}
|
||||||
|
% equation and multline have at most one tag, so we do not use a label column
|
||||||
|
% but rely on the external Lbl for now.
|
||||||
|
% \begin{macrocode}
|
||||||
%multline, % NO
|
%multline, % NO
|
||||||
|
%multline*, % NO
|
||||||
%equation, % NO
|
%equation, % NO
|
||||||
|
%equation*, % NO
|
||||||
|
% \end{macrocode}
|
||||||
|
% split has never a numbering so is ignored
|
||||||
|
% \begin{macrocode}
|
||||||
|
%split, % NO
|
||||||
}
|
}
|
||||||
{\tl_const:cn { c__luamml_label_#1_tl}{}}
|
{\tl_const:cn { c__luamml_label_#1_tl}{}}
|
||||||
% \end{macrocode}
|
% \end{macrocode}
|
||||||
@ -795,7 +814,7 @@
|
|||||||
{ \tl_if_exist_p:c { c__luamml_label_ \@currenvir _tl } }
|
{ \tl_if_exist_p:c { c__luamml_label_ \@currenvir _tl } }
|
||||||
{ \int_if_odd_p:n { \int_div_truncate:nn { \l__luamml_flag_int } { 8 } } }
|
{ \int_if_odd_p:n { \int_div_truncate:nn { \l__luamml_flag_int } { 8 } } }
|
||||||
{
|
{
|
||||||
\typeout{Stash~and~move~\@currenvir~Lbl}
|
%\typeout{Stash~and~move~\@currenvir\c_space_tl Lbl}
|
||||||
\tag_struct_begin:n {tag=Lbl,stash}
|
\tag_struct_begin:n {tag=Lbl,stash}
|
||||||
\directlua{table.insert(ltx.__tag.struct.luamml.labels,\tag_get:n{struct_num})}
|
\directlua{table.insert(ltx.__tag.struct.luamml.labels,\tag_get:n{struct_num})}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user