Prevent newline after clist_map_inline











up vote
3
down vote

favorite












I'm trying to automate the creation of some forms, and part of that
effort is automatically creating the correct number of blank rows in a
table-like form. That's led me to the following strange behavior:



documentclass{article}
usepackage{expl3}
usepackage{xparse}

ExplSyntaxOn
cs_new_eq:NN clistMap clist_map_inline:nn
ExplSyntaxOff

begin{document}
begin{tabular}{|ll|}
clistMap{one, two, three}{#1 &\hline}
end{tabular}

begin{tabular}{|ll|}
one &\hline
two &\hline
three &\hline
end{tabular}
end{document}


The two tables are typeset differently. I don't understand why.
There's a trailing row after the three rows in the first table. I say
a trailing row, because this following table is typeset the same as
the first.



begin{tabular}{|ll|}
one &\hline
two &\hline
three &\hline
\
end{tabular}


As one final pair of examples, as minimal as possible, note the same
appearance of the following two tables:



begin{tabular}{|ll|}
clistMap{}{#1 &\hline}
end{tabular}

medskip % So you can see where one table ends and the other begins.

begin{tabular}{|ll|}
\
end{tabular}


How do I get rid of this trailing newline? For bonus points---If you'd
be so kind, future answerers of mine---how would one detect that some
other unexpected control sequences are there? I tried using fancyvrb
commands to do it, and I could never quite get what I wanted; I wasn't
able to detect the \ control sequence, and other characters like
& caused problems. I also tried using the trace package, something
like clistMap expands to around 1000 lines of expanded macros.










share|improve this question
























  • If you use clist_map_function:nN instead it works (don't ask me why, though :)
    – Phelype Oleinik
    2 hours ago






  • 2




    you do not have an extra \ to see the effect just use relax or {} or or more or less anything at all after the final hline in your second table.
    – David Carlisle
    2 hours ago






  • 1




    clist_map_inline:nn is not expandable and will leave something behind the last hline which create a new line.
    – Ulrike Fischer
    2 hours ago






  • 1




    in your first code block you have two tables which have different output, the first has a extra spurious row, but that is not because the l3 code generated an extra \ , add relax before end{tabular} to the second tabular then the two will produce the same output.
    – David Carlisle
    1 hour ago






  • 1




    @Beelzebielsk yes anything in that position will start a cell and so a row, an assignment like refstepcounter or just relax (which does nothing) the only things in that position that do not start a new row have to expand to nothing, like @empty
    – David Carlisle
    1 hour ago















up vote
3
down vote

favorite












I'm trying to automate the creation of some forms, and part of that
effort is automatically creating the correct number of blank rows in a
table-like form. That's led me to the following strange behavior:



documentclass{article}
usepackage{expl3}
usepackage{xparse}

ExplSyntaxOn
cs_new_eq:NN clistMap clist_map_inline:nn
ExplSyntaxOff

begin{document}
begin{tabular}{|ll|}
clistMap{one, two, three}{#1 &\hline}
end{tabular}

begin{tabular}{|ll|}
one &\hline
two &\hline
three &\hline
end{tabular}
end{document}


The two tables are typeset differently. I don't understand why.
There's a trailing row after the three rows in the first table. I say
a trailing row, because this following table is typeset the same as
the first.



begin{tabular}{|ll|}
one &\hline
two &\hline
three &\hline
\
end{tabular}


As one final pair of examples, as minimal as possible, note the same
appearance of the following two tables:



begin{tabular}{|ll|}
clistMap{}{#1 &\hline}
end{tabular}

medskip % So you can see where one table ends and the other begins.

begin{tabular}{|ll|}
\
end{tabular}


How do I get rid of this trailing newline? For bonus points---If you'd
be so kind, future answerers of mine---how would one detect that some
other unexpected control sequences are there? I tried using fancyvrb
commands to do it, and I could never quite get what I wanted; I wasn't
able to detect the \ control sequence, and other characters like
& caused problems. I also tried using the trace package, something
like clistMap expands to around 1000 lines of expanded macros.










share|improve this question
























  • If you use clist_map_function:nN instead it works (don't ask me why, though :)
    – Phelype Oleinik
    2 hours ago






  • 2




    you do not have an extra \ to see the effect just use relax or {} or or more or less anything at all after the final hline in your second table.
    – David Carlisle
    2 hours ago






  • 1




    clist_map_inline:nn is not expandable and will leave something behind the last hline which create a new line.
    – Ulrike Fischer
    2 hours ago






  • 1




    in your first code block you have two tables which have different output, the first has a extra spurious row, but that is not because the l3 code generated an extra \ , add relax before end{tabular} to the second tabular then the two will produce the same output.
    – David Carlisle
    1 hour ago






  • 1




    @Beelzebielsk yes anything in that position will start a cell and so a row, an assignment like refstepcounter or just relax (which does nothing) the only things in that position that do not start a new row have to expand to nothing, like @empty
    – David Carlisle
    1 hour ago













up vote
3
down vote

favorite









up vote
3
down vote

favorite











I'm trying to automate the creation of some forms, and part of that
effort is automatically creating the correct number of blank rows in a
table-like form. That's led me to the following strange behavior:



documentclass{article}
usepackage{expl3}
usepackage{xparse}

ExplSyntaxOn
cs_new_eq:NN clistMap clist_map_inline:nn
ExplSyntaxOff

begin{document}
begin{tabular}{|ll|}
clistMap{one, two, three}{#1 &\hline}
end{tabular}

begin{tabular}{|ll|}
one &\hline
two &\hline
three &\hline
end{tabular}
end{document}


The two tables are typeset differently. I don't understand why.
There's a trailing row after the three rows in the first table. I say
a trailing row, because this following table is typeset the same as
the first.



begin{tabular}{|ll|}
one &\hline
two &\hline
three &\hline
\
end{tabular}


As one final pair of examples, as minimal as possible, note the same
appearance of the following two tables:



begin{tabular}{|ll|}
clistMap{}{#1 &\hline}
end{tabular}

medskip % So you can see where one table ends and the other begins.

begin{tabular}{|ll|}
\
end{tabular}


How do I get rid of this trailing newline? For bonus points---If you'd
be so kind, future answerers of mine---how would one detect that some
other unexpected control sequences are there? I tried using fancyvrb
commands to do it, and I could never quite get what I wanted; I wasn't
able to detect the \ control sequence, and other characters like
& caused problems. I also tried using the trace package, something
like clistMap expands to around 1000 lines of expanded macros.










share|improve this question















I'm trying to automate the creation of some forms, and part of that
effort is automatically creating the correct number of blank rows in a
table-like form. That's led me to the following strange behavior:



documentclass{article}
usepackage{expl3}
usepackage{xparse}

ExplSyntaxOn
cs_new_eq:NN clistMap clist_map_inline:nn
ExplSyntaxOff

begin{document}
begin{tabular}{|ll|}
clistMap{one, two, three}{#1 &\hline}
end{tabular}

begin{tabular}{|ll|}
one &\hline
two &\hline
three &\hline
end{tabular}
end{document}


The two tables are typeset differently. I don't understand why.
There's a trailing row after the three rows in the first table. I say
a trailing row, because this following table is typeset the same as
the first.



begin{tabular}{|ll|}
one &\hline
two &\hline
three &\hline
\
end{tabular}


As one final pair of examples, as minimal as possible, note the same
appearance of the following two tables:



begin{tabular}{|ll|}
clistMap{}{#1 &\hline}
end{tabular}

medskip % So you can see where one table ends and the other begins.

begin{tabular}{|ll|}
\
end{tabular}


How do I get rid of this trailing newline? For bonus points---If you'd
be so kind, future answerers of mine---how would one detect that some
other unexpected control sequences are there? I tried using fancyvrb
commands to do it, and I could never quite get what I wanted; I wasn't
able to detect the \ control sequence, and other characters like
& caused problems. I also tried using the trace package, something
like clistMap expands to around 1000 lines of expanded macros.







latex3






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 1 hour ago

























asked 2 hours ago









Beelzebielsk

205




205












  • If you use clist_map_function:nN instead it works (don't ask me why, though :)
    – Phelype Oleinik
    2 hours ago






  • 2




    you do not have an extra \ to see the effect just use relax or {} or or more or less anything at all after the final hline in your second table.
    – David Carlisle
    2 hours ago






  • 1




    clist_map_inline:nn is not expandable and will leave something behind the last hline which create a new line.
    – Ulrike Fischer
    2 hours ago






  • 1




    in your first code block you have two tables which have different output, the first has a extra spurious row, but that is not because the l3 code generated an extra \ , add relax before end{tabular} to the second tabular then the two will produce the same output.
    – David Carlisle
    1 hour ago






  • 1




    @Beelzebielsk yes anything in that position will start a cell and so a row, an assignment like refstepcounter or just relax (which does nothing) the only things in that position that do not start a new row have to expand to nothing, like @empty
    – David Carlisle
    1 hour ago


















  • If you use clist_map_function:nN instead it works (don't ask me why, though :)
    – Phelype Oleinik
    2 hours ago






  • 2




    you do not have an extra \ to see the effect just use relax or {} or or more or less anything at all after the final hline in your second table.
    – David Carlisle
    2 hours ago






  • 1




    clist_map_inline:nn is not expandable and will leave something behind the last hline which create a new line.
    – Ulrike Fischer
    2 hours ago






  • 1




    in your first code block you have two tables which have different output, the first has a extra spurious row, but that is not because the l3 code generated an extra \ , add relax before end{tabular} to the second tabular then the two will produce the same output.
    – David Carlisle
    1 hour ago






  • 1




    @Beelzebielsk yes anything in that position will start a cell and so a row, an assignment like refstepcounter or just relax (which does nothing) the only things in that position that do not start a new row have to expand to nothing, like @empty
    – David Carlisle
    1 hour ago
















If you use clist_map_function:nN instead it works (don't ask me why, though :)
– Phelype Oleinik
2 hours ago




If you use clist_map_function:nN instead it works (don't ask me why, though :)
– Phelype Oleinik
2 hours ago




2




2




you do not have an extra \ to see the effect just use relax or {} or or more or less anything at all after the final hline in your second table.
– David Carlisle
2 hours ago




you do not have an extra \ to see the effect just use relax or {} or or more or less anything at all after the final hline in your second table.
– David Carlisle
2 hours ago




1




1




clist_map_inline:nn is not expandable and will leave something behind the last hline which create a new line.
– Ulrike Fischer
2 hours ago




clist_map_inline:nn is not expandable and will leave something behind the last hline which create a new line.
– Ulrike Fischer
2 hours ago




1




1




in your first code block you have two tables which have different output, the first has a extra spurious row, but that is not because the l3 code generated an extra \ , add relax before end{tabular} to the second tabular then the two will produce the same output.
– David Carlisle
1 hour ago




in your first code block you have two tables which have different output, the first has a extra spurious row, but that is not because the l3 code generated an extra \ , add relax before end{tabular} to the second tabular then the two will produce the same output.
– David Carlisle
1 hour ago




1




1




@Beelzebielsk yes anything in that position will start a cell and so a row, an assignment like refstepcounter or just relax (which does nothing) the only things in that position that do not start a new row have to expand to nothing, like @empty
– David Carlisle
1 hour ago




@Beelzebielsk yes anything in that position will start a cell and so a row, an assignment like refstepcounter or just relax (which does nothing) the only things in that position that do not start a new row have to expand to nothing, like @empty
– David Carlisle
1 hour ago










1 Answer
1






active

oldest

votes

















up vote
3
down vote



accepted










You need to use clist_map_function:nN, defining a temporary function:



documentclass{article}

usepackage{expl3}
usepackage{xparse}

ExplSyntaxOn
NewDocumentCommand{clistMap}{mm}
{
cs_gset:Nn __beelzebielsk_map:n { #2 }
clist_map_function:nN { #1 } __beelzebielsk_map:n
}
ExplSyntaxOff

begin{document}

begin{tabular}{|l|l|}
hline
clistMap{one, two, three}{#1 &\hline}
end{tabular}
qquad
begin{tabular}{|l|l|}
hline
one &\hline
two &\hline
three &\hline
end{tabular}

end{document}


The problem with clist_map_inline:nn is that it leaves TeX in the state where a new cell has already been started when it realizes that the loop has ended.



enter image description here



This is actually what clist_map_inline:nn does: it defines a new “unnamed” function and does clist_map_function:nN with it. However it also has to cover its tracks, particularly for being usable also nested, and for this it uses a counter that has to be stepped down at the end: this is the operation that creates the unwanted additional row.



More explicitly: clist_map_inline:nn { <clist> } { <code> } roughly does



int_incr:Nn <reserved>_int
cs_gset:cn { <reserved> int_eval:n <reserved>_int :n } { <code> }
clist_map_function:nc { <clist> } { <reserved> int_eval:n <reserved>_int :n }
int_decr:Nn <reserved>_int


The function passed to clist_map_function:nc so depends on the nesting level, because the reserved counter is associated to clist mappings. This allows clist_map_inline:nn to contain in its second argument an inner clist_map_inline:nn, which will execute clist_map_function:nc with a different function.



However, the int_decr:Nn <reserved>_int operation will trigger, in your case, TeX starting a new cell. TeX tables are always rebellious beasts. ;-).



With the proposed definition, the operations on counters are skipped; of course you cannot nest clistMap in clistMap.






share|improve this answer























  • Could you explain why there's this difference between clist_map_function:nN and clist_map_inline:nn? There's nothing obvious to me about why one would have to leave a little extra stuff after the loop and the other doesn't. A reference for my familiarity: I've used TeX for several years, and I've read a few chapters of the TeXBook. I still find TeX and all related things extremely obtuse (once I want to start creating things of my own). Overall, not that familiar with the internals, TeX primitives, nor with Latex3.
    – Beelzebielsk
    1 hour ago












  • @Beelzebielsk I added some more explanations
    – egreg
    1 hour ago











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f462260%2fprevent-newline-after-clist-map-inline%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
3
down vote



accepted










You need to use clist_map_function:nN, defining a temporary function:



documentclass{article}

usepackage{expl3}
usepackage{xparse}

ExplSyntaxOn
NewDocumentCommand{clistMap}{mm}
{
cs_gset:Nn __beelzebielsk_map:n { #2 }
clist_map_function:nN { #1 } __beelzebielsk_map:n
}
ExplSyntaxOff

begin{document}

begin{tabular}{|l|l|}
hline
clistMap{one, two, three}{#1 &\hline}
end{tabular}
qquad
begin{tabular}{|l|l|}
hline
one &\hline
two &\hline
three &\hline
end{tabular}

end{document}


The problem with clist_map_inline:nn is that it leaves TeX in the state where a new cell has already been started when it realizes that the loop has ended.



enter image description here



This is actually what clist_map_inline:nn does: it defines a new “unnamed” function and does clist_map_function:nN with it. However it also has to cover its tracks, particularly for being usable also nested, and for this it uses a counter that has to be stepped down at the end: this is the operation that creates the unwanted additional row.



More explicitly: clist_map_inline:nn { <clist> } { <code> } roughly does



int_incr:Nn <reserved>_int
cs_gset:cn { <reserved> int_eval:n <reserved>_int :n } { <code> }
clist_map_function:nc { <clist> } { <reserved> int_eval:n <reserved>_int :n }
int_decr:Nn <reserved>_int


The function passed to clist_map_function:nc so depends on the nesting level, because the reserved counter is associated to clist mappings. This allows clist_map_inline:nn to contain in its second argument an inner clist_map_inline:nn, which will execute clist_map_function:nc with a different function.



However, the int_decr:Nn <reserved>_int operation will trigger, in your case, TeX starting a new cell. TeX tables are always rebellious beasts. ;-).



With the proposed definition, the operations on counters are skipped; of course you cannot nest clistMap in clistMap.






share|improve this answer























  • Could you explain why there's this difference between clist_map_function:nN and clist_map_inline:nn? There's nothing obvious to me about why one would have to leave a little extra stuff after the loop and the other doesn't. A reference for my familiarity: I've used TeX for several years, and I've read a few chapters of the TeXBook. I still find TeX and all related things extremely obtuse (once I want to start creating things of my own). Overall, not that familiar with the internals, TeX primitives, nor with Latex3.
    – Beelzebielsk
    1 hour ago












  • @Beelzebielsk I added some more explanations
    – egreg
    1 hour ago















up vote
3
down vote



accepted










You need to use clist_map_function:nN, defining a temporary function:



documentclass{article}

usepackage{expl3}
usepackage{xparse}

ExplSyntaxOn
NewDocumentCommand{clistMap}{mm}
{
cs_gset:Nn __beelzebielsk_map:n { #2 }
clist_map_function:nN { #1 } __beelzebielsk_map:n
}
ExplSyntaxOff

begin{document}

begin{tabular}{|l|l|}
hline
clistMap{one, two, three}{#1 &\hline}
end{tabular}
qquad
begin{tabular}{|l|l|}
hline
one &\hline
two &\hline
three &\hline
end{tabular}

end{document}


The problem with clist_map_inline:nn is that it leaves TeX in the state where a new cell has already been started when it realizes that the loop has ended.



enter image description here



This is actually what clist_map_inline:nn does: it defines a new “unnamed” function and does clist_map_function:nN with it. However it also has to cover its tracks, particularly for being usable also nested, and for this it uses a counter that has to be stepped down at the end: this is the operation that creates the unwanted additional row.



More explicitly: clist_map_inline:nn { <clist> } { <code> } roughly does



int_incr:Nn <reserved>_int
cs_gset:cn { <reserved> int_eval:n <reserved>_int :n } { <code> }
clist_map_function:nc { <clist> } { <reserved> int_eval:n <reserved>_int :n }
int_decr:Nn <reserved>_int


The function passed to clist_map_function:nc so depends on the nesting level, because the reserved counter is associated to clist mappings. This allows clist_map_inline:nn to contain in its second argument an inner clist_map_inline:nn, which will execute clist_map_function:nc with a different function.



However, the int_decr:Nn <reserved>_int operation will trigger, in your case, TeX starting a new cell. TeX tables are always rebellious beasts. ;-).



With the proposed definition, the operations on counters are skipped; of course you cannot nest clistMap in clistMap.






share|improve this answer























  • Could you explain why there's this difference between clist_map_function:nN and clist_map_inline:nn? There's nothing obvious to me about why one would have to leave a little extra stuff after the loop and the other doesn't. A reference for my familiarity: I've used TeX for several years, and I've read a few chapters of the TeXBook. I still find TeX and all related things extremely obtuse (once I want to start creating things of my own). Overall, not that familiar with the internals, TeX primitives, nor with Latex3.
    – Beelzebielsk
    1 hour ago












  • @Beelzebielsk I added some more explanations
    – egreg
    1 hour ago













up vote
3
down vote



accepted







up vote
3
down vote



accepted






You need to use clist_map_function:nN, defining a temporary function:



documentclass{article}

usepackage{expl3}
usepackage{xparse}

ExplSyntaxOn
NewDocumentCommand{clistMap}{mm}
{
cs_gset:Nn __beelzebielsk_map:n { #2 }
clist_map_function:nN { #1 } __beelzebielsk_map:n
}
ExplSyntaxOff

begin{document}

begin{tabular}{|l|l|}
hline
clistMap{one, two, three}{#1 &\hline}
end{tabular}
qquad
begin{tabular}{|l|l|}
hline
one &\hline
two &\hline
three &\hline
end{tabular}

end{document}


The problem with clist_map_inline:nn is that it leaves TeX in the state where a new cell has already been started when it realizes that the loop has ended.



enter image description here



This is actually what clist_map_inline:nn does: it defines a new “unnamed” function and does clist_map_function:nN with it. However it also has to cover its tracks, particularly for being usable also nested, and for this it uses a counter that has to be stepped down at the end: this is the operation that creates the unwanted additional row.



More explicitly: clist_map_inline:nn { <clist> } { <code> } roughly does



int_incr:Nn <reserved>_int
cs_gset:cn { <reserved> int_eval:n <reserved>_int :n } { <code> }
clist_map_function:nc { <clist> } { <reserved> int_eval:n <reserved>_int :n }
int_decr:Nn <reserved>_int


The function passed to clist_map_function:nc so depends on the nesting level, because the reserved counter is associated to clist mappings. This allows clist_map_inline:nn to contain in its second argument an inner clist_map_inline:nn, which will execute clist_map_function:nc with a different function.



However, the int_decr:Nn <reserved>_int operation will trigger, in your case, TeX starting a new cell. TeX tables are always rebellious beasts. ;-).



With the proposed definition, the operations on counters are skipped; of course you cannot nest clistMap in clistMap.






share|improve this answer














You need to use clist_map_function:nN, defining a temporary function:



documentclass{article}

usepackage{expl3}
usepackage{xparse}

ExplSyntaxOn
NewDocumentCommand{clistMap}{mm}
{
cs_gset:Nn __beelzebielsk_map:n { #2 }
clist_map_function:nN { #1 } __beelzebielsk_map:n
}
ExplSyntaxOff

begin{document}

begin{tabular}{|l|l|}
hline
clistMap{one, two, three}{#1 &\hline}
end{tabular}
qquad
begin{tabular}{|l|l|}
hline
one &\hline
two &\hline
three &\hline
end{tabular}

end{document}


The problem with clist_map_inline:nn is that it leaves TeX in the state where a new cell has already been started when it realizes that the loop has ended.



enter image description here



This is actually what clist_map_inline:nn does: it defines a new “unnamed” function and does clist_map_function:nN with it. However it also has to cover its tracks, particularly for being usable also nested, and for this it uses a counter that has to be stepped down at the end: this is the operation that creates the unwanted additional row.



More explicitly: clist_map_inline:nn { <clist> } { <code> } roughly does



int_incr:Nn <reserved>_int
cs_gset:cn { <reserved> int_eval:n <reserved>_int :n } { <code> }
clist_map_function:nc { <clist> } { <reserved> int_eval:n <reserved>_int :n }
int_decr:Nn <reserved>_int


The function passed to clist_map_function:nc so depends on the nesting level, because the reserved counter is associated to clist mappings. This allows clist_map_inline:nn to contain in its second argument an inner clist_map_inline:nn, which will execute clist_map_function:nc with a different function.



However, the int_decr:Nn <reserved>_int operation will trigger, in your case, TeX starting a new cell. TeX tables are always rebellious beasts. ;-).



With the proposed definition, the operations on counters are skipped; of course you cannot nest clistMap in clistMap.







share|improve this answer














share|improve this answer



share|improve this answer








edited 1 hour ago

























answered 2 hours ago









egreg

700k8518633139




700k8518633139












  • Could you explain why there's this difference between clist_map_function:nN and clist_map_inline:nn? There's nothing obvious to me about why one would have to leave a little extra stuff after the loop and the other doesn't. A reference for my familiarity: I've used TeX for several years, and I've read a few chapters of the TeXBook. I still find TeX and all related things extremely obtuse (once I want to start creating things of my own). Overall, not that familiar with the internals, TeX primitives, nor with Latex3.
    – Beelzebielsk
    1 hour ago












  • @Beelzebielsk I added some more explanations
    – egreg
    1 hour ago


















  • Could you explain why there's this difference between clist_map_function:nN and clist_map_inline:nn? There's nothing obvious to me about why one would have to leave a little extra stuff after the loop and the other doesn't. A reference for my familiarity: I've used TeX for several years, and I've read a few chapters of the TeXBook. I still find TeX and all related things extremely obtuse (once I want to start creating things of my own). Overall, not that familiar with the internals, TeX primitives, nor with Latex3.
    – Beelzebielsk
    1 hour ago












  • @Beelzebielsk I added some more explanations
    – egreg
    1 hour ago
















Could you explain why there's this difference between clist_map_function:nN and clist_map_inline:nn? There's nothing obvious to me about why one would have to leave a little extra stuff after the loop and the other doesn't. A reference for my familiarity: I've used TeX for several years, and I've read a few chapters of the TeXBook. I still find TeX and all related things extremely obtuse (once I want to start creating things of my own). Overall, not that familiar with the internals, TeX primitives, nor with Latex3.
– Beelzebielsk
1 hour ago






Could you explain why there's this difference between clist_map_function:nN and clist_map_inline:nn? There's nothing obvious to me about why one would have to leave a little extra stuff after the loop and the other doesn't. A reference for my familiarity: I've used TeX for several years, and I've read a few chapters of the TeXBook. I still find TeX and all related things extremely obtuse (once I want to start creating things of my own). Overall, not that familiar with the internals, TeX primitives, nor with Latex3.
– Beelzebielsk
1 hour ago














@Beelzebielsk I added some more explanations
– egreg
1 hour ago




@Beelzebielsk I added some more explanations
– egreg
1 hour ago


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f462260%2fprevent-newline-after-clist-map-inline%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Contact image not getting when fetch all contact list from iPhone by CNContact

count number of partitions of a set with n elements into k subsets

A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks