[Fedora TeX Live] Support for ConTeXt

Mojca Miklavec mojca.miklavec.lists at gmail.com
Sat Sep 10 15:36:39 CEST 2011


Hello,

A user testing TeX Live 2011 on Fedora asked me if I could help to
make sure that ConTeXt would work properly. Apparently it doesn't work
as intended at the moment.

Minimal document for testing:

% filename.tex
\starttext
hello world
\stoptext

The command that fails is "context filename.tex", the reason is most
probably "forgotten changes" in texmfcnf.lua. (In addition to
texmf.cnf the distribution also has to adapt texmfcnf.lua.)

This is what has been done for Mandriva for example:

http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/texlive-texmf/current/SPECS/texlive-texmf.spec?revision=697164&view=markup

perl -pi -e 's%^(\s*TEXMFMAIN\s+=\s+").*%$1%{texmfdir}",%;'				\
 -e 's%\bTEXMFCONTEXT\b%TEXMFDIST%g;'						\
 -e 's%^(\s*TEXMFDIST\s+=\s+).*%$1"%{texmfdistdir}",%;'				\
 -e 's%^(\s*TEXMFLOCAL\s+=\s+).*%$1"%{texmflocaldir}",%;'			\
 -e 's%^(\s*TEXMFSYSVAR\s+=\s+).*%$1"%{texmfvardir}",%;'			\
 -e 's%^(\s*TEXMFSYSCONFIG\s+=\s+).*%$1"%{texmfconfdir}",%;'			\
 -e 's%^(\s*TEXMFHOME\s+=\s+").*%$1\$HOME/texmf",%;'				\
 -e 's%^(\s*TEXMFVAR\s+=\s+").*%$1\$HOME/.texlive2011/texmf-var",%;'		\
 -e 's%^(\s*TEXMFCONFIG\s+=\s+").*%$1\$HOME/.texlive2011/texmf-config",%;'	\
 -e 's%^(\s*FONTCONFIG_PATH\s+=\s+").*%$1%{_sysconfdir}/fonts",%;'		\
 -e 's|^local texmflocal.*$||;'							\
 -e 's|^texmflocal.*$||;'							\
texmf/web2c/texmfcnf.lua

I didn't try to install Fedora yet, but if somebody can send me
texmf.cnf, I should be able to send you back how texmfcnf.lua is
supposed to look like. In a few short words:
- if texmfcnf.lua is not found, you might need to adjust search path
(please tell me where texmf.cnf and texmfcnf.lua are), but there is a
high chance that it works
- you need to remove texmflocal hack from texmfcnf.lua
- you need to adjust paths according to you distribution's locations
- you might want to set FONTCONFIG_PATH
- it would be great to run "mtxrun --generate" at any time when you
run "mktexlsr"

Mojca


More information about the TeXLive mailing list