Here's an image of what I am trying to draw:
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityHere's an image of what I am trying to draw:
This could probably be done more elegantly.
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning,decorations.pathreplacing,calc}
\begin{document}
\begin{tikzpicture}[%
box/.style={draw,rectangle},
decoration={brace,amplitude=4}]
\node (posint) [box] {positive integer};
\node (negint) [box,right=of posint] {negative integer};
\draw [decorate,thick]
($(negint.south east) + (0,-.3)$) -- node (mida) {} ($(posint.south west) + (0,-.3)$);
\node (int) [box,below=.4cm of mida] {integer};
\node (frac) [box,right=of int] {fractional number};
\draw [decorate,thick]
($(frac.south east) + (0,-.3)$) -- node (midb) {} ($(int.south west) + (0,-.3)$);
\node (rational) [box,below=.4cm of midb] {rational number};
\draw [->] (posint) -- (negint);
\draw [->] (int) -- (frac);
\end{tikzpicture}
\end{document}
This doesn't use pgf, sorry.
\documentclass[a4paper]{article}
\usepackage{amsmath}
\newcommand{\myline}[2]{\underbrace{\,#1\,}_{#2}}
\newcommand{\dblbox}[2]{\fbox{#1}\makebox[3em]{\rightarrowfill}\fbox{#2}}
\newcommand{\mytopstrut}{\vbox to 3ex{}}
\newcommand{\mybotstrut}{\vtop to 2ex{}}
\begin{document}
\[
\myline{\dblbox{positive integer}{negative integer}\mybotstrut}{
\hspace{11.5em}\myline{\dblbox{integer}{fractional number}\mybotstrut\mytopstrut}{
\fbox{rational number}\mytopstrut
}
}
\]
\end{document}
Egreg did what I had in mind to do. I need a mobile TeX :-)
Oh well, this one's in eplain, so hopefully there is enough difference:
\input eplain
\def\mybox#1{\vcenter{\boxit{\hbox{#1}}}}
\def\To{\hbox to 3em{\rightarrowfill}}
$$ \displaylines{
\underbrace{\mybox{positive integer}\To\mybox{negative integer}}\cr
\hfil\underbrace{\mybox{integer}\To\mybox{fractional number}}\cr
\hfil\mybox{rational number}}
$$
\bye