TeX Live

From ArchWiki
Revision as of 12:17, 8 March 2008 by Firmicus (talk | contribs) (Introduction: added link to community packages)
Jump to: navigation, search


Since tetex -- the standard distribution of TeX and friends for Unix systems -- is no longer maintained, many users have expressed the wish that it be replaced by TeXLive. See this forum discussion for more details. The good news is that TeXLive packages for Arch Linux (based on TeXLive 2007 with incremental updates to the latest version of all CTAN packages) are now available in community (as of Sept. 27, 2007). Now by installing the package texlive-core (85MB) you will have a very solid typesetting system at your disposal.

List of all texlive-* packages

The texlive packages are arranged into four groups: texlive-most, texlive-most-doc, texlive-lang, and texlive-lang-doc. The dummy package texlive-all will install everything. As you can see, the documentation has been packaged separately, for the benefit of users who want to save space or who prefer to access the documentation online.

NOTE: For most packages in texlive-most (but not for texlive-bin and the documention), a *-svn version is also available in [community].

The essential package texlive-core contains the basic texmf-dist tree, while texlive-bin contains the binaries. It is based on the “medium” install scheme of the original TeXLive installable CD and DVD. All other packages are based on the eponymous collections in TeXLive. The links bring to a list of the CTAN packages contained in each Arch package.

Group texlive-most

Group texlive-most-doc

  • texlive-core-doc (127M)
  • texlive-doc-i18n (42M)
  • texlive-bibtexextra-doc (2.9M)
  • texlive-fontsextra-doc (15M)
  • texlive-formatsextra-doc (2.1M)
  • texlive-games-doc (1.3M)
  • texlive-genericextra-doc (1.7M)
  • texlive-htmlxml-doc (299K)
  • texlive-humanities-doc (8.7M)
  • texlive-latex3-doc (592K)
  • texlive-latexextra-doc (81M)
  • texlive-music-doc (2.5M)
  • texlive-omega-doc (633K)
  • texlive-pictures-doc (7.5M)
  • texlive-plainextra-doc (1.1M)
  • texlive-pstricks-doc (23M)
  • texlive-publishers-doc (13M)
  • texlive-science-doc (7.6M)

Group texlive-lang

Group texlive-lang-doc

  • texlive-langafrican-doc (488K)
  • texlive-langarab-doc (3.4M)
  • texlive-langarmenian-doc (168K)
  • texlive-langcjk-doc (1.8M)
  • texlive-langcroatian-doc (92K)
  • texlive-langcyrillic-doc (2.1M)
  • texlive-langgreek-doc (1.2M)
  • texlive-langhebrew-doc (96K)
  • texlive-langindic-doc (2.0M)
  • texlive-langmanju-doc (24K)
  • texlive-langmongolian-doc (1.1M)
  • texlive-langtibetan-doc (261K)
  • texlive-langvietnamese-doc (1001K)

Building SVN versions of TeXlive packages

[Note: This is no longer necessary since the svn packages are in community.]

For power-users who would like to enjoy the very latest from CTAN without installing too much by hand, the following directions will enable you to easily build and install texlive-svn packages:

Note first that texlive-core-svn contains the same binaries than texlive-core (based on the February 2007 release of TeX Live with the inclusion of a bugfix patch). The svn version, as its name suggests, targets the texmf trees in the current development version on tug.org's subversion server (retrieved via rsync for performance).

To build the svn packages, get texlive-svn.zip which contains the complete build tree, i.e., the PKGBUILDs and auxiliary files for all the packages mentioned above. The *.paths files (which contain the paths that rsync needs to retrieve) won't be up-to-date, so you need also the following: tl-scripts.zip.

Be sure you have installed in the system xorg-server, t1lib, gd, rsync, flex and bison packages. Assuming you are in the same directory where you downloaded the .zip files, follow these instructions:

$ unzip texlive-svn.zip -d texlive-svn
$ unzip tl-scripts.zip -d texlive-svn
$ cd texlive-svn
$ ./updatepathfiles #Wait a little..
$ ls

You'll see all the packages names, you should think about what you need. But surely you need texlive-core.

$ cd texlive-core
$ makepkg -c

Be patient! Sources are big, and compilation takes quite a long time. If everything goes well you can install texlive-core with pacman:

$ pacman -U texlive-core-2007*.pkg.tar.gz #press tab to complete

If something goes wrong, join us in the forum and look to see if your problem has already been solved. If not, we will happily help! Post everything you think useful and the build.log made this way:

$ makepkg -c 2>&1 | tr -d -c '\n[:print:]' | tee build.log

or just:

$ makepkg -c 2>&1 | tee build.log

but do not passing through tr won't delete non-printable characters.

Even after failure you can delete the pkg and src folders. Don't delete the texmf* folders yet, otherwise you will have to download everything again the next time you run makepkg. The other files in the PKGBUILD directory should not be deleted, they are part of the sources.

If you need some other package, just repeat the above in the appropriate directory. The other packages do not need compiling so they should just work.

If you want to compile all packages without thinking too much about it you may use, from the directory where you unpacked the .zip file:

$ for d in texlive-*; do cd "$d" && makepkg -dc ; touch ../"$d"-"$?" && cd .. ; done 

This will make every package of every directory that fall in the texlive-* expression and make a file with the directory name and return code, zero means success, non-zero failure. So if texlive-core has been compiled correctly you'll have a file called texlive-core-0 in the directory.

Alternative: TeX Live with loop-mounted DVD ISO

See TeXLive_from_iso