[OS X TeX] Installing a package on MacTeX

Victor Ivrii vivrii at gmail.com
Sun May 21 12:37:45 CEST 2006


On 5/21/06, Oleg Kobchenko <olegykj at yahoo.com> wrote:
> How to install a package?
>
> I installed MacTeX from
> http://www.tug.org/mactex/
>
> Now a need to install a package from TUG,
> for example, skak
> http://www.tug.org/tex-archive/help/Catalogue/entries/skak.html
>
> I expect to run a utility that would download
> or at least installs from disk, like MikTeX does.
>
> I ended up writing my owm make file, see below.
> Is that really a way to go? (I don't want to
> deal with the whole TeXLive DVD.)
>
>
> #####################################################
> # installs a TeX package
>
> PAKNAME=skak
> TEXDST=/usr/local/teTeX/share/texmf.local
>
> all: info
>
> info:
>         @echo usage:
>         @echo "  sudo make install"
>         @echo "  sudo make uninstall"
>         @echo ""
>         @echo See the Makefile for more settings
>
> install:
>         @echo Installing $(PAKNAME)
>         mkdir $(TEXDST)/doc/latex/$(PAKNAME)
>         cp doc/* $(TEXDST)/doc/latex/$(PAKNAME)
>         mkdir $(TEXDST)/fonts/mf/$(PAKNAME)
>         cp mf/* $(TEXDST)/fonts/mf/$(PAKNAME)
>         mkdir $(TEXDST)/tex/latex/$(PAKNAME)
>         cp tex/* $(TEXDST)/tex/latex/$(PAKNAME)
>         mktexlsr
>
> uninstall:
>         @echo Uninstalling $(PAKNAME)
>         rm -rf $(TEXDST)/doc/latex/$(PAKNAME)
>         rm -rf $(TEXDST)/fonts/mf/$(PAKNAME)
>         rm -rf $(TEXDST)/tex/latex/$(PAKNAME)
>         mktexlsr
>
> #####################################################
>

I am afraid that majority of TUG packages have different (just one
directory) structure

========================
Victor Ivrii, Department of Mathematics, University of Toronto
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the macostex-archives mailing list