foreach iterates through list as one argument? - Help please

What is going on with Captain Marvel's blood colour?

Find the age of the oldest file in one line or return zero

intersection of two sorted vectors in C++

Can a rocket refuel on Mars from water?

Western buddy movie with a supernatural twist where a woman turns into an eagle at the end

Withdrawals from HSA

Anagram holiday

Is "remove commented out code" correct English?

How to say in German "enjoying home comforts"

Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?

Why does Kotter return in Welcome Back Kotter

Alternative to sending password over mail?

Did Shadowfax go to Valinor?

Is it canonical bit space?

What exploit are these user agents trying to use?

I Accidentally Deleted a Stock Terminal Theme

Should I tell management that I intend to leave due to bad software development practices?

Why doesn't H₄O²⁺ exist?

Is it possible to create light that imparts a greater proportion of its energy as momentum rather than heat?

Can I ask the recruiters in my resume to put the reason why I am rejected?

How to take photos in burst mode, without vibration?

Latex document compiles but tikzpicture is not showing up

How could indestructible materials be used in power generation?

What killed these X2 caps?



foreach iterates through list as one argument? - Help please














0















My question is very simple. The following lines



documentclass[10pt,german]article
usepackage[T1]fontenc
usepackage[ngerman]babel
usepackagepgffor %foreach

expandafterxdefcsname BLABLA1endcsname1200,2800
expandafterxdefcsname BLABLA2endcsname5000,5500
expandafterxdefcsname BLABLA3endcsname1200,2800



newcommandsomecommand[1]


foreach x in #1
foreach y in csname BLABLAxendcsname
y






begindocument


somecommand1,2,3

enddocument


produces



1200,2800
5000,5500
1200,2800


instead of



1200
2800
5000
5500
1200
2800


foreach x iterates through 1,2,3 one by one. But
foreach y iterates through 1200,2800 as one argument.



What can i do?









share







New contributor




Bilal Yilmaz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Welcome to the site TeX.SE. :-) I hope that you can appreciate it.

    – Sebastiano
    39 secs ago















0















My question is very simple. The following lines



documentclass[10pt,german]article
usepackage[T1]fontenc
usepackage[ngerman]babel
usepackagepgffor %foreach

expandafterxdefcsname BLABLA1endcsname1200,2800
expandafterxdefcsname BLABLA2endcsname5000,5500
expandafterxdefcsname BLABLA3endcsname1200,2800



newcommandsomecommand[1]


foreach x in #1
foreach y in csname BLABLAxendcsname
y






begindocument


somecommand1,2,3

enddocument


produces



1200,2800
5000,5500
1200,2800


instead of



1200
2800
5000
5500
1200
2800


foreach x iterates through 1,2,3 one by one. But
foreach y iterates through 1200,2800 as one argument.



What can i do?









share







New contributor




Bilal Yilmaz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Welcome to the site TeX.SE. :-) I hope that you can appreciate it.

    – Sebastiano
    39 secs ago













0












0








0








My question is very simple. The following lines



documentclass[10pt,german]article
usepackage[T1]fontenc
usepackage[ngerman]babel
usepackagepgffor %foreach

expandafterxdefcsname BLABLA1endcsname1200,2800
expandafterxdefcsname BLABLA2endcsname5000,5500
expandafterxdefcsname BLABLA3endcsname1200,2800



newcommandsomecommand[1]


foreach x in #1
foreach y in csname BLABLAxendcsname
y






begindocument


somecommand1,2,3

enddocument


produces



1200,2800
5000,5500
1200,2800


instead of



1200
2800
5000
5500
1200
2800


foreach x iterates through 1,2,3 one by one. But
foreach y iterates through 1200,2800 as one argument.



What can i do?









share







New contributor




Bilal Yilmaz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












My question is very simple. The following lines



documentclass[10pt,german]article
usepackage[T1]fontenc
usepackage[ngerman]babel
usepackagepgffor %foreach

expandafterxdefcsname BLABLA1endcsname1200,2800
expandafterxdefcsname BLABLA2endcsname5000,5500
expandafterxdefcsname BLABLA3endcsname1200,2800



newcommandsomecommand[1]


foreach x in #1
foreach y in csname BLABLAxendcsname
y






begindocument


somecommand1,2,3

enddocument


produces



1200,2800
5000,5500
1200,2800


instead of



1200
2800
5000
5500
1200
2800


foreach x iterates through 1,2,3 one by one. But
foreach y iterates through 1200,2800 as one argument.



What can i do?







lists punctuation foreach





share







New contributor




Bilal Yilmaz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share







New contributor




Bilal Yilmaz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share



share






New contributor




Bilal Yilmaz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 2 mins ago









Bilal YilmazBilal Yilmaz

1




1




New contributor




Bilal Yilmaz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Bilal Yilmaz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Bilal Yilmaz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • Welcome to the site TeX.SE. :-) I hope that you can appreciate it.

    – Sebastiano
    39 secs ago

















  • Welcome to the site TeX.SE. :-) I hope that you can appreciate it.

    – Sebastiano
    39 secs ago
















Welcome to the site TeX.SE. :-) I hope that you can appreciate it.

– Sebastiano
39 secs ago





Welcome to the site TeX.SE. :-) I hope that you can appreciate it.

– Sebastiano
39 secs ago










0






active

oldest

votes












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',
autoActivateHeartbeat: false,
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
);



);






Bilal Yilmaz is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483254%2fforeach-iterates-through-list-as-one-argument-help-please%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








Bilal Yilmaz is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















Bilal Yilmaz is a new contributor. Be nice, and check out our Code of Conduct.












Bilal Yilmaz is a new contributor. Be nice, and check out our Code of Conduct.











Bilal Yilmaz is a new contributor. Be nice, and check out our Code of Conduct.














Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483254%2fforeach-iterates-through-list-as-one-argument-help-please%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

Isabella Eugénie Boyer Biographie | Références | Menu de navigationmodifiermodifier le codeComparator to Compute the Relative Value of a U.S. Dollar Amount – 1774 to Present.

Join wedge with single bond in chemfigHow to make only one part of double bond bold with chemfig?Crossing bonds in chemfigjoining atoms in chemfig. Two adjacent molculesHow do I selectively change bond length in chemfig?Ugly bond joints in chemfigchemfig: reaction above arrowUsing the mhchem and chemfig packages in conjunctionBonding to specific element letter using chemfigResonance hybrids in chemfigScale chemfig molecule in beamer with tikzWhy does this chemfig bond with a hook start in the middle of the atom?

Are small insurances worth itIs insurance worth it if you can afford to replace the item? If not, when is it?Is accident insurance worth it for my kids who play sportsIs insuring property for more than it is worth allowed?At what point does it become worth it to file an insurance claim?Are wage loss insurance programs worth the cost compared to having an emergency fund?When is an event worth insuring against?Is insurance worth it if you can afford to replace the item? If not, when is it?FHA loan just commenced : Any way to get any of the up-front mortgage insurance back?Which types of insurances do I need to buy?Should I carry less renter's insurance if I can self-insure?Mortgage Adviser Signed Me Up For Multiple Home and Life Insurances (UK)Why many travel insurances don't cover country of nationality?