install_sty_4_mac_osx

Up: Tutorials

This page is intended for explaining how to install *.sty file for LaTeX in Mac OSX.

  • Download a *.sty file or a zipped file from CTAN.

  • Unzip if necessary.

  • You may run make or latex *.ins to generate a *.sty file in the unzipped directory.

    • $ make

  • or

    • $ latex caption.ins

  • Move the sty file to the appropriate tex directory.

    • $ sudo mv *.sty /opt/local/share/texmf-texlive/tex/latex/base/

  • Run texhash for update.

    • $ sudo texhash

During the installation, you may need another sty file due to the dependency.

Up: Tutorials