On 1 May 2016 at 12:14, Gavin Smith <[email protected]> wrote: > I haven't researched why --tidy makes a difference. I plan to stop > this error by making @value non-expandable when writing to auxiliary > files. This would have the effect that the value used would be the > value at the time when the auxiliary file was read in, instead of when > it was written to, that's when @value worked at all. I think this > change would be okay, because this is already the case for @macro and > I doubt that many documents would rely on changing a @value in the > middle of the document.
I have found another problem: the --tidy and --command options appear to be incompatible. In the "insert_commands" function, the "in_input" variable is changed to be the file that is the result of inserting the extra commands, but in the "run_tex" function, this is discarded if --tidy was given.

