previous up next print clean
Next: PHILOSOPHY AND PITFALLS Up: Claerbout: Cake in interactive Previous: ESSENTIAL CONTENTS OF SEP.idoc.rules

INTERACTION

Martin Karrenbach's figure macro activeplot converts a button push to an invocation of cake NAME.idoc. This command is captured by the following lines from SEP.idoc.rules
        %.idoc & :  %.action       if     cando %.action

        %.idoc & :  %.defaction    if not cando %.action
If you want your pushbutton to do something unusual (whistle Dixie?) then your cakefile should have a target NAME.action that will whistle Dixie. Normally, you will prefer the default actions defined below. (I'll assume you have no ed1D or Zplane figures .) The default is to show a movie with Animator if there is a movie or if one can be made. Otherwise, invoke tube on a vplot file.

        %.defaction& : FIGDIR/%.A      if     cando FIGDIR/%.A
                     < FIGDIR/%.A      Animator &

        %.defaction& : FIGDIR/%.A.save if not cando FIGDIR/%.A      \ 
                                          and exist FIGDIR/%.A.save
                     < FIGDIR/%.A.save Animator
        
        %.defaction&: %.tube if  not exist FIGDIR/%.A.save        \
                             and not cando FIGDIR/%.A

This means if your cake files build a file called FIGDIR/%.A, then your readers get movies when they press your caption pushbuttons. You need write no explicit rules to show movies.

Finally, if the directory contains a file called paper.tex you should be able to type cake read to bring up xtex with included figures or cake print to print it. This is because of the rules below.

        dvi&      :   PAPER.dvi

        PAPER.dvi :   PAPER.tex
                texpr TEXPROPTS -v -2 -d PAPER.tex

        view& read&:  figures         PAPER.dvi
                xtex                  PAPER.dvi

That's all! You have seen all the common part of my 100 cakefiles. If I add any more, it can only be philosophy, generalities, and maybe a few recalled pitfalls.


previous up next print clean
Next: PHILOSOPHY AND PITFALLS Up: Claerbout: Cake in interactive Previous: ESSENTIAL CONTENTS OF SEP.idoc.rules
Stanford Exploration Project
11/18/1997