Show
Ignore:
Timestamp:
07/05/09 21:01:07 (8 months ago)
Author:
dstn
Message:

touch up bit-packing fig

Files:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/documents/theses/dstn/figs-kdtree/bitpack-fig.tex

    r11962 r12348  
    1 \input{tikzfig} 
    2 \input{kdfigs} 
     1\input{../tikzfig} 
     2\input{kdfigs-tikz} 
    33\setpagesize{\bitpackfigwidth}{\bitpackfigheight} 
     4\usepackage{calc} 
    45\begin{document}% 
    56\thispagestyle{empty}% 
    67\begin{center}% 
    7 \begin{tikzpicture}[scale=0.6, >=latex] 
    8   \tikzstyle{box} = [draw, thick, minimum size=0.6cm, inner sep=0, anchor=north west] 
     8\newcommand{\myscale}{0.8} 
     9\newlength{\mylen} 
     10\setlength{\mylen}{\myscale cm} 
     11 
     12\newlength{\ublen} 
     13\setlength{\ublen}{\mylen * \real{6.2}} 
     14 
     15\begin{tikzpicture}[scale=\myscale, >=latex] 
     16  \tikzstyle{box} = [draw, thick, minimum size=\mylen, inner sep=0, anchor=north west] 
    917  \tikzstyle{lab} = [anchor=east] 
    1018 
     
    1523 
    1624  \draw (0,0) node (N15) [box] {15}; 
    17   \draw (1,0) node     [box, minimum width=1.2cm] {\ldots}; 
     25  \draw (1,0) node     [box, minimum width=2\mylen] {\ldots}; 
    1826  \draw (3,0) node (N2)  [box] {2}; 
    1927  \draw (4.2,0) node (N1)  [box] {1}; 
    2028  \draw (5.2,0) node (N0)  [box] {0}; 
    2129 
    22   \draw (0,0) node (OB15) [brace] {$\overbrace{\rule{2.4cm}{0pt}}$}; 
    23   \draw (4.2,0) node (OB10) [brace] {$\overbrace{\rule{1.2cm}{0pt}}$}; 
     30  \draw (0,0) node (OB15) [brace] {$\overbrace{\rule{4\mylen}{0pt}}$}; 
     31  \draw (4.2,0) node (OB10) [brace] {$\overbrace{\rule{2\mylen}{0pt}}$}; 
    2432 
    2533  \node [above of=OB15, node distance=0.7em, anchor=mid] {split position}; 
    2634  \node [above of=OB10, node distance=0.7em, anchor=mid] {dimension}; 
    2735 
    28   \draw (0,-1.1) node (UB) [brace, anchor=north west] {$\underbrace{\rule{3.72cm}{0pt}}$}; 
     36  \draw (0,-1.1) node (UB) [brace, anchor=north west] {$\underbrace{\rule{\ublen}{0pt}}$}; 
    2937  \node [below of=UB, node distance=0.7em, anchor=mid] {{\tt uint16}}; 
    3038