You are not logged in.
LuaTeX has gone beta recently. It uses, as its name may suggest, an integrated Lua-Interpreter.
I've been fiddling around with installing it but didn't quite succeed. Compiling from svn worked, but apparently it needs some environment set up... which is, AFAIU, currently part of conTeXt's development environment.
(I keep getting errors along the lines of "Couldn't generate luatex formats")
The context-dev mailing list seems to also be the place where discussion about luatex is happening. I am really looking for to it, but ATM can't afford to break my texlive setup, because I'm finishing a thesis.
Anyone wants to take this further?
Here's my attempt so far:
PKGBUILD
# Contributor: Andreas Wagner <A.Wagner@stud.uni-frankfurt.de>
pkgname=luatex-svn
pkgver=793
pkgrel=1
pkgdesc="A TeX typesetting system, successor to pdftex, with embedded lua interpreter"
url="http://luatex.org/"
arch=('i686' 'x86_64')
makedepends=('subversion')
license=('GPL')
depends=(tetex)
conflicts=(luatex)
provides=(luatex)
install=${pkgname}.install
source=(http://minimals.contextgarden.net/minimals/linux/texmf-local/scripts/context/lua/luatools.lua
http://minimals.contextgarden.net/minimals/linux/texmf-local/scripts/context/lua/mtxrun.lua
# http://minimals.contextgarden.net/minimals/linux/texmf-local/tex/context/base/cont-en.tex
luatex.sh)
_svntrunk=svn://scm.foundry.supelec.fr/svn/luatex/trunk
_svnmod=luatex
build() {
cd $startdir/src
if [ -d $_svnmod/.svn ]; then
(cd $_svnmod && svn up)
else
svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
fi
msg "SVN checkout done or server timeout"
msg "Starting make..."
cp -r $_svnmod $_svnmod-build
cd $_svnmod-build
./build.sh
install -dm755 ${startdir}/pkg/usr/bin
install -dm755 ${startdir}/pkg/etc/profile.d
install -dm755 ${startdir}/pkg/var/cache/luatex
install -m755 build/texk/web2c/luatex ${startdir}/pkg/usr/bin
ln -s /usr/bin/luatex ${startdir}/pkg/usr/bin/texlua
ln -s /usr/bin/luatex ${startdir}/pkg/usr/bin/texluac
install -Tm755 ${startdir}/src/luatools.lua ${startdir}/pkg/usr/bin/luatools
install -Tm755 ${startdir}/src/mtxrun.lua ${startdir}/pkg/usr/bin/mtxrun
install -m755 ${startdir}/src/luatex.sh ${startdir}/pkg/etc/profile.d
# install -m644 ${startdir}/src/cont-en.tex ${startdir}/pkg/opt/tex/texmf-local/tex/context/base
}
md5sums=('d876c059f85af57593bf5e15e38df69e'
'bf0bbe09a9d125e62b45bcf1503334cc'
'8442e743e9ecf8d6fb30d45e95e90159'
'072aed2c14db21ff09494605ed0acad9')
luatex-svn.install
# arg 1: the new package version
post_install() {
. /etc/profile.d/luatex.sh
mktexlsr
echo luatools --generate
texexec --lua --all
# echo luatools --ini --compile --verbose cont-en
/bin/true
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
# should rebuild the formats
/bin/true
}
op=$1
shift
[ "$(type -t "$op")" = "function" ] && $op "$@"
# vim:set ts=2 sw=2 et:
luatex.sh
export TEXMFCACHE=/var/cache/luatex
export OSFONTDIR=/usr/share/fonts/TTF
export LUAINPUTS="{/opt/tex/texmf-local/scripts/context/lua,/opt/tex/texmf-local/tex/context/base,/opt/tex/dvd/texmf-dist/scripts/context/lua}"
(this should be adjusted to your tetex's/texlive's paths -- or, as per Stefan's suggestion, it could be set in /opt/tex/texmf-var/web2c/texmf.cnf)
and finally my /etc/profile.d/texlive.sh
export MANPATH=$MANPATH:/opt/tex/dvd/texmf/doc/man
export PATH=$PATH:/opt/tex/dvd/bin/x86_64-linux
export TEXLIVE=/opt/tex/dvd
export TEXROOT=/opt/tex
export TEXMFCNF=/opt/tex/texmf-var/web2c
(probably needs adjustments, too)
I was playing around a bit with download from context-minimals (and some packages from context's homepage), but it didn't get me very far. I think in some TeX users' magazine there must have been a description of how to set it up, but I've never seen it. I don't know how much of conTeXt it needs and how recent this has to be.
I just hope someone will have more success than I.
Andreas
Last edited by awagner (2007-10-24 10:30:29)
Offline
I will try on weekend. Unfortuntely I had a problem with my root partition recently, so I have to install ArchLinux first.
Offline
I tried to compile and I really got an executable named luatex, but my PKGBUILD failed to install anything. So I have to figure out which files should go to which places.
Offline
Hello,
luatex-beta is now (or will bee soon) in the aur. Not very well tested, though.
Offline
great! can't wait to have a look. it's a shame it will take me some days until I'll have the time for it.
Thanks a lot.
Andreas
Offline
Hi!
Hello,
luatex-beta is now (or will bee soon) in the aur. Not very well tested, though.
Thank your the build.
I'm just moving from lyx/latex to ConTeXt and having luatex is a great way to test for the future
I bumped to 0.20.2 with
# Contributor: Stefan Husmann <stefan.husmann@t-systems.com>
pkgname=luatex-beta
pkgver=0.20.2
pkgrel=1
pkgdesc="Create PDF-files from TeX-files, with a built-in Lua-interpreter"
arch=('i686' 'x86_64')
license=('GPL')
url='http://foundry.supelec.fr/projects/luatex'
depends=('texlive-core')
install=${pkgname}.install
source=(http://foundry.supelec.fr/frs/download.php/568/$pkgname-$pkgver.tar.bz2)
md5sums=('7e62617a88c083e1a08d839280d94e62')
build() {
cd $startdir/src/$pkgname-$pkgver
cp $startdir/src/$pkgname-$pkgver/build.sh.linux $startdir/src/$pkgname-$pkgver/build.sh
./build.sh --datadir=/opt/texlive || return 1
# Overwrite old files
# make $PREFIX=$startdir/pkg/$pkgname-$pkgver install || return 1
install -d $startdir/pkg/opt/texlive/bin
install -m 755 linux/texk/web2c/luatex $startdir/pkg/opt/texlive/bin
}
and it built succesfuly on x86_64, so pls. add it to the 'arch'.
I'll try to read a bit, so I can test more thoroughly and will report back here or in AUR's comments.
Sincerely,
Gour
Offline
Hi!
snip
and it built succesfuly on x86_64, so pls. add it to the 'arch'.
I'll try to read a bit, so I can test more thoroughly and will report back here or in AUR's comments.
Sincerely,
Gour
Heh, too quick...the default build.sh.linux is for i386 targets, so I had to modify PKGBUILD a bit:
...
build() {
cd $startdir/src/$pkgname-$pkgver
if [ "${CARCH}" = "i686" ]; then
cp $startdir/src/$pkgname-$pkgver/build.sh.linux $startdir/src/$pkgname-$pkgver/build.sh
fi
./build.sh --datadir=/opt/texlive || return 1
# Overwrite old files
# make $PREFIX=$startdir/pkg/$pkgname-$pkgver install || return 1
install -d $startdir/pkg/opt/texlive/bin
if [ "${CARCH}" = "i686" ]; then
install -m 755 linux/texk/web2c/luatex $startdir/pkg/opt/texlive/bin
else
install -m 755 build/texk/web2c/luatex $startdir/pkg/opt/texlive/bin
fi
}
With the above modification(s) I can build the package, but attempt to typest simple "Hello world" fails with:
gour@nitai ~/tmp> luatex test.tex
This is LuaTeX, Version snapshot-0.20.2-2007122413 (Web2C 7.5.6)
I can't find the format file `luatex.fmt'!
I'm quite new with luatex and recent re-convert to ConTeXt, so if any more experienced user can shed some light, I'd be more then grateful
Sincerely,
Gour
Edit: After getting some help on ConTeXt ml, I was able to typeset "Hello world" document by following this post.
However, it would be nice to tweak luatex-beta build further so it can take charge of these manual work
Last edited by gour (2007-12-25 14:28:13)
Offline
Thank you for your efforts. I do not like ConText and will stick to LaTeX, so it may be better if someone else is maintaining the package. Feel free to do so.
Offline
Thank you for your efforts. I do not like ConText and will stick to LaTeX
I was playing with ConTeXt sometime in 2002 when Unicode support was just arriving...now it is
completely transparent. Besides that, ConTeXt is much more flexible and monolithic, i.e. no need
to learn many LaTeX packages separately and no clash amongst them
However, you have a choice
...so it may be better if someone else is maintaining the package. Feel free to do so.
I may adopt package, but will ask firmicus who is maintaining TexLive if he is interested, so it can end
in community 'cause I'm not TU :-)
Sincerely,
Gour
Offline