I am relatively new to Latex and don't know the deeper commands yet. For my Msc thesis I downloaded a template published by the Faculty, however they have changed some regulations and have yet to update their latex template.
Basically, the new regulations require 1.5/double space. Easy enough to do with
\usepackage{setspace}
\doublespacing
But I get some errors which says \spacing has already been defined. So I look into the class file of the template and I find:
\newcommand{\spacing}[1]{\renewcommand{\baselinestretch}{#1}%
\large\normalsize}
This command in being used in the following places:
\renewcommand\appendix{\par
\setcounter{chapter}{0}%
\setcounter{section}{0}%
\gdef\@chapapp{\appendixname}%
\gdef\thechapter{\@Alph\c@chapter}
\ifthenelse{\boolean{saving}}{\spacing{1}}{\spacing{2}}}
and
\ifthenelse{\boolean{saving}} {%
\setlength {\topmargin}{0.0in}
\setlength {\textheight}{\paperheight-2.5in}
\setlength {\oddsidemargin}{0.0in}
\setlength {\evensidemargin}{0.0in}
\setlength {\textwidth}{\paperwidth-2in}
\spacing{1}
} {%
\setlength {\topmargin}{0.65in}
\setlength {\textheight}{\paperheight-3.05in}
\setlength {\oddsidemargin}{0.6in}
\setlength {\evensidemargin}{0.1in}
\setlength {\textwidth}{\paperwidth-2.65in}
\setlength {\footskip}{0.3in}
\spacing{2}
\renewenvironment{quote}{\oldquote\spacing{1}}%
{\oldendquote\spacing{2}}
\renewenvironment{quotation}{\oldquotation\spacing{1}}%
{\oldendquotation\spacing{2}}
\renewenvironment{verse}{\oldverse\spacing{1}}%
{\oldendverse\spacing{2}}}
And some other (probably irrelevant) sections.
My question is that can I just rename this command something else and replace it everywhere it shows up in the class file? This way it won't clash with setspace package. Additionally, do I have to somehow recompile the class file or register it with latex?
masfenix.cls, add a comment with your name and date inside and start hacking. – Johannes_B Aug 30 '15 at 19:04