Is python output from not pdf output also cached? #28
-
If I use a custum preamble and create a pgf or tex file, is that file also cached or is it generate every time? And is the process of that file cached? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I'm not sure to understand the question, do you mean with python or latex? Do you mean if you add to the latex preset More precisely, in that case, the library will, in memory, generate the content of the .tex file and compute its hash (no way to avoid it but it is fairly quick), also based on the dependencies and the compilation command. The hash determines the name of the file, so then I check if the source file has been created. If not, we create that file. Then we check if a If you want to avoid recompiling all latex images if you just change a single macro, look at the commands to forward automatically a macro, it is way more chirurgical when recompiling. |
Beta Was this translation helpful? Give feedback.
-
I was wondering, because for gnuplot there is an extra option to cache the from gnuplot generated tikz file. I had to do this
And I wondered if the with python generated file is cached as well. If I undetstad you correctly it is checked if a pdf file exists. But what about other files. If the python output is a pfg or tex file. Will that be chacked too? Or is the difference here, that in gnuplot -> tikz the tikz file is not saved as a file, whereas in python it is actually saved as a file? |
Beta Was this translation helpful? Give feedback.
Actually, I just realized that I told you something wrong: the
pgf
backend usespgfpicture
instead oftikzpicture
, and I don't cachepgfpicture
automatically (also because a normal user rarely usespgfpicture
directly. But it is fairly easy to cache this as well, just type:(note that the
\makeatletter
is needed aspgfpicture
relies on this being set to true)Another solution is to use instead a different
\input
(this avoids to cache all pgfpictures at the same time, like many we don't want to cache pgfpictures from other packages). For that, change the custom include command to: