I am modifying an existing C program which trawls through a database and creates a Latex document from the guff it finds. The majority of the data needs to be plopped into tables, so it uses the
longtable environment to allow for page-spanning tables.
There are now instances where the data to be added to a cell is sooo large that
latex pushes the cell off the bottom of the page, then recognises it can't fit the table on the page and tries on another page. This goes on and on, finishing up with
.log files which fill the
swap space on the production server. This is not good, and I am getting a bit of flak to be honest!
Obviously, the documents are created "on-the-fly" so, without a lot of fiddly stuff, it's not a simple thing of "Oh, here's where the text runs off the page. I need to add a pagebreak there, then".
I understand there might be a way that the fontsize for data in a cell is scaled according to the content therein...? Is this part of longtable or is it something else lower-down in the bowels of the Latex machinery?