Prev Up Top Next Contents

4.A PDF atlases

This appendix describes how therion creates the PDF files for atlases. therion defines several TeX macros, and at the end it invokes the TeX command "\dopage " to generate the output page.
The variable used writing the page are
Other global variables are:
Finally therion uses the macros
Other variables managed by therion and that can be used are those settable through layout options:
At ths point we can analize the definition of \dopage contained in the therion source file "tex/therion.tex". The structure, commented on the side, is shown in the figure below in which the vboxes are blue and the hboxes are red.
  \def\dopage{%
    \vbox{%                           +-- global vbox 
      \centerline{\framed{\mapbox}}         +-- center mapbox
      \bigskip                              +-- a space
      \line{%                               +-- "navigation" line
        \vbox to \ht\navbox{                      +-- vbox high as the "navbox"
          \hbox{\size[20]\the\pagelabel                 +-- label
            \ifpagenumbering\space(\the\pagenum)\fi     +-- number
            \space\size[16]\the\pagename}               +-- name
          \ifpagenumbering
            \medskip                                    +-- space
            \hbox{\qquad\qquad                          +-- pointers hbox
              \vtop{%
                \hbox to 0pt{\hss\showpointer\pointerN\hss}
                \hbox to 0pt{\llap{\showpointer\pointerW\hskip0.7em}%
                  \raise1pt\hbox to 0pt{\hss$\updownarrow$\hss}%
                  \raise1pt\hbox to 0pt{\hss$\leftrightarrow$\hss}%
                  \rlap{\hskip0.7em\showpointer\pointerE}}
                  \hbox to 0pt{\hss\showpointer\pointerS\hss}
              }\qquad\qquad
              \vtop{
                \def\arr{$\uparrow$}
                \showpointerlist\pointerU
                \def\arr{$\downarrow$}
                \showpointerlist\pointerD
              }
            }
          \fi
          \vss                                         +-- vertical space
          \ifscalebar\scalebar\fi                      +-- scale-bar
        }\hss                                      +-- horizontal space
        \box\navbox                                +-- navbox
      }
    }
  }


PDF atlas
Fig. 70. PDF atlas

therion users - Fri Feb 12 06:33:06 2010
Prev Up Top Next Contents

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License.