Hi
I have started to use LaTeX to write my PhD thesis with and I am adapting a class file provided by the university to match my departments requirements and personal taste for the bits that aren't defined. The class file is an adaptation of the report class.
The main problem I have is that I have to have the main body text of the chapters double spaced, for this I believe the best package is 'setspace' but I only need it to apply to the body text not to the chapter headings or any of the front matter e.g. TOC, acknowledgements page, declaration of originality etc. I currently have the font size and spacing/layout of my titles defined using the 'Titlesec' package.
So my question is how do I apply the double spacing just to the body text of chapters:
--Is there an environment defined for this text and can I add the \doublespace command to just this
--or can I add the \singlespace setting or something similar to my section headings definitions using the titlesec package then add \single space to each environment i have defined to layout the abstract page etc
The code i have just to define my chapter and section headings is below:
Code: Select all
\usepackage{titlesec}
\titleformat{\chapter}[display] %[display] puts the title chapter on a separate line
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}
\titleformat{\section}
{\normalfont\large\bfseries}{\thesection}{1em}{}
\titleformat{\subsection}
{\normalfont\normalsize\bfseries}{\thesubsection}{1em}{} %bfseries to add bold style
\titleformat{\subsubsection}
{\normalfont\normalsize\mdseries\itshape}{\thesubsubsection}{1em}{} %itshape to add an italic style, mdseries to turn off bold
%paragraph and subparagraph not numbered
\titleformat{\paragraph}[runin] % [runin] indents the first line of the paragraph
{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}
\titleformat{\subparagraph}[runin]
{\normalfont\normalsize\bfseries}{\thesubparagraph}{1em}{}
%To set section heading spacings
\titlespacing*{\chapter}{0pt}{5pt}{25pt}
\titlespacing*{\section} {0pt}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}
\titlespacing*{\subsection} {0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
\titlespacing*{\subsubsection}{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
\titlespacing*{\paragraph} {0pt}{3.25ex plus 1ex minus .2ex}{1em}
\titlespacing*{\subparagraph} {\parindent}{3.25ex plus 1ex minus .2ex}{1em}
Code: Select all
\newenvironment{acknowledgements}
{\begin{alwayssingle} \thispagestyle{empty}
\begin{center}
\vspace*{1.5cm}
{\huge \bfseries Acknowledgements}
\end{center}
\vspace{0.5cm}
\begin{quote}}
{\end{quote}\end{alwayssingle}}
Many thanks in advance
leh00