![]() TeXstudio has been created for texmaker.PS I tested this on Arch Linux 4.19.4 and on Travis CI (Ubuntu 14.04). It is a python script which works by trying to run your LaTeX file, and if it fails because a package is missing it will try to install that package.īesides on /pkg/texliveonfly you can view the source at /tex-archive/support/texliveonfly or on /forum Note however that you can chain them with texliveonfly -compiler=latexmk filename.tex. You can most probably work around it by first running texliveonfly without options, so texliveonfly main.tex (so it will download the packages) and then running whatever you wanted to, for example latexmk main.tex.Įssentially texliveonfly is a build tool like latexmk (which is a Perl script), it wraps the TeX engine. When giving options to texliveonfly, for example for a different compiler, it sometimes hangs for no apparent reason when installing packages.When running external programs like texcount in your LaTeX file, texliveonfly does not detect that you need the texcount package.Packages involved when using the minted package, which are minted fvextra upquote lineno xstring framed caption (thanks to pablgonz for testing).to get f you need the cyrillic package, and to get the f you need the ly1 package. for the nature style you need the biblatex-nature package Babel languages, for example for european languages install the collection-langeuropean package.There are some cases of missing packages which fail with a non-standard error message, for example babel when it's missing languages, in which case texliveonfly doesn't download them.Īt the moment the following packages are known to have to be installed manually: (please edit if you find more).Other compilers At the moment it uses pdflatex by default, but you can configure it to run with other compiler engines by using the -compiler (or -c) flag, so like texliveonfly -compiler=lualatex filename.tex.Ĭompiler flags You can pass flags for the compiler you use to texliveonfly using the -arguments (or -a) flag, so for example if you previously used latexmk -shell-escape -pdf filename.tex then you now use texliveonfly -compiler=latexmk -arguments='-shell-escape -pdf' filename.tex. Running If you go in your terminal to the directory of your filename.tex file, you can run it with texliveonfly filename.tex. If you have to use sudo tlmgr here, you will have to use sudo texliveonfly later. You can then install it like usually with tlmgr install texliveonfly. Installing It is a Python script so it requires Python to be installed. This also works for packages for which the LaTeX package name and the TeX Live package name don't match (for example the LaTeX rubikrotation package is contained in the rubik TeX Live package), and it also takes package dependencies into account. ![]() If you decide to use the TeX packages from your distro you are forced to follow their update policy, which is different for different distrosĪs mentioned in comments, there is a TeX Live package called texliveonfly which you can use with texliveonfly filename.tex, and it will automatically downloaded the right TeX Live packages. If you really can't spare 2GB from your HD, it is also possible to install TeX Live in a, say, 4GB USB key and live happily ever after :)Įverything I just wrote requires that you install TeX Live with one the methods described here. The downside is of course that you need the full set of packages installed in your machine, which may be a problem if you don't have enough free space. The manual has lots of info on useful commands and it is a recommended reading for every user. This is called auto-install and is announced as such That is also installed locally, it will be added to the local This feature is explained in the tlmgr manual.Īnalogously, if a package has been added to a collection on the server However, if you install the full (or almost full) TeX Live collection of packages (~2400) you will not need to add new packages, a periodic tlmgr update -all will take care of everything, including the installation of packages added to the TeX Live collection after you first full installation. I never tested it and don't know if it has drawbacks. ![]() The last statement is not true actually, as pointed out by wasteofspace in the comments there is the texliveonfly package that implements the on demand installation in TeX Live 2010 and later. While in MiKTeX an installation process is automatically triggered if you have, say, \usepackage in a document preamble without the corresponding package installed, there is no such feature on TeX Live.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |