[NTG-context] Re: Installation problem

Hans Hagen ntg-context@ntg.nl
Tue Jun 22 10:11:43 CEST 2004


Patrick Gundlach wrote:

>Hello Hans,
>
>  
>
>>maybe some interference with cont-en.ini; does
>>
>>  texexec --make --alone
>>
>>work ok?
>>    
>>
>
>yes. It gives me cont-en, cont-nl,  metafun and  mptopdf  in the
>current dir.
>
>BTW: I use the current texlive (the last one shipped to members of
>local tugs)
>  
>
hm, i always have the impression that that version is sensitive for the location of the cpx files; because i setup the texmf vars more rigurously --alone puts the formats where they belong;

future versions of tex live need more care: officially the formats will go under subpaths in web2c, but tetex will not follow that scheme; so, it's good to keep an eye on where formats finally end up; since you install fonts yourself, you may also take a look at the enc/map settings  (below); the textools script (in distribution) is able to correct the tree -) 

Hans   

--------- my setup script ---------------

# example setup file / hans hagen
#
# dos2unix setuptex
# . setuptex
# mktexlsr
# texexec --make --alone

TEXROOT=$1

if ! test -f "$TEXROOT/texmf/tex/plain/base/plain.tex" ; then
    TEXROOT="$PWD" ;
fi

if ! test -f "$TEXROOT/texmf/tex/plain/base/plain.tex" ; then
    TEXROOT="$PWD/tex" ;
fi

if ! test -f "$TEXROOT/texmf/tex/plain/base/plain.tex" ; then
    TEXROOT="/usr/local/context/tex" ;
fi

if ! test -f "$TEXROOT/texmf/tex/plain/base/plain.tex" ; then
    TEXROOT="/usr/local/tex" ;
fi

if ! test -f "$TEXROOT/texmf/tex/plain/base/plain.tex" ; then
    echo "provide a proper tex root (like /something/tex)" ;
    exit 1 ;
fi

export TEXROOT

TEXMFMAIN=$TEXROOT/texmf
TEXMFLOCAL=$TEXROOT/texmf-local
TEXMFFONTS=$TEXROOT/texmf-fonts
TEXMFEXTRA=$TEXROOT/texmf-extra
TEXMFPROJECT=$TEXROOT/texmf-project
TEXMFOS=$TEXROOT/texmf-linux
VARTEXMF=$TMP/texmf-var

export TEXMFMAIN
export TEXMFLOCAL
export TEXMFPROJECT
export TEXMFFONTS
export TEXMFEXTRA
export TEXMFOS
export VARTEXMF

CTXDEVTXPATH=
CTXDEVMPPATH=
CTXDEVMFPATH=

export CTXDEVTXPATH
export CTXDEVMPPATH
export CTXDEVMFPATH

CTXDEVPLPATH=
CTXDEVRBPATH=
CTXDEVPYPATH=
CTXDEVJVPATH=

export CTXDEVPLPATH
export CTXDEVRBPATH
export CTXDEVPYPATH
export CTXDEVJVPATH

PATH=$TEXMFOS/bin:$PATH

export PATH

# PATH=$TEXMFLOCAL\SCRIPTS\PERL\CONTEXT:$PATH
# PATH=$TEXMFLOCAL\SCRIPTS\RUBY\CONTEXT:$PATH
#
# PATH=$TEXMFLOCAL\CONTEXT\PERL:$PATH
# PATH=$TEXMFLOCAL\CONTEXT\PERLTK:$PATH
# PATH=$TEXMFLOCAL\CONTEXT\RUBY:$PATH
#
# PATH=$TEXMFPROJECT\CONTEXT\PERL:$PATH
# PATH=$TEXMFPROJECT\CONTEXT\PERLTK:$PATH
# PATH=$TEXMFPROJECT\CONTEXT\RUBY:$PATH
# PATH=$TEXMFPROJECT\CONTEXT\BIN:$PATH
#
# export PATH

# the next lines fail on dec alpha os's, so there you need
# to comment them (bug traced down by kees van marle/martin
# corrino)

HOMETEXMF=/nonexist
export HOMETEXMF

