Section 8.4 Debugging Image Generation¶
A principal use of the
mbx script is to isolate source code from
latex-image-code sections, package them up as proper
*.tex files, run LaTeX to make cropped PDF versions, and then convert these to other formats such as SVG or PNG.
Much of this activity happens in a temporary directory. If you use the
-vv switch described above, then one of the messages early in the output describing the initialization will be the name of this directory. Looking to see what files end up there, and what those files contain, is often useful in determining the step where this toolchain fails, and maybe even why.
Another option is to ask for the actual
*.tex files as the result of a run. This is accomplished with the
-f source option when invoking
mbx. If the right packages or macros are not being employed in these files, this is an easy way to get at the source files for inspection and analysis.