(sorry for raising it as an issue, this is more of a question)
I have two nearly-identical documents with slightly different settings (one with 11pt font, and the other with 10pt), say book-reader.tex and book-print.tex. They import a code snippet with minted using \inputminted.
I want to reuse the caches produced from the first book in the subsequent books.
I've configured the cachedir to output to the same directory, but it seems that this produces two .pygtex files:
$ ls
FCA5498F9EAF9E235804E47AA988230D31F590DAF3C4999269D16864F0C9105B.pygtex
FCA5498F9EAF9E235804E47AA988230D796938E665113EC976EFD1EDB1C66E95.pygtex
...
Their contents are identical, but the file names are different (the first half of the hash is the same, but second differs)
After reading the source, I understand that the jobname is taken to an account when computing the filename hash. So my question is: is there a way to configure the filename, so it hashes just the content, regardless of the jobname?
N.B. I tried using \finalizecache but it doesn't work for my situation, because some books use a macro that imports snippets in a different language instead.
(sorry for raising it as an issue, this is more of a question)
I have two nearly-identical documents with slightly different settings (one with 11pt font, and the other with 10pt), say
book-reader.texandbook-print.tex. They import a code snippet with minted using\inputminted.I want to reuse the caches produced from the first book in the subsequent books.
I've configured the
cachedirto output to the same directory, but it seems that this produces two .pygtex files:Their contents are identical, but the file names are different (the first half of the hash is the same, but second differs)
After reading the source, I understand that the jobname is taken to an account when computing the filename hash. So my question is: is there a way to configure the filename, so it hashes just the content, regardless of the jobname?
N.B. I tried using
\finalizecachebut it doesn't work for my situation, because some books use a macro that imports snippets in a different language instead.