8

\worldflag makes a tikzpicture, so I think you're effectively nesting tikzpictures here, which is generally a bad idea. It often leads to problems with options from the outer tikzpicture being inherited by the inner one. In this particular case it looks like a rounded corners options is the culprit, if you do for example \tikzset{/tikz/rounded corners=0}\...


5

I think that the safer option, when trying to nest TikZ things, is to use boxes. In the example below, I wrote a macro that puts the flag in a box called \flagXX. That one is safe to use in nodes. \documentclass[border=10pt]{standalone} \usepackage{tikz,smartdiagram,worldflags} \NewDocumentCommand{\boxflag}{m}{% \expandafter\newsavebox\csname flag#1\...


Only top voted, non community-wiki answers of a minimum length are eligible