You are not logged in.

#1 2005-02-18 23:12:13

poetofnumbers
Member
From: Kansas, United States
Registered: 2004-10-30
Posts: 106
Website

[extra : office] tetex-3.0

You can download the package (48+MB pkg.tar.gz file) or use the PKGBUILD which follows:

pkgname=tetex
pkgver=3.0
pkgrel=1
pkgdesc='TeX typesetting program'
url='ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/'
license=''
depends=('libpng' 'x-server')
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(nom ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/tetex-src.tar.gz 
ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/tetex-texmf.tar.gz)
md5sums=('d7e030aa11e254e6a5455ca00dfdd6d4' '944a4641e79e61043fdaf8f38ecbb4b3'
         '11aa15c8d3e28ee7815e0d5fcdf43fd4')

build() {
  mkdir -p $startdir/pkg/usr/share/texmf-dist
  cd $startdir/src
  mv `./nom {nom,tetex*}` ../pkg/usr/share/texmf-dist
  cd $startdir/src/$pkgname-src-$pkgver
  ./configure --prefix=/usr --datadir=$startdir/pkg/usr/share 
              --disable-multiplatform --without-texinfo --without-dialog 
              --with-system-zlib --with-system-pnglib --with-system-ncurses 
              --with-system-t1lib
  make all || return 1
  make prefix=$startdir/pkg/usr texmf=$startdir/pkg/usr/share/texmf install
  rm -R $startdir/pkg/usr/share/texmf-dist/doc
}

nom is a stupid program I took from "Unix Power Tools" which returns all files which don't match the given pattern.  I figured moving the files from tetex-texmf.tar.gz was better than unpacking the tarball again in pkg/ and removing the instance in src/.  Here is the code for nom:

#!/bin/sh
temp=/tmp/NOM$$
stat=1
trap 'rm -f $temp; exit $stat' 0 1 2 15

case "$*" in
"") echo "Usage: `basename $0` pattern "1>&2; exit ;;
*/*) echo "`basename $0` quitting:  cannot handle '/'s." 1>&2; exit ;;
esac

ls -d ${1+"$@"} > $temp
ls -1 | comm -23 - $temp
stat=0

You can clean this code up by using bash instead of sh.

I have tested the new tetex package by LaTeXing and pdfLaTeXing my recent algebra homework and my senior honors project.  Both commands ran without a flaw and produced beautiful documents in typical LaTeX fashion.  And no that is not college or high school algebra, it was abstract algebra, specifically Galois Theory.


Sweet, now I can play with myself.

Offline

Board footer

Powered by FluxBB