Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm trying to do double-spacing using the setspace package, but I'm getting a setspace.sty not found error. My code looks like this:

\documentclass{article}
\usepackage{setspace}

\begin{document}
\doublespacing
body
\end{document} 

Is this wrong? Is the setspace package out of date? Is it possible it is not installed on my system? I'm the Emacs LaTeX package (TeX Live I think it is called?)

share|improve this question
4  
The setspace package is usually part of a standard distribution. What operating system are you using, and what TeX distribution? –  Alan Munn Oct 3 '11 at 0:22
    
You can check which packages are installed on your system, or at least install new ones using tlmgr. It will also take care of setting the path for installed package - typical to a problem of your nature. –  Werner Oct 3 '11 at 0:30
4  
If you are on some Linux system you might need to install more than just the basic TeX package. For example on Debian/Ubuntu setspace is contained in texlive-latex-recommended. –  Caramdir Oct 3 '11 at 0:32
add comment

1 Answer

up vote 4 down vote accepted

On my system (MacTeX 2011), the file setspace.sty is at /usr/local/texlive/2011/texmf-dist/tex/latex/setspace/setspace.sty. If the file setspace.sty is really missing from your TeX distribution, you can find a copy online at http://mirrors.ctan.org/macros/latex/contrib/setspace/setspace.sty. As others will no doubt also point out, it's usually best to run a package management program, such as tlmgr (TeXLive Manager), as doing so will automatically take care of updating all filename databases that TeX's programs rely on.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.