I have two seq's, one constructed from a clist, another from a prop, whose expansion (with , between items) look the same. They are supposed to contain options to \newwatermark. The use of a prop is to make sure there are no duplicate in the options (and other requirements). The first works as expected, the second fails to compile. Why, and how can it be fixed? I don't get this error with includepdf in place of newwatermark.
PS: this is a follow up to this post.
\documentclass{article} \usepackage{mwe} \usepackage{pdfpages} \usepackage{xparse} \usepackage{xwatermark} \ExplSyntaxOn \cs_new_protected:Nn\__erw_pass_option:Nn{#1[#2]} \cs_generate_variant:Nn \__erw_pass_option:Nn {Ne} \ExplSyntaxOff \begin{document} \ExplSyntaxOn \tl_set:Nn\l__Foo_tl{angle=45, scale=0.15} %\tl_set:Nn\l__Baz_tl{page=\thepage,xpos=-20} \seq_set_from_clist:Nn \l__a_seq{page=\thepage,xpos=-20} \prop_set_from_keyval:Nn \l__prop{page=\thepage,xpos=-20} \seq_new:N \l__b_seq \prop_map_inline:Nn \l__prop{\seq_put_right:Nn\l__b_seq{#1=#2}} a:\seq_use:Nn \l__a_seq{,}\\ b:\seq_use:Nn \l__b_seq{,}. \newpage \__erw_pass_option:Ne \newwatermark{\seq_use:Nn\l__a_seq {,}}{DRAFT} % OK %\__erw_pass_option:Ne \newwatermark{\seq_use:Nn\l__b_seq {,}}{DRAFT} %File ended while scanning use of \xwm@ \__erw_pass_option:Ne \includepdf{\l__Foo_tl}{example-image-a} \ExplSyntaxOff \end{document} 

xwatermark,background?bakgroundandpdfpagesmay clash. tex.stackexchange.com/questions/556935/…