Recently I've discovered latexmk if I understand correct then it can replace several commands needed to compile latex just with one command. Is it possible to show which commands were executed when I issue e.g. latexmk -pdf thesis.tex? Or even better is it possible to run latexmk in some 'no action mode' to just print what commands should be issued to compile latex manually? I do not guess that latest is possible because during compilation are generated '.aux', '.bbl' files etc. which are read again and again as described here and here. So I guess some compilation must took place before we know if compilation is needed in next step or nor, but I will rather ask. Thanks
PS: I'm wondering of exact sequence of commands that were executed e.g.:
pdflatex thesis.tex
pdflatex thesis.tex
pdflatex thesis.tex
or
pdflatex thesis.tex
bibtex thesis.tex
pdflatex thesis.tex
pdflatex thesis.tex
latexmkis actually (a symbolic link to) a long perl script (being long due to documentation and comments) but it does basically nothing more than to call the regular commands such aslatex,pdflatexetc. – May 27 '16 at 09:20latexmksomehow determine which commands to call to optimize compilation process. Or am I wrong and same set of commands are called every time I runlatexmkregardless of if BibTeX, glossaries etc. is used or nor? – Wakan Tanka May 27 '16 at 10:09latexmkran on any particular call... – Seamus May 27 '16 at 10:10latexmk -pdf thesis.tex 2>&1 | grep '^Running'– Wakan Tanka May 27 '16 at 10:17latexmk -time -pdf thesis.tex. This is intended to get timing information, but as a side effect it summarises all the steps at the end of the output. – samcarter_is_at_topanswers.xyz May 27 '16 at 10:23