Fixes 113 with an option to change width manually in thesis-info.tex

This commit is contained in:
Krishna Kumar 2016-11-26 12:36:57 +00:00
commit ebe586e622
2 changed files with 31 additions and 10 deletions

View File

@ -895,6 +895,11 @@ wish to left align your text}
\newcommand{\@supervisorrole}{Supervisor: }
\newcommand{\supervisorrole}[1]{\renewcommand{\@supervisorrole}{#1}}
% Supervisor width to align
\newcommand{\@supervisorlinewidth}{0.35\textwidth}
\newcommand{\supervisorlinewidth}[1]{\renewcommand{\@supervisorlinewidth}{#1}}
% Advisor
\newif\ifPHD@advisor\PHD@advisorfalse
\newcommand{\@advisor}{}
@ -904,6 +909,10 @@ wish to left align your text}
\newcommand{\@advisorrole}{Advisor: }
\newcommand{\advisorrole}[1]{\renewcommand{\@advisorrole}{#1}}
% Advisor width to align
\newcommand{\@advisorlinewidth}{0.25\textwidth}
\newcommand{\advisorlinewidth}[1]{\renewcommand{\@advisorlinewidth}{#1}}
% Submission Text
\newcommand{\submissiontext}{This dissertation is submitted for the degree of }
@ -1204,7 +1213,12 @@ wish to left align your text}
\ifthenelse{\equal{\@supervisor}{}}{
% supervisor is not defined
}{
\centering \Large {\@supervisorrole \@supervisor}
\begin{center}
\makebox[\widthof{supervisorrole} + \@supervisorlinewidth][c]{
\Large
\@supervisorrole \parbox[t]{\@supervisorlinewidth}{\@supervisor}
}
\end{center}
\vspace{0.5em}
} % supervisor is defined
\end{minipage}
@ -1217,7 +1231,12 @@ wish to left align your text}
\ifthenelse{\equal{\@advisor}{}}{
% advisor is not defined
}{
\centering \Large {\@advisorrole \@advisor}
\begin{center}
\makebox[\widthof{advisorrole} + \@advisorlinewidth][c]{
\Large
\@advisorrole \parbox[t]{\@advisorlinewidth}{\@advisor}
}
\end{center}
\vspace{0.5em}
} % advisor is defined
\end{minipage}

View File

@ -29,28 +29,30 @@
%% Supervisor (optional)
%% for multiple supervisors, append each supervisor with the \newline command
%\supervisor{\textbf{Prof. A.B. Supervisor\newline
%Prof. C.D. Supervisor\newline
%Prof. E.F. Supervisor\newline
%Prof. G.H. Supervisor}}
%\supervisor{Prof. A.B. Supervisor\newline
%Prof. C.D. Supervisor}
%% Supervisor Role (optional) - Supervisor (default) or advisor
% \supervisorrole{\textbf{Supervisors: }}
%% if no title is desired:
% \supervisorrole{}
%% Supervisor line width: required to align supervisors
%\supervisorlinewidth{0.35\textwidth}
%% Advisor (optional)
%% for multiple advisors, append each advisor with the \newline command
%\advisor{Advisor 1\newline
%Advisors 2\newline
%Advisor 3\newline
%Advisor 4}
%\advisor{Dr. A. Advisor\newline
%Dr. B. Advisor}
%% Advisor Role (optional) - Advisor (default) or leave empty
% \advisorrole{Advisors: }
%% if no title is required
% \advisorrole{}
%% Advisor line width: required to align supervisors
%\advisorlinewidth{0.25\textwidth}
%% You can redefine the submission text:
% Default as per the University guidelines: