Undefined escape sequence

I am doing a master's thesis using LaTeX, but I cannot get this style to work. In particular, I get the error "Undefined escape sequence" when using the function makeformaltitlepagesthat is defined in mscthesis.sty. On the Internet, the only answer I could find was the direct “you probably made a typo” or “you probably forgot to include the package,” but I have reason to believe that none of them apply to me.

In the preamble, I set several variables using macros defined in the style file, such as my name and company data of the company that provided the assignment. After the start of the document maketitlepages, a function is called from the style file that creates several cover pages that correspond to the university style.

[edit]

After finding the solution, I now know where the error is coming from. Below is a small style file and a small document that can be compiled to recreate the error. In a nutshell, I used includegraphicsto include an image file whose file name contained a space.

example.sty:

\def\company#1{\gdef\@company{#1}}

\def\maketitlepages
{\begingroup
    \newpage
    \noindent
    \begin{center}
        \vskip 0em \rule{\textwidth}{1.5pt}
        \vskip 1em {\Huge \@title \par}
        \vskip 1em \rule{\textwidth}{1.5pt} \par \nobreak
        \vskip 4em {\large A DOCUMENT}
        \vskip 2em by
        \vskip 2em {\large \@author}
        \vfill
        \@company
    \end{center}
    \newpage
\endgroup}

document.tex:

\documentclass{article}
\usepackage{url}
\usepackage{example}
\usepackage[dvips]{graphicx}
\usepackage[dvips]{color}

\author{Your name}

\company{
  \includegraphics[width=4cm]{company logo.eps}\\
  A Company\\
  Addressline 1\\
  Addressline 2\\
  Country\\
  \url{www.acompany.com}
}

\title{Undefined control sequence}

\begin{document}

\pagestyle{empty}
\maketitlepages
+5
source share
2 answers

mscthesis.sty? ( ) , - , \makeformaltitlepages, .

+2

, (, \documentclass {...} \end {document}). , " " . (, , , , LaTeX.)

+1

All Articles