Search:  
Gentoo Wiki

TeX_Live_2007

As of recently, TeX Live 2007 is available through Portage and is marked stable for almost every architecture. Use that version following the Texlive Migration Guide! However, if you want, you can install it manually. Unfortunately, this breaks some packages' ebuilds. There is a devel ebuild available in aballier's overlay.

Contents

Installing

General

This guide is mainly stolen from Semibyte: TeXLive-Installation auf Gentoo Linux

Code: Installer
 # sh install-tl.sh
Code:
 # cd /usr/local/texlive/
 # ln -s 2007 current
 # mkdir texmf-site
 

You only have to change the symlink if you want to install a new version in future.

File: /usr/local/texlive/2007/texmf/web2c/texmf.cnf
% The files installed by gentoo portage.
TEXMFSITE=$SELFAUTOPARENT/../texmf-site

TEXMF = {$TEXMFCONFIG,$TEXMFVAR,$TEXMFHOME,!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFMAI\
N,!!$TEXMFLOCAL,!!$TEXMFSITE,!!$TEXMFDIST}

SYSTEXMF = $TEXMFLOCAL;$TEXMFSITE;$TEXMFMAIN;$TEXMFDIST

TEXMFDBS = {!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFSITE,!!$TEXMFMAIN,!!$TEXMFLOCAL,!!$TEXMFDIST}
 
File: /etc/env.d/98TeXLive
PATH=/usr/local/texlive/current/bin/i386-linux
ROOTPATH=/usr/local/texlive/current/bin/i386-linux
MANPATH=/usr/local/texlive/current/texmf/doc/man
INFOPATH=/usr/local/texlive/current/texmf/doc/info
TEXBASE=/usr/local/texlive/
 

The last line is not necessary, but can be handy if you want to enter your tex folder fast.

kpathsea library

The kpathsea library itself is not installed. If you need it (eg to compile the lcdf-typetools yourself) you have to do it manually. Here is what I did:

Code:
 $ cd texk/
 $ ./configure
 $ cd kpathsea
 $ make
 

(I get "configure: error: ./configure failed for dvipdfmx" but this does not matter.)

File: Makefile
myinstall:
	$(SHELL) $(top_srcdir)/../mkinstalldirs	$(libdir)
	$(INSTALL_LIBTOOL_LIBS) lib$(library).la $(libdir)
	$(SHELL) $(top_srcdir)/../mkinstalldirs $(includedir)/kpathsea
	for f in $(install_headers); do \
	  $(INSTALL_DATA) $$f $(includedir)/kpathsea/; done
	rm -f $(includedir)/kpathsea/acconfig.h

myuninstall:
	$(UNINSTALL_LIBTOOL_LIBS) $(libdir)/lib$(library).la
	rm -r $(includedir)/kpathsea/
 

Bugs in TeX Live 2007

Here is a list of bugs: [1]

Other TeX-related packages

Maxima

The newest ebuild puts the files into TEXMFSITE

gnuplot

gnuplot-4.2 uses TEXMFSITE.

If emergeing gnuplot-4.2.* fails with an ACCESS VIOLATION, then try doing

touch /usr/local/texlive/texmf-site/ls-R

and remerge gnuplot. --Gi1242 02:55, 4 October 2007 (UTC)

This is fixed now, see Bug 201871. Please report such issues as a bug, it could have been fixed much earlier, but we simply were not aware of the problem. --Ulm 16:29, 28 August 2008 (UTC)

Complementary Tools

dev-tex/texmfind allows you to find tex/latex components in Gentoo packages, for instance:

Code: texmfind example
 texmfind exam.cls 
 dev-texlive/texlive-latexextra [1 file]
 exam.cls

 Found 1 texmf file in 1 ebuild.
 

dev-tex/mpm is the MikTeX package manager, it can be a good complement to texlive. If you want to install something not available in texlive do:

Code: Installing mpm
 emerge dev-tex/mpm
 mpm --update-db  
 

to setup mpm. Then, you can install anything available in the Miktex repositories with:

Code: Installing mpm
 mpm --install=component
 

Where component can be a TeX/LaTeX font, style, class, etc.

External links

Retrieved from "http://www.gentoo-wiki.info/TeX_Live_2007"

Last modified: Wed, 17 Sep 2008 07:18:00 +0000 Hits: 4,663