| Ich möchte eine Liste erstellen, mit der Ausgabe 
 dafür bekomme ich aber  Das Problem scheint explizit das  Ohne  
 Was läuft hier schief? Öffne in Overleaf \documentclass[border=5mm, varwidth]{standalone} \usepackage{tikz, amsmath} \begin{document} Tut: $\underbrace{1}_{a}$ Tut nicht mit underbrace: \newcommand{\ylist}{}% Name reservieren \newcommand\ausgabe{% \ifnum\y=0 {null} \else $\pgfmathresult$ % Tut %\else $\underbrace{\pgfmathresult}_{a}$ % Tut nicht ! ! ! \fi } \let\ylist=\empty% Liste erstellen \foreach \y in {0,1,2,3} { \pgfmathparse{\y+0.5}% \ifx\empty\ylist{} \xdef\ylist{\ausgabe}% \else \xdef\ylist{\ylist,\ausgabe}% \fi } Anzeigen: \ylist \end{document} PS: Ich habe auch  hier gefragt, da ich erst dachte, es handeltz sich um ein Mathenotationsproblem. Es scheint aber eher ein LaTeX-Problem zu sein. | 
| 
 Öffne in Overleaf \documentclass[border=5mm, varwidth]{standalone} \usepackage{tikz, amsmath} \begin{document} Tut: $\underbrace{1}_{a}$ Tut nicht mit underbrace: \newcommand{\ylist}{}% Name reservieren \newcommand\ausgabe{% \ifnum\y=0 {null} %\else $\pgfmathresult$ % Tut \else $\protect\underbrace{\pgfmathresult}_{a}$ % Tut nicht ! ! ! \fi } \let\ylist=\empty% Liste erstellen \makeatletter \foreach \y in {0,1,2,3} { \pgfmathparse{\y+0.5}% \ifx\empty\ylist{} \protected@xdef\ylist{\ausgabe}% \else \protected@xdef\ylist{\ylist,\ausgabe}% \fi } \makeatother Anzeigen: \ylist \end{document} Klasse! Damit komme ich weiter... 
                
                
                
                
                
                (13 Feb '18, 19:00)
                cis
                
             | 
 
			

