Drawing world flags
For use in LaTeX documents and particularly in TikZ drawings, Wilhelm Haager created the worldflags
package, which contains the national flags of all independent nations. Where possible, he used TikZ to draw them with geometric constructions; otherwise, he converted Scalable Vector Graphics (SVG) files via Inkscape to TikZ.
The main command is as follows:
\worldflag[options]{country code}
Here, country code
is the common two-letter code for the country, such as US
for the United States or NZ
for New Zealand. The manual provides the complete list.
These are some of the supported options:
width
andlength
stand for the dimensions of the flag. Withlength
of zero, the default aspect ratio is used for calculating the final lengthframewidth
is the line width of the frameframecolor
sets the frame coloremblem
ornoemblem
enables or disables the drawing of an emblem on the flag
So, for example, we can write the following code:
...