Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Where to copy .sty files

10 views
Skip to first unread message

Omer Khalid

unread,
Nov 20, 2009, 3:45:54 PM11/20/09
to
Hi,

I have texlive 2007 installed with MacTex.

I need to use algorithmic and algorithms packages, so I got them from
CTAN site and extracted the *.sty files.

I tried to copy them to various places including ~/texmf/tex or ~/
Library/texmf/tex/latex or in the directory where my thesis tex files
are. Afterwards, I ran "texhash" command to refresh the database; but
it seems that my tex system still can't located the files as I keep on
getting the error about the missing algorithms.sty file.

I also tried to find "tlmgr" command on my OS X Lepord machine no
luck!

Any help in how to install these .sty files would be very much
appreciated.

Thanks,
Omer

## output of "kpsewhich -show-path=tex -progname=latex" command:

.:/Users/okhalid/.texlive2007/texmf-config/tex/latex//:/Users/
okhalid/.texlive2007/texmf-var/tex/latex//:/Users/okhalid/Library/
texmf/tex/latex//:!!/usr/local/texlive/2007/texmf-config/tex/
latex//:!!/usr/local/texlive/2007/texmf-var/tex/latex//:!!/usr/local/
texlive/2007/texmf/tex/latex//:!!/usr/local/texlive/2007/../texmf-
local/tex/latex//:!!/usr/local/texlive/2007/texmf-dist/tex/latex//:/
Users/okhalid/.texlive2007/texmf-config/tex/generic//:/Users/
okhalid/.texlive2007/texmf-var/tex/generic//:/Users/okhalid/Library/
texmf/tex/generic//:!!/usr/local/texlive/2007/texmf-config/tex/
generic//:!!/usr/local/texlive/2007/texmf-var/tex/generic//:!!/usr/
local/texlive/2007/texmf/tex/generic//:!!/usr/local/texlive/2007/../
texmf-local/tex/generic//:!!/usr/local/texlive/2007/texmf-dist/tex/
generic//:/Users/okhalid/.texlive2007/texmf-config/tex///:/Users/
okhalid/.texlive2007/texmf-var/tex///:/Users/okhalid/Library/texmf/
tex///:!!/usr/local/texlive/2007/texmf-config/tex///:!!/usr/local/
texlive/2007/texmf-var/tex///:!!/usr/local/texlive/2007/texmf/
tex///:!!/usr/local/texlive/2007/../texmf-local/tex///:!!/usr/local/
texlive/2007/texmf-dist/tex///

Robin Fairbairns

unread,
Nov 20, 2009, 7:43:02 PM11/20/09
to
Omer Khalid <okhali...@gmail.com> writes:
>I have texlive 2007 installed with MacTex.
>
>I need to use algorithmic and algorithms packages, so I got them from
>CTAN site and extracted the *.sty files.
>
>I tried to copy them to various places including ~/texmf/tex or ~/
>Library/texmf/tex/latex or in the directory where my thesis tex files
>are. Afterwards, I ran "texhash" command to refresh the database; but
>it seems that my tex system still can't located the files as I keep on
>getting the error about the missing algorithms.sty file.
>
>I also tried to find "tlmgr" command on my OS X Lepord machine no
>luck!

you won't have it, as has been explained in the thread on the tex live
list. tlmgr appeared in tl 2008.

>Any help in how to install these .sty files would be very much
>appreciated.

the position on the tree is important. to first order, it doesn't
actually matter which tree the files are on, it's just a matter of
tidiness. see

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=installthings

for a walk-through of the whole process (some of which, like finding
the files, you've already done).

unfortunately, i've no access to a mac so there's nothing explicit
about macs in the sequence of stuff there. if you need the
mac-specific angle, go to the mactex list, i guess.
--
Robin Fairbairns, Cambridge

Victor Ivrii

unread,
Nov 20, 2009, 8:30:51 PM11/20/09
to
On Nov 20, 3:45 pm, Omer Khalid <okhalid.c...@gmail.com> wrote:
> Hi,
>
> I have texlive 2007 installed with MacTex.
>
> I need to use algorithmic and algorithms packages, so I got them from
> CTAN site and extracted the *.sty files.
>
> I tried to copy them to various places including ~/texmf/tex or ~/
> Library/texmf/tex/latex or in the directory where my thesis tex files
> are. Afterwards, I ran "texhash" command to refresh the database; but
> it seems that my tex system still can't located the files as I keep on
> getting the error about the missing algorithms.sty file.
>
> I also tried to find "tlmgr" command on my OS X Lepord machine no
> luck!
>
> Any help in how to install these .sty files would be very much
> appreciated.
>
> Thanks,
> Omer
>
> ## output of "kpsewhich -show-path=tex -progname=latex" command:
>
/Users/okhalid/Library/texmf/tex/latex

So it sees the directory. And for ~/Library/texmf texhash is NOT
needed. Check if you misspelled package name

anyway: it is the very best time to go to

http://www.tug.org/mactex/2009/

and get MacTex2009 as TL2008 and earlier are frozen and TL2009 has
both of them

Victor Ivrii

unread,
Nov 20, 2009, 8:34:47 PM11/20/09
to

> unfortunately, i've no access to a mac so there's nothing explicit
> about macs in the sequence of stuff there.  if you need the
> mac-specific angle, go to the mactex list, i guess.

The only mac specific is that MacTeX reads ~/Library/texmf rather than
~/texmf. Some external programs compiled from general Unix (cannot
recall) want to have it in ~/texmf (so if needed one can create
symlink ~/texmf -> ~/Library/texmf

Victor

Robin Fairbairns

unread,
Nov 21, 2009, 9:40:46 AM11/21/09
to
In article <a9d33995-86e0-4ad8...@m26g2000yqb.googlegroups.com>,

Victor Ivrii <viv...@gmail.com> writes:
>
>> unfortunately, i've no access to a mac so there's nothing explicit
>> about macs in the sequence of stuff there. =A0if you need the

>> mac-specific angle, go to the mactex list, i guess.
>
>The only mac specific is that MacTeX reads ~/Library/texmf rather than
>~/texmf. Some external programs compiled from general Unix (cannot
>recall) want to have it in ~/texmf (so if needed one can create
>symlink ~/texmf -> ~/Library/texmf

reference to ~/Library/texmf now in sources for next release of the
faq -- thank you.
--
Robin Fairbairns, Cambridge

0 new messages