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'm a novice in the world of LaTeX, and I'm struggling to find a simple tutorial on how to to setup texliveonfly as part of TeX Live 2011 in any LaTeX editor.

Is there anyone out there who's got texliveonfly setup on their computer, who could provide a simple step-by-step guide?

share|improve this question
    
And yeah, I'm using Ubuntu 11.10. –  thunki Apr 2 '12 at 14:34
add comment

2 Answers 2

up vote 5 down vote accepted

I don't use it normally, but I just tested the following successfully.

texliveonfly must be installed, which it was here. If it isn't installed, you can install it by opening a terminal and typing

sudo tlmgr install texliveonfly

TeXworks

To use this in TeXworks go to Edit --> Preferences, and look under the Typesetting tab. Click the plus-button next to the list of typesetting tools to create a new one. Give it a reasonable name, type texliveonfly in the Program box and add a new argument $fullname by (again) clicking the plus-button. See screenshot below.

To compile your document with this, select in the dropdown-menu and click the green arrow (or Ctrl + T). You can also set this as a default for the document by typing

% !TeX program = TeXliveonthefly

where TeXliveonthefly was the name you gave that typesetting tool.

As mentioned on the CTAN-page, lualatex is used as the default compiler. If you want to use e.g. pdflatex add another argument before $fullname saying --engine=pdflatex.

enter image description here

share|improve this answer
    
Fantastic! Thank you very much. :) –  thunki Apr 2 '12 at 15:08
add comment

For TeXstudio, the answer is go to Options/Configure TeXstudio/Commands/pdflatex "/bin/texliveonfly" %.tex

share|improve this answer
add comment

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.