Zenwalk Linux

Ever tried Zen computing?

HOWTO Texlive

 

From Zenwalk Wiki

Jump to: navigation, search


This article is part of the Zenwalk HOWTO.
Installing/Setting Up | Internationalisation | Networks | Software | Package Management | Misc

Currently, as of Zenwalk-6.4, Tex and related programs are still available in /extra/t/tetex-3.0-i486-7.txz and /extra/t/tetex-doc-3.0-i486-7.txz. But tetex and tetex-doc are not being maintained any more (See: http://www.tug.org/tetex/). So, it is suggested to remove tetex and tetex-doc packages and install TexLive if you want to use the latest distribution of TeX and related programs. Packaging TexLive as installable Zenwalk package in *.txz format is a complicated task which is still incomplete. Until TexLive comes as a precompiled Zenwalk package, follow the procedure given below to install TexLive:

1. Download TexLive DVD iso image from one of the sources given in http://www.tug.org/texlive/acquire.html. Make sure that its md5 sum is ok. md5 sums are also given at http://www.tug.org/texlive/acquire.html. Your image is probably compressed with the lzma algorithm. You can decode it like this:

    xzdec <texlive2009.iso.xz >texlive2009.iso

2. Burn this iso image on a DVD using any DVD burning program, for example Brasero.

3. First remove tetex and tetex-doc packages if already installed. Logout and relogin as root. This is necessary to prevent any previous environment variables affecting the new installation.

4. By default, TexLive 2009 will be installed in /usr/local/texlive/. But create /opt/texlive/2009 directory which will be selected as TeXLive2009 root directory below. You need to change the PATH environment variables given below if your TeXLive2009 root directory is different.

5. Put the TexLive DVD into the DVD drive. It mounts automatically.

6. Open terminal in /media/TeXLive2009 directory and run the command

  #install-tl

If needed, fine-tune your selection of packages to be installed by following instructions shown on screen. Make /opt/texlive/2009 as your TeXLive2009 root directory.

7. Start installation. Time taken for installation may vary depending upon your selection of packges. Full installation may take almost an hour.

8. After the installation is completed open a text editor such as Geany and create a file called texlive.sh and put the following two lines in it:

   export PATH=$PATH:/opt/texlive/2009/bin/i386-linux
   export MANPATH=$MANPATH:/opt/texlive/2009/texmf/doc/man

Save texlive.sh file. Make this file executable. Move this file to /etc/profile.d.

9. Remove TeXLive2009 DVD. Now TexLive-2009 is ready for use on your system.

10. Now logout and re-login as a non-root user to use the newly installed TexLive.

11. Working with LaTeX files is much easier if you use a front-end like LyX or Texmaker. Both are already available in the Zenwalk Repository.

Happy LaTeXing !!

--rsamurti Edited on 22 December 2009.

Personal tools