Urijah Kaplan wrote:
Hello,
I just installed LyX for the first time yesterday. Whenever I select a paragraph
to be single-spaced (I highlighted the paragraph, pressed the "paragraph
settings" button, and changed spacing from default to single) it gives an error
message and does not work. The first time I did this and tried rendering to dvi,
it complained about a missing "setspace.sty". I reinstalled LyX this time with
the bundled installer (lyx-142-1-bundle.exe.) and this time it gives me a
different error, "LaTeX Error: Environment singlespace undefined" and "LaTeX
Error: \begin{document} ended by \end{singlespace}." When installing, I was
Administrator, and set installation for all users with the packages. The only
other non-default setting I used was by indicating I was also using Hebrew.
I am using Windows Server 2003 (32-bit). Rendering the included documents (like
the tutorial) to dvi works fine.
Thank you very much for your help, and for what looks like to be a great
program!
Works for me (albeit on Win XP, not WinServer 03). The first error
sounds like you don't have the setspace package installed, which you
need if you're going to vary the spacing of pieces of the document. If
you open a DOS windows and type 'kpsewhich setspace.sty', do you get
back a path to the file? If not, try installing it. (If you're using
MikTeX, you can run MikTeX's Package Manager from the program menu and
use it to install setspace. If you're using a different LaTeX
distribution, it may mean downloading the package yourself and manually
installing it.)
If you have setspace.sty, in LyX click Help->LaTeX Configuration, scroll
down to section 7.13 (or just search for "setspace"), and see if it says
'yes'. If not, LyX didn't find setspace during installation, which
means (assuming you have it installed) something burped during the
installation.
If you have setspace and LyX knows you have setspace, the best I can
suggest is cutting down your document to a minimal example that screws
up and then posting it to the list. Sometimes things get out of order,
or the document gets damaged, but the only way I know to diagnose that
is to look at the "source code", and you have to know what you're
looking for. Which means consulting the experts on the list. (Which
excludes me.)
/Paul