mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
46c9bfb1f9
From: Peter Berntsen <ptrber@gmail.com> To: rw@rlworkman.net Subject: TexLive Date: Sun, 16 Jan 2011 18:33:02 +0100 Hi, Installed from source texlive-20100722. Thanks! Writing a paper to Science and downloaded the style-files from http://www.sciencemag.org/site/feature/contribinfo/prep/TeX_help/index.xhtml Followed this wiki on how to install extra packages under texmf-local http://en.wikibooks.org/wiki/LaTeX/Packages/Installing_Extra_Packages Running texhash or mktexlsr. It did not find all directories in /usr/share/texmf* Edited TEXMFLOCAL = $SELFAUTOPARENT/../texmf-local on line 64 in /usr/share/texmf/web2c/texmf.cnf to TEXMFLOCAL =$SELFAUTOPARENT/texmf-local Now root@slack:~# mktexlsr mktexlsr: Updating /usr/share/texmf/ls-R... mktexlsr: Updating /usr/share/texmf-config/ls-R... mktexlsr: Updating /usr/share/texmf-dist/ls-R... mktexlsr: Updating /usr/share/texmf-local/ls-R... mktexlsr: Updating /usr/share/texmf-var/ls-R... mktexlsr: Done. finds texmv-local/ls-R and the installed sty files can be used in all directories. Don't know if this is a 'bug' but it might be possible to change in the default path generation to the texmf tree. Of course one can put all extra style files in a ~/texmf but to use texmf-local make it neat and clean. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
17 lines
612 B
Bash
17 lines
612 B
Bash
# Temporarily add /usr/share/texmf/bin to $PATH or
|
|
# the updmap-sys and fmtutil-sys calls will not work
|
|
TEMP_PATH=$PATH
|
|
export PATH=/usr/share/texmf/bin:$PATH
|
|
|
|
# This one shouldn't be needed, but just in case...
|
|
chroot . /usr/share/texmf/bin/mktexlsr 1>/dev/null 2>/dev/null
|
|
|
|
# This is to generate /usr/share/texmf-var/ stuff
|
|
chroot . /usr/share/texmf/bin/updmap-sys --nohash --syncwithtrees 1>/dev/null 2>/dev/null
|
|
chroot . /usr/share/texmf/bin/mktexlsr 1>/dev/null 2>/dev/null
|
|
chroot . /usr/share/texmf/bin/fmtutil-sys --all 1>/dev/null 2>/dev/null
|
|
|
|
# Just in case...
|
|
export PATH=$TEMP_PATH
|
|
unset TEMP_PATH
|
|
|