Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
2  
Not that I know of, but you could take an SVG rendering (say, from here: bastisoft.de/misc/flags) and convert it to TikZ. –  Loop Space May 18 '11 at 12:06
    
@Andrew Stacey: Great idea and link, thanks! On a sidenote, sadly Brazil is not in that flag list. =P –  Paulo Cereda May 18 '11 at 12:25
    
@Paulo: In that case, if anyone wants to do a "proof of concept" here then they should do the Brazilian flag! (I got as far as "Denmark" before I stopped looking.) –  Loop Space May 18 '11 at 12:39
5  
@Andrew: Wikimedia has Denmark and Brazil: commons.wikimedia.org/wiki/Category:SVG_sovereign_state_flags –  Jake May 18 '11 at 12:45
    
@Jake: I bow to your superior searching skills. I got the following page from Wikipedia when I searched: en.wikipedia.org/wiki/Category:SVG_flags –  Loop Space May 18 '11 at 12:47

2 Answers 2

up vote 19 down vote accepted

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
\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

share|improve this answer
5  
That is weird –  Seamus May 18 '11 at 16:26
    
Note: This won’t work with MiKTeX – for two reasons: especially for this package the flag files are not included in minitoc’s documentation directory, and generally the whole documentation subtree is unfortunately not included into the filename database. One could, of course, install all missing files in a local texmf tree and then give the absolute path or use \graphicspath – or put the needed files into the document directory. –  Speravir Nov 6 '12 at 3:20
    
5 interesting flags: Poland, Indonesia, Monaco, Austria, and Peru. –  Please don't touch Nov 6 '12 at 4:21
    
@Speravir: I see. Thanks. This comment will be deleted shortly. –  Please don't touch Nov 6 '12 at 4:51

bclogo also includes some of them in format .mps.

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.