#!/bin/tcsh -f cd /tmp cp /usr/share//texmf/tex/latex/config/latex.ini . tex -ini -progname=hugelatex latex.ini cp latex.fmt /usr/share/texmf/web2c/hugelatex.fmt ln -sf /usr/bin/tex /usr/bin/hugelatex echo >> /usr/share/texmf/web2c/texmf.cnf << EOF % hugelatex settings extra_mem_top.hugelatex=400000 extra_mem_bot.hugelatex=400000 hash_extra.hugelatex = 15000 pool_size.hugelatex = 5000000 string_vacancies.hugelatex = 45000 max_strings.hugelatex = 55000 pool_free.hugelatex = 47500 nest_size.hugelatex = 500 param_size.hugelatex = 1500 save_size.hugelatex = 5000 stack_size.hugelatex = 15000 EOF texhash