tags:

views:

716

answers:

2

Hi,

I'm new to Latex. I've beean able to install it and to compile some pdf files. My problem appears when using the following source code:

\documentclass[11pt]{book}
\usepackage{graphics}
\usepackage{graphicx}
\usepackage[latin1]{inputenc}
\usepackage{epstopdf}
\usepackage{epsfig}
\usepackage{anysize}
\usepackage{setspace}

\begin{document}
Hello, world! 
\end{document}

When I try to compile this code it does not work. In the logs I can see what I think is the process of reading the different packages used (i.e. C:\Program Files\MiKTeX2.8\tex\latex\graphics\graphics.sty).

If I place "\usepackage{setspace}" right after "\documentclass[11pt]{book}" it looks like it's not doing anything. Can the problem be that I don't have this package? I've looking gor info about it, but it'not clear to me which package I need and how to install it.

Thanks

+1  A: 

Probably you don't have the package. Grab it off the CTAN:

http://www.ctan.org/tex-archive/help/Catalogue/entries/setspace.html

The quick hack is to just drop the .sty file in the same directory as your .tex document - if you want to install it properly, check your LaTeX documentation.

Anon.
A: 

I just found out that Miktex has a Tool to search and install packages. Start --> Miktex 2.8 --> Maintenance --> Packet Manager.

dedalo