TeX output routines

We'd like to use the programs we've developed to generate some [Graphics:../Images/index_gr_263.gif]-able output.

The first application we have in mind is a function that would write out a [Graphics:../Images/index_gr_264.gif] formatted table of genera.

Maybe we'll do one that prints out exact game values, too.

The input of this function would be an octalcode, heapsize, and 'period hints', which would allow the program to automatically generate a [Graphics:../Images/index_gr_265.gif] table.

The [Graphics:../Images/index_gr_266.gif] table would show genera arranged in a table formatted to the width of the (normal play) period hint.

[Graphics:../Images/index_gr_267.gif]
[Graphics:../Images/index_gr_268.gif]
[Graphics:../Images/index_gr_269.gif]
[Graphics:../Images/index_gr_270.gif]
[Graphics:../Images/index_gr_271.gif]

We need something (which can be run frequently, even every Mathematica session) that writes out the file allgames.tex.

The entries in allgames.tex are just rows of the form

    \input{dot77info}
    \input{dot12info}
    etc
    
The individual files dot77info.tex, etc are the ones that we don't want to regenerate frequently, because they can be time consuming.

So the basic rule could be, whenever we generate a particular 'info' file, regenerate the whole 'allgames' file as a side-effect.  

We also need to have some way to integrate hand-typed-in content so that the automatic stuff doesn't blow it away.  
Maybe we could have a file dot77comments.tex for that.  We would add it to the directory but not automatically generate it.

So here is how we would work:

1) We work in Mathematica on the games in the sections below.  Once we know enough that we want to generate an 'info' file:
    
        a) we call a function TeXGameInfoExport.  It has flag.  
            If the flag is true, the calculation is done and output, AND the game is added to a global list of exported files
            If the flag is false, the calculation is not done, and the global list addition ONLY is done.
            
2) The allgames.tex file is generated ONLY on demand by a second function called TeXGameDirectoryExport.  
So the order of games output into the allgames.tex file is dependent on their ordering in this Mathematica file, which is OK I guess.

We can test whether an info or annotation file already exists using this function:

[Graphics:../Images/index_gr_272.gif]
[Graphics:../Images/index_gr_273.gif]
[Graphics:../Images/index_gr_274.gif]
[Graphics:../Images/index_gr_275.gif]
[Graphics:../Images/index_gr_276.gif]
[Graphics:../Images/index_gr_277.gif]
[Graphics:../Images/index_gr_278.gif]
[Graphics:../Images/index_gr_279.gif]
[Graphics:../Images/index_gr_280.gif]
[Graphics:../Images/index_gr_281.gif]
[Graphics:../Images/index_gr_282.gif]
[Graphics:../Images/index_gr_283.gif]
[Graphics:../Images/index_gr_284.gif]
[Graphics:../Images/index_gr_285.gif]
[Graphics:../Images/index_gr_286.gif]
[Graphics:../Images/index_gr_287.gif]


Converted by Mathematica      August 22, 2003