I asked about \clist_gpop and tabular yesterday: LaTeX3: token list from clist_pop can't display in tabular 2nd column
It's fixed. But when I change to use tabularx, it look like has extra pop, and it's affect by table alignment.
This is MWE:
\documentclass[12pt]{article}
\usepackage{expl3}
\usepackage{tabularx}
\ExplSyntaxOn
\begin{document}
\clist_new:N \g_sppmg_my_cl
\clist_gset:Nn \g_sppmg_my_cl {a,b,c,d,e,f,g,h}
\begin{tabularx}{\textwidth}{|c|}
% --------------------------------
\clist_gpop:NN \g_sppmg_my_cl \l_tmpa_tl
\tl_gset_eq:NN \g_tmpa_tl \l_tmpa_tl
``\g_tmpa_tl'' \\
% --------------------------------
\end{tabularx}
\ExplSyntaxOff
\end{document}
- In this code, the output is
b(Should bea) - If the block between two
% ----use twice, it will outputcanddtwo rows. - If change table alignment from
ctoX(with 2 block / 2 rows), output iseandf
Why ?
Note, I search tabularx and expl3, then I find expl3 code with tabularx , but I still don't know how to fix it.

\clist_pop:NNinstead, but I don't understand what you want to achieve here. If I remember correctly,tabularxis setting up a box first with its content, measuring the width, then recalculating – Jan 31 '18 at 22:08tabularxprocesses its contents twice. Seetabularxprocesses its body multiple times; how do I know which cycle I am in? – Werner Jan 31 '18 at 22:19\multicolumnyou have and how many iterations it takes to find good width. – David Carlisle Jan 31 '18 at 23:25