| 
                         Kann man eigentlich die newcommands  So geht es nicht: Öffne in Overleaf 
                            \documentclass[margin=5mm]{standalone} \usepackage{pgffor} \begin{document} \foreach \a/\b in{I/aaa,II/bbb,III/ccc}{ \newcommand{\test\a}{\b} } % \testI, \testII, \testIII \end{document}  | 
                
| 
                                     Alles, was sich innerhalb von  Ferner kann nicht einfach  Öffne in Overleaf 
\documentclass{article} \begin{document} \def\b{aaa} \newcommand*{\testI}{\b} \def\b{bb} \newcommand*{\testII}{\b} \testI, \testII \end{document} TeX ist eine Makrosprache und  Möglich wären also mindestens Öffne in Overleaf 
                                        \documentclass{article} \usepackage{pgffor} \usepackage{etoolbox} \begin{document} \foreach \a/\b in{I/aaa,II/bbb,III/ccc}{ \global\expandafter\let\csname test\a\endcsname\b } \testI, \testII, \testIII % \cslet von etoolbox \foreach \a/\b in{I/aaa,II/bbb,III/ccc}{ \global\cslet{tost\a}\b } \tostI, \tostII, \tostIII % \csxdef von etoolbox \foreach \a/\b in{I/aaa,II/bbb,III/ccc}{ \csxdef{tust\a}{\expandonce{\b}} } \tustI, \tustII, \tustIII % \csgdef von etoolbox \foreach \a/\b in{I/aaa,II/bbb,III/ccc}{ \expandafter\csgdef\expandafter{tast\a\expandafter}\expandafter{\b} } \tastI, \tastII, \tastIII % \csxdef von etoolbox \foreach \a/\b in{I/aaa,II/bbb,III/ccc}{ \csxdef{tist\a}{\b} } \tistI, \tistII, \tistIII \end{document} Ah super! ..... 
                
                
                
                
                
                (07 Okt '18, 19:01)
                cis
                
             
         | 
                            
			
Erinnere ich mich richtig? Hast Du so eine Frage nicht schon neulich gestellt? Mit
\csnamebekommst Du das hin. Du kannst einfach in https://texwelt.de/wissen/antwort_link/23119/ nachschaun wie das geht.Ja, ich dachte auch erst, mit csname muss es gehen. Aber hier erzeuge ich die Kommandos doch überhaupt erst mit der foreach-Schleife. Hab es mit csname nicht hinbekommen.