7

I am writing some thesis in Latex and I use some template. At the first page I would like to add my supervisor. In one file there is possibility to add it. There is macro like: \college{}; \author{}; \title{}, but there are no for supervisor something like: "\supervisor{}". Do you know what macro I can use to add supervisor? Thanks.

I am using this template:

https://drive.google.com/file/d/0BwyOySLlDTB_a3R5aFZQNzVFRG8/edit?usp=sharing

There is the file "thesis-info.tex", where I can define \college{}; \author{}; \title{}, etc., but I don't know how to add supervisor...?

Dawid
  • 133

1 Answers1

1

This is an attempt and works. Please follow the following steps to establish a working directory.

  1. Download all the template into a directory and save the testfile.tex shown below into the same directory.
  2. Open up the class file PhDThesisPSnPDF.cls (a new *.cls name is preferred.)
  3. Add the following lines to line 500 (right after the macro degree) in the -- macro definition section.

    \newcommand{\@supervisor}{} \newcommand{\supervisor}[1]{\renewcommand{\@supervisor}{#1}}

  4. Also insert following lines to line 575 (right after the author position) in the -- title page section (maketitle).

    {\Large \bfseries{\@supervisor} \par} \vspace*{1ex}

  5. Compile textfile.tex

enter image description here

Code: testfile.tex

\documentclass[12pt]{PhDThesisPSnPDF}

\input{preamble}

% Terms from macro definition
\title{A Test on How to Add Supervisor}
\degreedate{2014}
\degree{master}
\dept{Electrical Engineering}
\college{Engineering}
\university{ABC}
\author{Candidate Author}
\supervisor{Prof. A.B. Supervisor}
\crest{\includegraphics{University_Crest}}
\begin{document}
\maketitle
\include{chapter1}
\end{document}
Jesse
  • 29,686