I'm pretty new to latex, and what I am trying to create a simple treemap, by simple I mean really simple.
I have managed to produce a simple box at a given position and width, but I'm not too sure how to create a border around the textblock.
\begin{textblock}{200}(400,200)
\centering
\textblockcolour{red}
\vspace{20mm}
{ \bfseries \Large Hello World }
\vspace{20mm}
\end{textblock}
My Example usage is below:
\documentclass{article}
\usepackage[a4paper]{geometry}
\usepackage[absolute,overlay]{textpos}
\setlength{\TPHorizModule}{1mm}
\setlength{\TPVertModule}{1mm}
\setlength{\parindent}{0mm}
\usepackage{color}
\begin{document}
\begin{textblock}{200}(400,200)
\centering
\textblockcolour{red}
\vspace{20mm}
{ \bfseries \Large Hello World }
\vspace{20mm}
\end{textblock}
\end{document}
Any help would be appreciated.
Best Answer
You can use the
showboxes
package option (in the example below I changed the settings for thetextblock
since the original settings place the block outside the page):However, to draw your treemap I would suggest you to use
PGF/TikZ
instead.Here's a simple possibility, using TikZ, to draw a treemap: