views:

47

answers:

3

Hello,

The latex file is giving the following error

! LaTeX Error: File `datetime.sty' not found.

Here is the Latex Code : \usepackage{datetime}

Please let me know, if I am missing something.

I am using Debian 3.1 Linux Machine. Would appreciate any useful pointers or help.

Thanks

Kiran

A: 

Yes, you are missing the datetime.sty file; you are probably missing the whole package too. What system are you using for managing your (La)TeX installation ? If you tell us you may get more specific advice than I can give.

You need to get the datetime package from CTAN or one of its mirrors and install it into your local texmf tree. Your LaTeX manager will do this for you. You may also be able to configure your LaTeX manager to automatically download and install packages the first time they are requested.

High Performance Mark
Thanks a lot for your quick response
Kiran
A: 

If your LaTeX Distribution does not load the package automatically, you can try to install it manually according to the readme file here: http://www.ctan.org/pub/tex-archive/macros/latex/contrib/datetime/

efi
Thanks, Ya I did a manual installation. Its working now..
Kiran
Fine! I wonder though why the package was not retrieved automatically. On the other hand Deb. 3.1 is not the newsest OS... :D
efi
@efi: LaTeX contains hundreds of styles, extensions and so on. All common Unix-distributions split it into basic always needed packages and optional packages. The optional packages have to be installed separately.
Mnementh
@Mnementh Thanks for the infos. I was not aware of this rather monolithic behavior of teTex and Co. My MikTex distribution on Windows is smart enough to have a package manager that autoloads reqired packages from a repository once they are called by \usepackage{}. I thought this was as often just a copied Unix-ish behavior but apparently I was wrong... ;-)
efi
A: 

I don't use Debian myself, but if I look it up, Debian contains it in the package 'texlive-latex-extra'. If you installed LaTeX via the packet-manager of debian (I think so) the command 'apt-get install texlive-latex-extra' executed as root should install you the needed file. Alternatively you can use a graphical package-manager to install the package.

Mnementh