Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

up vote 17 down vote accepted

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
share|improve this answer
    
Actually that's a full answer. I would have posted it myself. I took the liberty to format it as it usual on this site, see e.g. tex.stackexchange.com/editing-help. (BTW: Please keep in mind that many users here are from Europe and therefore life in a different timezone.) –  Martin Scharrer Jul 5 '11 at 7:14
1  
BTW: If you use -pvc than the file is continuously recompiled as soon it is changed. This is great but I have some issues under Ubuntu Linux to automatically reload Adobe Reader after each recompilation. –  Martin Scharrer Jul 5 '11 at 7:22
    
latemk works with Windows and MiKTeX as well. Put one line into a config-file "$pdflatex = 'pdflatex --interaction nonstopmode --synctex=-1 %O %S'" and you get e.g. synctex working. To open a command window at the 'right' place, install this little helper:"windows.microsoft.com/en-US/windows/downloads/…;, and with a rightclick on any folder you may open cmd.exe at this place –  Keks Dose Jul 5 '11 at 10:12

There's a nice discussion of rubber on the TeX.SE blog.

Quoting the post, which in turn is quoting the man page for rubber:

rubber “is a wrapper for LaTeX and companion programs. Its purpose is, given a LaTeX source to process, to compile it enough times to resolve all references, possibly running satellite programs such as BibTeX, makeindex, Metapost, etc. to produce appropriate data files.”

share|improve this answer
    
AFAICS, rubber is not available for Windoes; perhaps you could confirm or deny this? –  Brent.Longborough Dec 7 '11 at 12:07
    
@Brent.Longborough I run Ubuntu, so I'm not sure. –  Jeromy Anglim Dec 7 '11 at 22:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.