TEXMFCNF=$TEXROOT/texmf{-local,}/web2c
TEXMF='{$TEXMFOS,$TEXMFPROJECT,$TEXMFFONTS,$TEXMFLOCAL,$TEXMFEXTRA,!!$TEXMFMAIN}'
TEXMFDBS=$TEXMF

export TEXMFCNF
export TEXMF
export TEXMFDBS

TEXFORMATS=$TEXMFOS/web2c
MPMEMS=$TEXFORMATS
TEXPOOL=$TEXFORMATS
MPPOOL=$TEXFORMATS

export TEXFORMATS
export MPMEMS
export TEXPOOL
export MPPOOL

TEXINPUTS=
MPINPUTS=
MFINPUTS=

export TEXINPUTS
export MPINPUTS
export MFINPUTS

# SET EXAMPLEROOT=$VARTEXMF
# EXPORT EXAMPLEROOT

if ((test -w "$TEXMFOS/bin/texmfstart") && (! test -x "$TEXMFOS/bin/texmfstart")) ; then
    chmod 755 $TEXMFOS/bin/*
fi

------ my config file -----------

% This file loads before texmf/web2c/texmf.cnf; beware :
% the selfish auto parent can get in the way especially when
% the binaries are located elsewhere. In case of multiple
% trees, one can best set the following ones manually.

TEXMFMAIN     = $SELFAUTOPARENT/texmf
TEXMFLOCAL    = $SELFAUTOPARENT/texmf-local
TEXMFFONTS    = $SELFAUTOPARENT/texmf-fonts
TEXMFEXTRA    = $SELFAUTOPARENT/texmf-extra
TEXMFPROJECTS = $SELFAUTOPARENT/texmf-projects
VARTEXMF      = $SELFAUTOPARENT/texmf-var
HOMETEXMF     = /nonexist
TEXMF         = {$TEXMFPROJECT,$TEXMFFONTS,$TEXMFLOCAL,$TEXMFEXTRA,!!$TEXMFMAIN}
SYSTEXMF      = $TEXMF

TEXMFCNF      = .;$TEXMF/texmf{-local,}/web2c
TEXMFDBS      = $TEXMF;$VARTEXFONTS

VARTEXFONTS   = $TEMPFONTPATH/varfonts

% In the case of an multi-os setup, this one can be set
% by the environment.

TEXFORMATS    = .;$TEXMF/web2c
MFBASES       = .;$TEXFORMATS
MPMEMS        = .;$TEXFORMATS
TEXPOOL       = .;$TEXFORMATS
MFPOOL        = .;$TEXFORMATS
MPPOOL        = .;$TEXFORMATS

WEB2C         = $TEXMF/web2c

% fonts

TEXPSHEADERS  = .;$TEXMF/{fonts/{enc,map,type1,truetype},dvips,pdftex,tex}//;$TEXMF/{etex,tex,pdftex,dvips,fonts/type1}//
TEXFONTMAPS   = .;$TEXMF/{fonts/map//,fontname};$TEXMF/{pdftex,dvips}/config;$TEXMF/{pdftex,dvips}//

VFFONTS       =	.;$TEXMF/fonts/vf//
TFMFONTS      =	.;{$TEXMF/fonts,$VARTEXFONTS}/tfm//

T1FONTS       =	.;$TEXMF/fonts/{type1,pfb}//;$TEXMF/fonts/misc/hbf//
AFMFONTS      =	.;$TEXMF/fonts/afm//
LIGFILES      =	.;$TEXMF/fonts/lig//
TTFONTS       =	.;$TEXMF/fonts/{truetype,ttf}//
TTF2TFMINPUTS =	.;$TEXMF/ttf2pk//
T42FONTS      =	.;$TEXMF/fonts/type42//
MISCFONTS     =	.;$TEXMF/fonts/misc//
ENCFONTS      = .;$TEXMF/{fonts/enc,dvips}//
CMAPFONTS     = .;$TEXMF/fonts/cmap//
SFDFONTS      = .;$TEXMF/fonts/sfd//
OPENTYPEFONTS = .;$TEXMF/fonts/opentype//

OFMFONTS      =	.;{$TEXMF/fonts,$VARTEXFONTS}/{ofm,tfm}//;$TFMFONTS
OPLFONTS      =	.;{$TEXMF/fonts,$VARTEXFONTS}/opl//
OVFFONTS      =	.;{$TEXMF/fonts,$VARTEXFONTS}/ovf//
OVPFONTS      =	.;{$TEXMF/fonts,$VARTEXFONTS}/ovp//
OTPINPUTS     =	.;$TEXMF/omega/otp//
OCPINPUTS     =	.;$TEXMF/omega/ocp//

% configurations

$CTXDEVTXPATH=rubish
$CTXDEVMPPATH=rubish
$CTXDEVMFPATH=rubish

TEXINPUTS.context = .;$CTXDEVTXPATH//;$TEXMF/{pdftex,pdfetex,etex,omega,tex}/{context,plain,generic,}//
MPINPUTS          = .;$CTXDEVMPPATH//;$TEXMF/metapost//
MFINPUTS          = .;$CTXDEVMFPATH//;$TEXMF/metafont//;{$TEXMF/fonts,$VARTEXFONTS}/source//

TEXCONFIG     =	.;$TEXMF/{fonts/map,dvips,pdftex}//
PDFTEXCONFIG  = .;$TEXMF/pdftex/{$progname,}//
DVIPDFMINPUTS =	.;$TEXMF/{dvipdfm,{dvips,fonts/{map,enc}/{dvips,}}}//

% for the moment we keep these and also keep a backward compatible path spec

$CTXDEVPLPATH=rubish
$CTXDEVPYPATH=rubish
$CTXDEVRBPATH=rubish
$CTXDEVJVPATH=rubish

PERLINPUTS   = .;$CTXDEVPLPATH//;$TEXMF/scripts/context/perl//;$TEXMF/{context/perl,context/perltk,perl,perltk}//
PYTHONINPUTS = .;$CTXDEVPYPATH//;$TEXMF/scripts/context/python//;$TEXMF/{context/python,python}//
RUBYINPUTS   = .;$CTXDEVRBPATH//;$TEXMF/scripts/context/ruby//;$TEXMF/{context/ruby,ruby}//
JAVAINPUTS   = .;$CTXDEVJVPATH//;$TEXMF/scripts/context/java//;$TEXMF/{context/java,java}//

TEXMFSCRIPTS = .;$CTXDEVRBPATH//;$CTXDEVPLPATH//;$TEXMF/scripts/context//;$TEXMF/scripts//

% features

shell_escape            = t
%openout_any             = a
openout_any             = p
openin_any              = a
parse_first_line        = f
allow_multiple_suffixes = f

% auto generation

MKTEXTEX = 0
MKTEXPK  = 0
MKTEXMF  = 0
MKTEXTFM = 0
MKOCP    = 0
MKOFM    = 0

% metapost

MPXCOMMAND = texexec --batch --once --nomp --mptex
TEX        = texexec --batch --once --nomp

% These values are about the same as in the main
% configuration file (dest_names_size added).

buf_size.context         =  200000 % needed for omega bug
extra_mem_bot.context    = 2000000
extra_mem_top.context    = 4000000
font_max.context         =    2000
font_mem_size.context    = 1000000
hash_extra.context       =   50000
main_memory.context      = 1500000
max_strings.context      =  100000
nest_size.context        =     500
obj_tab_size.context     =  300000
dest_names_size.context  =  300000
param_size.context       =    5000
pool_free.context        =   47500
pool_size.context        = 1250000
save_size.context        =   50000
stack_size.context       =    5000
string_vacancies.context =   90000
trie_size.context        =  250000

main_memory.mpost        = 3000000
pool_size.mpost          = 3000000
path_size.mpost          =   10000

main_memory.metafun      = 3000000
pool_size.metafun        = 3000000
path_size.metafun        =   10000

buf_size                 =  100000

mp_buf_size              =   30000
mf_buf_size              =   30000
mpost_buf_size           =   30000

max_print_line.mpost     =     250
max_print_line.metafun   =     250

extra_mem_top.mptopdf    = 1000000
extra_mem_bot.mptopdf    = 1000000

ocp_buf_size             =  500000
ocp_stack_size           =   10000
ocp_list_size            =    1000


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------




More information about the ntg-context mailing list