TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

marked as duplicate by Alan Munn, Kurt, Harish Kumar, Werner, lockstep Nov 6 '12 at 6:34

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Related: Drawing a flag with TikZ – Werner Nov 5 '12 at 23:11
The easiest way would be to \includegraphics an already existing graphic that is legal to use. What features are you looking for that you would get by drawing it yourself/again? – Qrrbrbirlbel Nov 5 '12 at 23:24
While, as it is, this question seems a bit too do it for me to me, I could see it resulting in a package (or just code) that can draw standard three-stripe (horizontal/vertical) flags with any combination of colors; and potentially a variant with a waving flag, like in the question @Werner pointed to. (And someone might add an animated pstricks version :)) – doncherry Nov 5 '12 at 23:36
So, @Nyang': Welcome to TeX.sx! Please show some attempt you've made in achieving this and specify what you're struggling with. The point of this Q&A site is to solve specific problems, not to have other people do your work. – doncherry Nov 5 '12 at 23:54
up vote 5 down vote accepted

With no downloading:


See Does there exist somewhere a collection of Country Flags in Tikz for the original question.

kenya flag

share|improve this answer

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).


share|improve this answer

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