I'm trying to build a template for a bubble diagram, since I don't know in advance how many bubbles need to be added I'm trying to do it using foreach.

I suspect \foreach does not expand the way I think it would because instead of multiple bubbles I get 1 bubble with all the text.

    \foreach \x in {#1}{\textbf{\x}, \newline}

% Command for printing bubble
        \smartdiagram[bubble diagram]{

in my .tex I use to


1 Answer 1


Turns out the expansion with foreach was unnecessary.

% Command for printing bubble
        \smartdiagram[bubble diagram]{#1}

Works just fine

% Skill bubbles 
\skillbubbles{{Skill1}, {Kill12}, {madSkill}, {mad \\ science}}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .