[Tex/LaTex] Replacement for MiKTeX’s texify in TeX Live

automationcompilingmiktextexlive

I used to use the texify command in MiKTeX on Windows.
I would, for example, run a command like:

texify --pdf --run-viewer file.tex

which, as I understand it, would produce a pdf, automatically determine how many times latex needed to be run, and open the resulting pdf in a viewer.

I'm now running Ubuntu and have TeX Live installed.

What would be a good equivalent command when running latex on Ubuntu with TeX Live?

Best Answer

It sounds like you need to get the latexmk package first: I don't know the command to do the equivalent as I haven't used the package before. From skimming the document it might be this:

latexmk -pdf -pv file.tex