Skip to content

Commit

Permalink
Subtitle fixed #9
Browse files Browse the repository at this point in the history
  • Loading branch information
Krishna Kumar committed Jul 14, 2014
1 parent 2ad4d12 commit ab06347
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
21 changes: 19 additions & 2 deletions Classes/PhDThesisPSnPDF.cls
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,10 @@ wish to left align your text}
% These macros are used to declare arguments needed for the
% construction of the title page and other preamble.

% Subtitle (optional)
\newcommand{\@subtitle}{}
\newcommand{\subtitle}[1]{\renewcommand{\@subtitle}{#1}}

% The year and term the degree will be officially conferred
\newcommand{\@degreedate}{\monthname[\the\month]\space\the\year}
\newcommand{\degreedate}[1]{\renewcommand{\@degreedate}{#1}}
Expand Down Expand Up @@ -827,6 +831,13 @@ wish to left align your text}
\begin{center}
% Title
{\Huge \bfseries{\@title} \par}
\ifthenelse{\equal{\@subtitle}{}}{
% subtitle is not defined
}{
\vspace*{1em}
\centering \Large {\@subtitle}
} % subtitle is defined

\vspace{.25\PHD@titlepagespacing}

% Crest
Expand All @@ -835,7 +846,7 @@ wish to left align your text}

% Author
{\Large \bfseries{\@author} \par}
\vspace*{1ex}
\vspace*{1em}

% Department and University
{\large \@dept \par}
Expand Down Expand Up @@ -1030,6 +1041,12 @@ wish to left align your text}
\begin{lrbox}{\PHD@Title}
\begin{minipage}[c]{0.98\textwidth}
\centering \Huge \bfseries{\@title}
\ifthenelse{\equal{\@subtitle}{}}{
% subtitle is not defined
}{
\vspace*{1em}
\centering \Large {\@subtitle}
} % subtitle is defined
\end{minipage}
\end{lrbox}

Expand All @@ -1052,7 +1069,7 @@ wish to left align your text}
\begin{lrbox}{\PHD@dept}
\begin{minipage}[c]{\textwidth}
\centering {\large \@dept \par}
\vspace*{1ex}
\vspace*{1em}
{\large \@university \par}
\end{minipage}
\end{lrbox}
Expand Down
3 changes: 3 additions & 0 deletions thesis-info.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
%\texorpdfstring{LaTeX_Version}{PDF Version (non-latex)} eg.,
%\texorpdfstring{$sigma$}{sigma}

%% Subtitle (Optional)
\subtitle{Using the CUED template}

%% The full name of the author
\author{Krishna Kumar}

Expand Down
Binary file modified thesis.pdf
Binary file not shown.
Binary file modified thesis.ps
Binary file not shown.

0 comments on commit ab06347

Please sign in to comment.