I've been experimenting with using the slideshow structure. When I added a latex-image element so that I could have a tikz generated image on a slide, the routine broke.
First, I discovered that the #docinfo element for the default slideshow did not have a latex-image-preamble defined. So I added that to include the appropriate tikz/pgfplots includes.
However, then it still reports back as a failure even though it appears the single-image latex file appears to be processed correctly.
error: * PTX:ERROR: Table of Contents level (for LateX conversion) not determined
I think this is because the table of contents structure in the variable toc-level-override is not defined in the case of slideshow (pretext-latex-common.xsl)
Trying to build a second time immediately results in no errors because presumably the image file is present now.
The last issue then is that the image never seems to scale to fill the <image-box> #div that contains the resulting image. If I add the attribute width="100%" to the generated html, then the image seems to match what I would have expected.
Brian