Some figures in my LaTeX document I am generating with Python. Normally I manually check how wide my picture can be with
\showthe\columnwidth and adjust the image width accordingly. (This whole is important for not resizing text labels)
Is there a way that I can write this to a file, so I can do this magically? The
\columnwidth is always the same through my document, so it only has to be written once. It would be especially nice if the file is not rewritten when the value hasn't changed (good for my Makefile).