cf04579cc5
* runLaTeX: allow additional TeX packages to be specified. * teTeX setup hook: TEXMFNIX doesn't seem to work, use TEXINPUTS. svn path=/nixpkgs/trunk/; revision=8261
7 lines
185 B
Bash
7 lines
185 B
Bash
addTeXMFPath () {
|
|
if test -d "$1/share/texmf-nix"; then
|
|
export TEXINPUTS="${TEXINPUTS}${TEXINPUTS:+:}$1/share/texmf-nix//:"
|
|
fi
|
|
}
|
|
|
|
envHooks=(${envHooks[@]} addTeXMFPath)
|