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.

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
2  
Related: Drawing a flag with TikZ –  Werner Nov 5 '12 at 23:11
1  
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
    
add comment

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.

2 Answers

up vote 4 down vote accepted

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 Does there exist somewhere a collection of Country Flags in Tikz for the original question.

kenya flag

share|improve this answer
add comment

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}
share|improve this answer
add comment

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