From time to time I'd like to temporarily disable the creation of some specific auxiliary file. Actual examples have been:
At a late state of editing a document fixing something in the
.toc-file directly was the easiest way to obtain a certain result. (I know that this is ugly and potentially dangerous, but ...)
reledparobtaining balanced layouts can require a lot of compilations, each of which can be pretty time consuming. When the result has finally settled (and has been written to auxiliary files) I don't want to break it when I change details in the texts potentially making typos that result in compilation-errors.
\nofiles will help in the first case but will block the creation of all auxiliary files.
reledpar's custom files are not affected by
\nofiles at all.
Locking the files in question by the operating system works for both cases, but has the disadvantage of throwing "I can't write on file..."-errors that require me to react.
So I am looking for a way to customise
\nofiles to only block specific files.
Or could an alternative be to instruct TeX just to give up on writing files that are not writable?