I've written this document (say it's an
article) with a bunch of float - figures and tables. Some of them are just
\includegraphics, so the figure essentially exists outside as well inside the document, and can be easily made into a PDF if it isn't one already. But some of them depend heavily on code elsewhere in the document - earlier and later.
I'd like to be able see each of the figures and tables as a separate PDF. This is obviously possible theoretically (after all, typesetting into the main document is not so different from typesetting into a separate one) - but can I achieve this practically without writing lots of deep voodoo code?
Note: I don't mind whether this is done ex-post-facto on the final PDF, or as part of the production of that PDF (i.e. the regular execution of pdflatex or xelatex), or as a separate process on the sources.