8

Possible Duplicate:
Is there a collection of national flags in TikZ?

I need to draw a Kenyan national flag using TikZ or using TeX in general.

user21778
  • 269

2 Answers2

6

With no downloading:

\documentclass{article}
\usepackage{graphicx}
\graphicspath{{/usr/local/texlive/2012/texmf-dist/doc/latex/minitoc/}}
\begin{document}
\includegraphics[width=.3\textwidth]{kenya-f}
\end{document}

See Is there a collection of national flags in TikZ? for the original question.

kenya flag

Alan Munn
  • 218,180
4

The OP asked originally:

Is there an easy way?

Yes, there is.


I imagine you want a Scalable Vector Graphic (SVG).Wikimedia Commons has a lot of national flags.
Via Wikipedia:Flag of Kenya I could find a graphic of the flag of Kenya in the the Scalable Vector Graphic (SVG) format. Download that file and save it locally (.svg).

As pdf(La)TeX/graphicx cannot include files in the SVG format you need to convert it to PDF. The easiest way to do this is probably an online converter (but any converter will do).
As the flag's aspect ratio is 3:2 put a resolution like 300 × 200 in the text boxes that requires the output's size. Download the resulting file and save is as a .pdf file.

In your TeX document and with the help of the graphicx package you can now use \includegraphics[<options>]{filename}.

You most likely need to re-size the resulting image, this can be done with the key-value options width, height, totalheight, keepaspectratio and/or scale (see the graphicx manual for more information).

MWE

\documentclass{article}
\usepackage{graphicx}
\begin{document}
\noindent
\includegraphics[width=\textwidth]{81578_flag}
\end{document}
Qrrbrbirlbel
  • 119,821