foreach iterates through list as one argument? - Help pleaseUsing Alph on foreach loop argumentHow to get language dependent quotation marks in citations with biblatex?TikZ: foreach in macro with argument as listPass a list through pgfkeyPredefined lists to loop through by @for or foreachtikz: help with this foreach loopTikz: cycling through a foreach functionHelp reproducing a tikzpicture image with foreachldots within Tikz foreach listExtract a sublist from a foreach list

How can saying a song's name be a copyright violation?

Famous Pre Reformation Christian Pastors (Non Catholic and Non Orthodox)

How do I write bicross product symbols in latex?

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

What does it mean to describe someone as a butt steak?

Why is Collection not simply treated as Collection<?>

Why doesn't H₄O²⁺ exist?

Reserved de-dupe rules

90's TV series where a boy goes to another dimension through portal near power lines

In a Spin are Both Wings Stalled?

Why is consensus so controversial in Britain?

intersection of two sorted vectors in C++

What is the word for reserving something for yourself before others do?

1960's book about a plague that kills all white people

Where does SFDX store details about scratch orgs?

Arrow those variables!

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

Can I use a neutral wire from another outlet to repair a broken neutral?

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

Why does Arabsat 6A need a Falcon Heavy to launch

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

Why does Kotter return in Welcome Back Kotter

Is it possible to download Internet Explorer on my Mac running OS X El Capitan?

How can I make my BBEG immortal short of making them a Lich or Vampire?



foreach iterates through list as one argument? - Help please


Using Alph on foreach loop argumentHow to get language dependent quotation marks in citations with biblatex?TikZ: foreach in macro with argument as listPass a list through pgfkeyPredefined lists to loop through by @for or foreachtikz: help with this foreach loopTikz: cycling through a foreach functionHelp reproducing a tikzpicture image with foreachldots within Tikz foreach listExtract a sublist from a foreach list













1















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|improve this question









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.















  • 1





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

    – Sebastiano
    3 hours ago















1















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|improve this question









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.















  • 1





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

    – Sebastiano
    3 hours ago













1












1








1








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|improve this question









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|improve this question









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|improve this question









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|improve this question




share|improve this question








edited 3 hours ago









Kurt

40.7k850164




40.7k850164






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 3 hours ago









Bilal YilmazBilal Yilmaz

82




82




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.







  • 1





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

    – Sebastiano
    3 hours ago












  • 1





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

    – Sebastiano
    3 hours ago







1




1





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

– Sebastiano
3 hours ago





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

– Sebastiano
3 hours ago










1 Answer
1






active

oldest

votes


















3














Like this?



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 #1edefmylistcsname BLABLAxendcsname
foreach y in mylist
y






begindocument


somecommand1,2,3

enddocument


enter image description here






share|improve this answer























  • incredible! I searched for hours. Thank u very much!

    – Bilal Yilmaz
    3 hours ago







  • 1





    Sure! Thank you again :)

    – Bilal Yilmaz
    2 hours 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',
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

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









3














Like this?



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 #1edefmylistcsname BLABLAxendcsname
foreach y in mylist
y






begindocument


somecommand1,2,3

enddocument


enter image description here






share|improve this answer























  • incredible! I searched for hours. Thank u very much!

    – Bilal Yilmaz
    3 hours ago







  • 1





    Sure! Thank you again :)

    – Bilal Yilmaz
    2 hours ago















3














Like this?



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 #1edefmylistcsname BLABLAxendcsname
foreach y in mylist
y






begindocument


somecommand1,2,3

enddocument


enter image description here






share|improve this answer























  • incredible! I searched for hours. Thank u very much!

    – Bilal Yilmaz
    3 hours ago







  • 1





    Sure! Thank you again :)

    – Bilal Yilmaz
    2 hours ago













3












3








3







Like this?



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 #1edefmylistcsname BLABLAxendcsname
foreach y in mylist
y






begindocument


somecommand1,2,3

enddocument


enter image description here






share|improve this answer













Like this?



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 #1edefmylistcsname BLABLAxendcsname
foreach y in mylist
y






begindocument


somecommand1,2,3

enddocument


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered 3 hours ago









marmotmarmot

114k5145276




114k5145276












  • incredible! I searched for hours. Thank u very much!

    – Bilal Yilmaz
    3 hours ago







  • 1





    Sure! Thank you again :)

    – Bilal Yilmaz
    2 hours ago

















  • incredible! I searched for hours. Thank u very much!

    – Bilal Yilmaz
    3 hours ago







  • 1





    Sure! Thank you again :)

    – Bilal Yilmaz
    2 hours ago
















incredible! I searched for hours. Thank u very much!

– Bilal Yilmaz
3 hours ago






incredible! I searched for hours. Thank u very much!

– Bilal Yilmaz
3 hours ago





1




1





Sure! Thank you again :)

– Bilal Yilmaz
2 hours ago





Sure! Thank you again :)

– Bilal Yilmaz
2 hours ago










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

How should I use the fbox command correctly to avoid producing a Bad Box message?How to put a long piece of text in a box?How to specify height and width of fboxIs there an arrayrulecolor-like command to change the rule color of fbox?What is the command to highlight bad boxes in pdf?Why does fbox sometimes place the box *over* the graphic image?how to put the text in the boxHow to create command for a box where text inside the box can automatically adjust?how can I make an fbox like command with certain color, shape and width of border?how to use fbox in align modeFbox increase the spacing between the box and it content (inner margin)how to change the box height of an equationWhat is the use of the hbox in a newcommand command?

152 Atala Notae | Nexus externi | Tabula navigationis"Discovery Circumstances: Numbered Minor Planets"2000152Small-Body Database

Doxepinum Nexus interni Notae | Tabula navigationis3158DB01142WHOa682390"Structural Analysis of the Histamine H1 Receptor""Transdermal and Topical Drug Administration in the Treatment of Pain""Antidepressants as antipruritic agents: A review"