[Tex/LaTex] collection of national flags in TikZ

tikz-pgf

I have tried to search, but I have not been able to found any repository with the flags of the most common countries defined with TikZ. It must be very possible as most flags are really vectors.

Best Answer

Update

Sadly, this solution no longer works (as of TeX Live 2015). In the change history of minitoc:

2015/07/13

  • Jean-Pierre F. Drucbert passed away in 2009. So this package is now looking for a maintainer.
  • Reduce size of documentation, by eliminating flags and other images, from 25+mb to less than 2mb.

You can retrieve the original version of the documentation from the TeXLive historic archive here.

Original answer

The astonishingly bizarre documentation for the minitoc package has done most of the work for you. (Although with .png images.) So for any flag you can think of the following will work: (You can also find maps as well.)

\documentclass{article}
\usepackage{graphicx}
% change the year to match your current distribution up to 2014
\graphicspath{{/usr/local/texlive/2010/texmf-dist/doc/latex/minitoc/}}
\begin{document}
\includegraphics[width=.3\textwidth]{brazil-f}
\includegraphics[width=.3\textwidth]{vanuatu-f}
\includegraphics[width=.3\textwidth]{belarus-f}
\end{document}

Just for entertainment, here are the flags of Brazil, Vanuatu, and Belarus.

Brazil Vanuatu Belarus flags