Good hello,
I'm quite new to LaTeX but want to learn more. I realise this will be pushover to some of you but not for me as a beginner.
I want to create some graphical backgrounds for some documents based on national flags for a project. My first one is based on England.
Can anyone here tell me (in terms suitable for a beginner) how to create this graphic in LaTeX please? I want to use absolute positioning from the top-left corner of the page rather than relative positioning in the middle of a page somewhere. I'd ideally like to have the lines stretch to the very edges of the page but to fade away just before they get there. I would of course want to have the text display on the page as normal and so not be affected by the document here. I'm sure I'll be able to create others once I've seen how the first one is done.
Thanks in advance,
A.
Graphics, Figures & Tables ⇒ Graphical Creation of national Flags
Graphical Creation of national Flags
Last edited by localghost on Tue Jun 26, 2012 9:21 am, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Graphical Creation of national Flags
For the creation process itself there are several packages.
And for placing graphics in the page background there are also some helpful packages.
Make the first steps on your own and ask further targeted questions in case of upcoming problems.
Thorsten
- pgf/tikZ (Example Gallery)
- PSTricks (Example Gallery)
- MetaPost (Example Gallery)
- Asymptote (Example Gallery)
And for placing graphics in the page background there are also some helpful packages.
Make the first steps on your own and ask further targeted questions in case of upcoming problems.
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Graphical Creation of national Flags
Hi Adrian,
I would use
TikZ for this, and the
Here is a quick example for demonstration - possibly compile several times to let TikZ make the calculation.
Stefan
I would use

current page
node for positioning.Here is a quick example for demonstration - possibly compile several times to let TikZ make the calculation.
Code: Select all
Code, edit and compile here:
\documentclass{article}\usepackage{tikz}\begin{document}\begin{tikzpicture}[remember picture,overlay]\draw[fill,red] ([yshift=-3cm]current page.north west)rectangle ([yshift=-6cm]current page.north east);\draw[fill,red] ([xshift=6cm]current page.north west)rectangle ([xshift=9cm]current page.south west);\end{tikzpicture}Now some text.\end{document}
LaTeX.org admin