On 02/08/2011 06:23 PM, Danny Parker wrote:
I'm getting the following error when trying to switch to single spacing in my document.

LaTeX Error: Command \singlespacing already defined.

From reading up on similar errors I think it may be a conflict between packages but I'm not experienced enough to know which ones cause the conflict and which ones can be deleted. My document class is the thesis class for my university which I'm including and it looks like it installs the following packages:

\documentclass[oneside,english]{msuthesis}

\usepackage[T1]{fontenc}

\usepackage[latin9]{inputenc}

\usepackage{units}

\usepackage{textcomp}

\usepackage{graphicx}

\usepackage{setspace}

\usepackage{nomencl}


Can anyone point me in the right direction since Google wasn't any help? Thanks in advance.


If you look in your cls file, you will see that it does define a \singlespacing command. When you try to change to single spacing, LyX includes setspace.sty, which I think also defines a command by that name. The solution, for our purposes, is probably to change the command in the class file to something else, and then search and replace the other occurrences.

Richard

Reply via email to