The \titleformat command is provided by the titlesec package. You might want to look at its documentation.
Thanks, I always look at the documentation before posting a message but in this case couldn't see anything I could apply to my problem.
My thesis is split into different *tex files, one for each chapter, all called from a "main" file. Here's a mwe of the main document
Code: Select all
\documentclass{thesis}
\usepackage{color}
\usepackage{titlesec}
\usepackage{graphicx}
\usepackage{eso-pic}
\begin{document}
\include{Chapter1}
\include{Chapter2}
\end{document}
The "thesis" style is from a template made by the School at the University although it's not set in stone. As I said in my first post
All my chapter headers are at the top left of the page, I believe because of this code in the *cls file
Code: Select all
\DeclareOption{leftchapter}
{\renewcommand{\@chapteralignment}{\raggedright}}
and a bit later in the code
Code: Select all
\ExecuteOptions{phd,leftchapter}
\ProcessOptions
At least I'm guessing, the *cls is a bit of a beast if one is not too comfortable with LaTeX.
Here's a mwe of the chapters called in \include
Code: Select all
\titleformat{\chapter}[display]
{\normalfont\Large\color{black}\sffamily}
{\vspace{1pt}%
\LARGE\MakeUppercase{\chaptertitlename} \thechapter}
{1pc}
{ \vspace{1pc}%
\Huge}
\chapter{TITLE}
\AddToShipoutPicture*{\put(130,0)%
{\includegraphics[width=17cm,height=25cm]{title.jpg}%
}}
\chapter{TITLE}
\pagebreak[4]
\section{Intro}
etc...
I did try your mwe above with a couple of my chapters but got an error related to the \lipsum command, certainly because I don't know how to adapt it to my thesis but I couldn't find any documentation to make me understand what it actually does. Besides, I don't know if I can use it with my chapters being split between different documents.