5

Possible Duplicate:
Where do I place my own .sty files, to make them available to all my .tex files?
How do I install an individual package on a Linux system?

I'd like to install this package:

http://ctan.org/tex-archive/macros/latex/contrib/cookybooky

Is it possible to do this using tlmgr?

I tried something like this, but it looks like I don't know what I am doing:

$ sudo tlmgr repository http://ctan.org/tex-archive/macros/latex/contrib/ install cookybooky
tlmgr: unknown directive to tlmgr repository: http://ctan.org/tex-archive/macros/latex/contrib/

I am doing this on a macbook (TeX Live 2012).

M-V
  • 449

1 Answers1

10

You cannot install it with the TeXLive manager, because it is no more part of any repository. Install it "by hand" from CTAN.

Save the two files cookybooky.dtx and cookybooky.ins in a temporary directory and then run latex cookybooky.ins which creates the documentation and, of course, the style file cookybooky.sty

  • The doc is obtained with pdflatex cookybooky.dtx – egreg Oct 02 '12 at 11:36
  • Thanks. Is it necessary to run any other commands to update the local tex installation? – M-V Oct 02 '12 at 11:45
  • @M-V -- after creating the .sty (and, possibly, the .pdf) file, you should run texhash or mktexlsr to update the database for TeX's lookup of file names. – Mico Oct 02 '12 at 11:48
  • Thanks @Mico, but I had to copy the files to ~/Library/texmf/tex/latex/ before I stopped getting errors about missing cookybooky.sty. Even now, I am getting an error about a missing web.sty - I guess I am missing some packages. – M-V Oct 02 '12 at 12:59
  • you can test if a package is installed or found by TeX with running from the terminal kpsewhich web.sty or any other package –  Oct 02 '12 at 15:48
  • The documentation has a section about requirements. web.sty is part of AcroTeX eDucation Bundle that is not in TeX Live either. – Heiko Oberdiek Oct 03 '12 at 03:06