Saturday, 1 June 2013

Recompile main LaTeX document with latexmk when an associated m4 circuit macro file changed?

Recompile main LaTeX document with latexmk when an associated m4 circuit macro file changed?

I've a main LaTeX document with an associated \input{file} in it. This file is generated by the combination of the m4 macro processor and dpic (m4 file.m4 | dpic > file.tex) in order to take the .m4 file and output the file.tex that I need. Now if I change the .m4 file I have to redo all the “intermediate” compilation. Is there an automated way to do this compilation if I run latexmk?

No comments:

Post a Comment